[geary] Use NORMAL SQLite synchronous mode



commit 450d45dc6a39a8ca483889f71cb167c5e9a239c0
Author: Jim Nelson <jim yorba org>
Date:   Mon Sep 1 21:54:54 2014 -0700

    Use NORMAL SQLite synchronous mode
    
    With the database improvements over this cycle, testing shows
    that we can now switch to NORMAL synchronous mode with little to
    no performance loss but better database safety.

 src/engine/imap-db/imap-db-database.vala |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/engine/imap-db/imap-db-database.vala b/src/engine/imap-db/imap-db-database.vala
index 89908e2..704d730 100644
--- a/src/engine/imap-db/imap-db-database.vala
+++ b/src/engine/imap-db/imap-db-database.vala
@@ -475,7 +475,7 @@ private class Geary.ImapDB.Database : Geary.Db.VersionedDatabase {
         cx.set_busy_timeout_msec(Db.Connection.RECOMMENDED_BUSY_TIMEOUT_MSEC);
         cx.set_foreign_keys(true);
         cx.set_recursive_triggers(true);
-        cx.set_synchronous(Db.SynchronousMode.OFF);
+        cx.set_synchronous(Db.SynchronousMode.NORMAL);
         sqlite3_unicodesn_register_tokenizer(cx.db);
     }
 }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]