Order book offers by quality

This commit is contained in:
Nathan Nichols
2021-04-21 23:27:14 -05:00
parent d9a8ff5399
commit 0bcf3a4601
10 changed files with 232 additions and 239 deletions

View File

@@ -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;
}
}