checkpoint

This commit is contained in:
CJ Cobb
2021-05-26 21:23:16 +00:00
parent 7759d86087
commit 96f896c117
7 changed files with 29 additions and 18 deletions

View File

@@ -846,7 +846,11 @@ PostgresBackend::writeKeys(
}
}
if (isAsync)
{
if (numRows > 0)
conn.bulkInsert("keys", buffer.str());
conn("COMMIT");
}
return true;
}
bool
@@ -890,7 +894,11 @@ PostgresBackend::writeBooks(
}
}
if (isAsync)
{
if (numRows > 0)
conn.bulkInsert("books", buffer.str());
conn("COMMIT");
}
return true;
}
bool