Commit Graph

7 Commits

Author SHA1 Message Date
Tamás Gulácsi 95703e8039 pkg/sorted/sqlkv: cache query after placeholder replacement
Store the strings, as the TODO said.
This memoization saves 9/10 of running time:

BenchmarkSql-4 (before)         300000     5429 ns/op
BenchmarkSql-4 (after)          3000000     430 ns/op

Change-Id: I4edabff96043620b5af3f5b507ddd75d65b22ff1
2015-07-01 21:31:13 +02:00
mpl f6bf779cd6 sorted/kvtest: close iterator ASAP to make sqlite happy
Change-Id: I7dcca4447bea262fedc6a5fbe572034bfd8cc61d
2015-03-12 16:15:56 +01:00
mpl ae38f657b8 pkg/sorted: define (larger) values for key and value sizes
Issue #429

Change-Id: Id8205ca1581c1f21b3983e13d8c3f61293868529
2015-01-26 19:39:41 +01:00
Brad Fitzpatrick 1e7d12f1df sqlkv: remove one of the sql expansion funcs. make batch use KeyValue's
Fixes bug with TablePrefix where batch mutations weren't getting the db prefix.

Change-Id: Ice599e607f070e374471e5ff22b426a6a5e05800
2014-08-06 17:23:43 -07:00
Brad Fitzpatrick d6a8ecce2d sorted/sqlkv: support for adding optional 'db.' prefix before table names
This is so configurations using the same database server for many
databases (multiple queues + the index) can all share the same
underlying *sql.DB

Change-Id: Iae7d4835fe9045008709c953e36b729729b1b6f4
2014-08-06 16:13:18 -07:00
Brad Fitzpatrick a11ff22b8e camlistored: add --reindex flag; make sqlkv a sorted.Wiper
Change-Id: I6b16c1c32187fb754d3acdbe852d02a506236078
2013-12-23 19:07:17 -08:00
mpl b62c94fdd1 pkg/index: move sqlite implementation to sorted
Change-Id: I1e300ffa14547fabeac8d255fd694054ebcb9e53
2013-12-16 17:35:27 +01:00