0
0
mirror of https://github.com/tursodatabase/libsql.git synced 2024-12-12 15:33:44 +00:00
ad hoc ad79ef48a2
libsql wal tests (#1408)
* add tests

* add bench
2024-05-24 13:59:17 +00:00

17 lines
354 B
Plaintext

PRAGMA cache_size = -2000;
CREATE TABLE t1(a, b, c);
WITH r(i) AS (
SELECT 1 UNION ALL SELECT i+1 FROM r WHERE i<100000
)
INSERT INTO t1 SELECT randomblob(100),randomblob(100),randomblob(100) FROM r;
CREATE INDEX t1a ON t1(a);
CREATE INDEX t1b ON t1(b);
CREATE INDEX t1c ON t1(c);
SELECT count(*) FROM t1 WHERE +a IS NOT NULL