[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r15172 - gnunet/src/datastore
From: |
gnunet |
Subject: |
[GNUnet-SVN] r15172 - gnunet/src/datastore |
Date: |
Fri, 6 May 2011 14:25:50 +0200 |
Author: grothoff
Date: 2011-05-06 14:25:50 +0200 (Fri, 06 May 2011)
New Revision: 15172
Added:
gnunet/src/datastore/selectrandom.sql
Modified:
gnunet/src/datastore/perf_plugin_datastore.c
Log:
idea
Modified: gnunet/src/datastore/perf_plugin_datastore.c
===================================================================
--- gnunet/src/datastore/perf_plugin_datastore.c 2011-05-06 12:23:07 UTC
(rev 15171)
+++ gnunet/src/datastore/perf_plugin_datastore.c 2011-05-06 12:25:50 UTC
(rev 15172)
@@ -37,7 +37,7 @@
* those take too long to run them in the usual "make check"
* sequence. Hence the value used for shipping is tiny.
*/
-#define MAX_SIZE 1024LL * 1024 * 32
+#define MAX_SIZE 1024LL * 1024 * 16
#define ITERATIONS 2
Added: gnunet/src/datastore/selectrandom.sql
===================================================================
--- gnunet/src/datastore/selectrandom.sql (rev 0)
+++ gnunet/src/datastore/selectrandom.sql 2011-05-06 12:25:50 UTC (rev
15172)
@@ -0,0 +1,9 @@
+select *
+from (select random() as v from (values(1))) t1,
+ (select max(repl) as m from data) t2,
+ (select * from data
+ where repl=t2.m and
+ rnd>=t.v
+ order by rnd
+ limit 1)
+
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r15172 - gnunet/src/datastore,
gnunet <=