adding missing index
authorChristian Grothoff <christian@grothoff.org>
Mon, 19 Sep 2011 19:34:26 +0000 (19:34 +0000)
committerChristian Grothoff <christian@grothoff.org>
Mon, 19 Sep 2011 19:34:26 +0000 (19:34 +0000)
src/datacache/perf_datacache.c
src/datacache/perf_datacache_data_sqlite.conf
src/datacache/plugin_datacache_sqlite.c

index fd3e23b9251096cd06297f7f0de9aaff81417f67..7d1825447b65a9dd0e834b0838b7ee7e2612b534 100644 (file)
@@ -31,7 +31,7 @@
 
 #define ASSERT(x) do { if (! (x)) { printf("Error at %s:%d\n", __FILE__, __LINE__); goto FAILURE;} } while (0)
 
-#define ITERATIONS 10000
+#define ITERATIONS 50000
 
 static int ok;
 
index b81034f5ffc054dcd2d1b7edc07792dd6d2364b2..aee6f7d0ded446d18b06775ef0bc2e329ee0adb7 100644 (file)
@@ -1,4 +1,4 @@
 [perfcache]
-QUOTA = 500000
+QUOTA = 2500000
 DATABASE = sqlite
 
index 4bb61dcd1d455203b8dc7e87854488bab7be7c5a..2b36e5b60493643a91b3ed23ed1b3f8a6d9b92cf 100644 (file)
@@ -400,6 +400,7 @@ libgnunet_plugin_datacache_sqlite_init (void *cls)
                 "  key BLOB NOT NULL DEFAULT '',"
                 "  value BLOB NOT NULL DEFAULT '')");
   SQLITE3_EXEC (dbh, "CREATE INDEX idx_hashidx ON ds090 (key,type,expire)");
+  SQLITE3_EXEC (dbh, "CREATE INDEX idx_expire ON ds090 (expire)");
   plugin = GNUNET_malloc (sizeof (struct Plugin));
   plugin->env = env;
   plugin->dbh = dbh;