mirror of
https://github.com/XRPLF/clio.git
synced 2025-11-24 05:35:53 +00:00
Order book offers by quality
This commit is contained in:
@@ -71,7 +71,7 @@ PostgresBackend::doWriteLedgerObject(
|
||||
if (numRowsInObjectsBuffer_ % 1000000 == 0)
|
||||
{
|
||||
writeConnection_.bulkInsert("objects", objectsBuffer_.str());
|
||||
objectsBuffer_ = {};
|
||||
objectsBuffer_.str("");
|
||||
}
|
||||
|
||||
if (book)
|
||||
@@ -603,7 +603,7 @@ PostgresBackend::writeKeys(
|
||||
if (numRows == 1000000)
|
||||
{
|
||||
pgQuery.bulkInsert("keys", keysBuffer.str());
|
||||
keysBuffer = {};
|
||||
keysBuffer.str("");
|
||||
numRows = 0;
|
||||
}
|
||||
}
|
||||
@@ -635,7 +635,7 @@ PostgresBackend::writeBooks(
|
||||
if (numRows == 1000000)
|
||||
{
|
||||
pgQuery.bulkInsert("books", booksBuffer.str());
|
||||
booksBuffer = {};
|
||||
booksBuffer.str("");
|
||||
numRows = 0;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user