mirror of
https://github.com/pgvector/pgvector.git
synced 2026-12-04 16:28:40 +00:00
Co-authored-by: Itai Spiegel <itai@mave.com>
This commit is contained in:
1 parent
1d458ad5d7
commit
b383e4d191
4 files changed
+54
No files matched your search
@@ -97,3 +97,22 @@ SET ivfflat.max_probes = 0;
|
||||
SET ivfflat.max_probes = 32769;
|
||||
|
||||
DROP TABLE t;
|
||||
|
||||
-- memory
|
||||
|
||||
CREATE TABLE t (val vector(2000));
|
||||
CREATE INDEX ON t USING ivfflat (val vector_l2_ops) WITH (lists = 4096);
|
||||
DROP TABLE t;
|
||||
|
||||
SET maintenance_work_mem = '1MB';
|
||||
CREATE TABLE t (val vector(2000));
|
||||
CREATE INDEX ON t USING ivfflat (val vector_l2_ops);
|
||||
DROP TABLE t;
|
||||
RESET maintenance_work_mem;
|
||||
|
||||
SET maintenance_work_mem = '5MB';
|
||||
CREATE TABLE t (val vector(2000));
|
||||
INSERT INTO t (val) VALUES (array_fill(0, ARRAY[2000]));
|
||||
CREATE INDEX ON t USING ivfflat (val vector_l2_ops);
|
||||
DROP TABLE t;
|
||||
RESET maintenance_work_mem;
|
||||
Reference in new issue
Block a user