diff options
author | grothoff <grothoff@140774ce-b5e7-0310-ab8b-a85725594a96> | 2011-09-19 19:34:26 +0000 |
---|---|---|
committer | grothoff <grothoff@140774ce-b5e7-0310-ab8b-a85725594a96> | 2011-09-19 19:34:26 +0000 |
commit | 44247392373ea67b3a7b99976d338da48173b127 (patch) | |
tree | 9daaa2c87c7eac964a003a84ce9d30dcb4aaf80f /src/datacache | |
parent | 32b429c0db757e3ed0057736f7c7165031019c4c (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.c | 2 | ||||
-rw-r--r-- | src/datacache/perf_datacache_data_sqlite.conf | 2 | ||||
-rw-r--r-- | src/datacache/plugin_datacache_sqlite.c | 1 |
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; |