[banshee] [extras/metrics] Try to speed up the db



commit 95fc8a95f306f3e02ca6d989d0982dabeb2d85fc
Author: Gabriel Burt <gabriel burt gmail com>
Date:   Wed Apr 28 10:27:36 2010 -0700

    [extras/metrics] Try to speed up the db

 extras/metrics/Database.cs |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/extras/metrics/Database.cs b/extras/metrics/Database.cs
index c0758d5..ae2d664 100644
--- a/extras/metrics/Database.cs
+++ b/extras/metrics/Database.cs
@@ -58,6 +58,7 @@ namespace metrics
             Execute ("PRAGMA synchronous = OFF");
             Execute ("PRAGMA temp_store = MEMORY");
             Execute ("PRAGMA count_changes = OFF");
+            Execute ("PRAGMA journal_mode = TRUNCATE");
 
             Config = new SqliteModelProvider<Config> (this, "Config", true);
             SampleProvider = new SqliteModelProvider<MultiUserSample> (this, "Samples", true);



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