Use WAL mode in SQLite bloblogs
This commit is contained in:
parent
332563f5a7
commit
eef22e7009
|
@ -247,6 +247,13 @@ impl SqliteBloblogPile {
|
||||||
)?;
|
)?;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Enable WAL mode for significantly better write performance.
|
||||||
|
connection.execute_batch(
|
||||||
|
"
|
||||||
|
PRAGMA journal_mode=WAL;
|
||||||
|
",
|
||||||
|
)?;
|
||||||
|
|
||||||
Ok(SqliteBloblogPile {
|
Ok(SqliteBloblogPile {
|
||||||
inner: Arc::new(Mutex::new(Inner {
|
inner: Arc::new(Mutex::new(Inner {
|
||||||
next_bloblog_id: 0,
|
next_bloblog_id: 0,
|
||||||
|
|
Loading…
Reference in New Issue