Use WOL mode to avoid performance problems with large writes causing huge latency for small reads.

See: http://www.sqlite.org/wal.html
This commit is contained in:
JoelKatz
2013-01-10 00:16:50 -08:00
parent 376f214a70
commit c3498cbfcb

View File

@@ -4,6 +4,9 @@
// Transaction database holds transactions and public keys
const char *TxnDBInit[] = {
"PRAGMA synchronous=NORMAL",
"PRAGMA journal_mode=WAL",
"BEGIN TRANSACTION;",
"CREATE TABLE Transactions ( \
@@ -254,6 +257,9 @@ int WalletDBCount = NUMBER(WalletDBInit);
// Hash node database holds nodes indexed by hash
const char *HashNodeDBInit[] = {
"PRAGMA synchronous=NORMAL",
"PRAGMA journal_mode=WAL",
"BEGIN TRANSACTION;",
"CREATE TABLE CommittedObjects ( \