mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-26 14:05:51 +00:00
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:
@@ -4,6 +4,9 @@
|
|||||||
|
|
||||||
// Transaction database holds transactions and public keys
|
// Transaction database holds transactions and public keys
|
||||||
const char *TxnDBInit[] = {
|
const char *TxnDBInit[] = {
|
||||||
|
"PRAGMA synchronous=NORMAL",
|
||||||
|
"PRAGMA journal_mode=WAL",
|
||||||
|
|
||||||
"BEGIN TRANSACTION;",
|
"BEGIN TRANSACTION;",
|
||||||
|
|
||||||
"CREATE TABLE Transactions ( \
|
"CREATE TABLE Transactions ( \
|
||||||
@@ -254,6 +257,9 @@ int WalletDBCount = NUMBER(WalletDBInit);
|
|||||||
|
|
||||||
// Hash node database holds nodes indexed by hash
|
// Hash node database holds nodes indexed by hash
|
||||||
const char *HashNodeDBInit[] = {
|
const char *HashNodeDBInit[] = {
|
||||||
|
"PRAGMA synchronous=NORMAL",
|
||||||
|
"PRAGMA journal_mode=WAL",
|
||||||
|
|
||||||
"BEGIN TRANSACTION;",
|
"BEGIN TRANSACTION;",
|
||||||
|
|
||||||
"CREATE TABLE CommittedObjects ( \
|
"CREATE TABLE CommittedObjects ( \
|
||||||
|
|||||||
Reference in New Issue
Block a user