mirror of
https://github.com/tursodatabase/libsql.git
synced 2024-12-15 09:49:40 +00:00
ad79ef48a2
* add tests * add bench
23 lines
466 B
Plaintext
23 lines
466 B
Plaintext
|
|
PRAGMA auto_vacuum = 2;
|
|
CREATE TABLE t1(a PRIMARY KEY, b);
|
|
|
|
WITH data(i) AS (
|
|
SELECT 1 UNION ALL SELECT i+1 FROM data
|
|
)
|
|
INSERT INTO t1 SELECT i, randomblob(600) FROM data LIMIT 20;
|
|
PRAGMA page_count;
|
|
|
|
|
|
PRAGMA incremental_vacuum;
|
|
|
|
|
|
PRAGMA auto_vacuum = 1;
|
|
CREATE TABLE t1(a PRIMARY KEY, b);
|
|
WITH data(i) AS (
|
|
SELECT 1 UNION ALL SELECT i+1 FROM data
|
|
)
|
|
INSERT INTO t1 SELECT i, randomblob(600) FROM data LIMIT 20;
|
|
PRAGMA page_count;
|
|
|