[tracker/async-queries-wip: 23/23] libtracker-db: Revert cache changes



commit e46883fe2ec419f3c6d81549baf8afa388933535
Author: Jürg Billeter <j bitron ch>
Date:   Thu Apr 15 14:09:39 2010 +0200

    libtracker-db: Revert cache changes
    
    Reenabled shared cache, lowers db cache sizes

 src/libtracker-db/tracker-db-interface-sqlite.c |    6 +++---
 src/libtracker-db/tracker-db-manager.c          |    4 ++--
 2 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/src/libtracker-db/tracker-db-interface-sqlite.c b/src/libtracker-db/tracker-db-interface-sqlite.c
index 6996695..d02aa96 100644
--- a/src/libtracker-db/tracker-db-interface-sqlite.c
+++ b/src/libtracker-db/tracker-db-interface-sqlite.c
@@ -207,7 +207,7 @@ static gboolean initialized = FALSE;
 void
 tracker_db_interface_sqlite_enable_shared_cache (void)
 {
-	if (initialized) {
+	/*if (initialized) {
 		return;
 	}
 
@@ -218,10 +218,10 @@ tracker_db_interface_sqlite_enable_shared_cache (void)
 	wrapper->szOsFile = ALIGN_STRUCT(default_vfs->szOsFile) + sizeof (gpointer);
 	wrapper->xOpen = my_open;
 
-	sqlite3_vfs_register (wrapper, TRUE);
+	sqlite3_vfs_register (wrapper, TRUE);*/
 
 	sqlite3_config (SQLITE_CONFIG_MULTITHREAD);
-	//sqlite3_enable_shared_cache (1);
+	sqlite3_enable_shared_cache (1);
 }
 
 static void
diff --git a/src/libtracker-db/tracker-db-manager.c b/src/libtracker-db/tracker-db-manager.c
index 1daf55e..9ce1f04 100644
--- a/src/libtracker-db/tracker-db-manager.c
+++ b/src/libtracker-db/tracker-db-manager.c
@@ -113,7 +113,7 @@ static TrackerDBDefinition dbs[] = {
 	  "meta.db",
 	  "meta",
 	  NULL,
-	  20000,
+	  2000,
 	  TRACKER_DB_PAGE_SIZE_DONT_SET,
 	  FALSE,
 	  FALSE,
@@ -135,7 +135,7 @@ static TrackerDBDefinition dbs[] = {
 	  "fulltext.db",
 	  "fulltext",
 	  NULL,
-	  51200,
+	  512,
 	  TRACKER_DB_PAGE_SIZE_DONT_SET,
 	  FALSE,
 	  TRUE,



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