core: add sqlite pragmas
authorJens Georg <mail@jensge.org>
Wed, 30 Sep 2009 14:57:46 +0000 (16:57 +0200)
committerZeeshan Ali (Khattak) <zeeshanak@gnome.org>
Sat, 24 Oct 2009 13:43:26 +0000 (16:43 +0300)
src/rygel/rygel-database.vala

index 0982938..84e6407 100644 (file)
@@ -44,6 +44,10 @@ internal class Rygel.Database : Object {
                      db.errmsg ());
             return;
         }
+        this.db.exec ("PRAGMA cache_size = 32768");
+        this.db.exec ("PRAGMA synchronous = OFF");
+        this.db.exec ("PRAGMA temp_store = MEMORY");
+        this.db.exec ("PRAGMA count_changes = OFF");
     }
 
     public int exec (string        sql,