aboutsummaryrefslogtreecommitdiff
path: root/src/datacache
diff options
context:
space:
mode:
authorgrothoff <grothoff@140774ce-b5e7-0310-ab8b-a85725594a96>2011-09-19 19:34:26 +0000
committergrothoff <grothoff@140774ce-b5e7-0310-ab8b-a85725594a96>2011-09-19 19:34:26 +0000
commit44247392373ea67b3a7b99976d338da48173b127 (patch)
tree9daaa2c87c7eac964a003a84ce9d30dcb4aaf80f /src/datacache
parent32b429c0db757e3ed0057736f7c7165031019c4c (diff)
adding missing index
git-svn-id: https://gnunet.org/svn/gnunet@16959 140774ce-b5e7-0310-ab8b-a85725594a96
Diffstat (limited to 'src/datacache')
-rw-r--r--src/datacache/perf_datacache.c2
-rw-r--r--src/datacache/perf_datacache_data_sqlite.conf2
-rw-r--r--src/datacache/plugin_datacache_sqlite.c1
3 files changed, 3 insertions, 2 deletions
diff --git a/src/datacache/perf_datacache.c b/src/datacache/perf_datacache.c
index fd3e23b925..7d1825447b 100644
--- a/src/datacache/perf_datacache.c
+++ b/src/datacache/perf_datacache.c
@@ -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;
diff --git a/src/datacache/perf_datacache_data_sqlite.conf b/src/datacache/perf_datacache_data_sqlite.conf
index b81034f5ff..aee6f7d0de 100644
--- a/src/datacache/perf_datacache_data_sqlite.conf
+++ b/src/datacache/perf_datacache_data_sqlite.conf
@@ -1,4 +1,4 @@
[perfcache]
-QUOTA = 500000
+QUOTA = 2500000
DATABASE = sqlite
diff --git a/src/datacache/plugin_datacache_sqlite.c b/src/datacache/plugin_datacache_sqlite.c
index 4bb61dcd1d..2b36e5b604 100644
--- a/src/datacache/plugin_datacache_sqlite.c
+++ b/src/datacache/plugin_datacache_sqlite.c
@@ -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;