Added HNSW index type

This commit is contained in:
Andrew Kane
2023-07-21 16:25:39 -07:00
parent f210791846
commit f0760eee76
28 changed files with 3625 additions and 7 deletions

14
test/sql/hnsw_options.sql Normal file
View File

@@ -0,0 +1,14 @@
SET enable_seqscan = off;
CREATE TABLE t (val vector(3));
CREATE INDEX ON t USING hnsw (val vector_l2_ops) WITH (m = 3);
CREATE INDEX ON t USING hnsw (val vector_l2_ops) WITH (m = 101);
CREATE INDEX ON t USING hnsw (val vector_l2_ops) WITH (ef_construction = 9);
CREATE INDEX ON t USING hnsw (val vector_l2_ops) WITH (ef_construction = 1001);
SHOW hnsw.ef_search;
SET hnsw.ef_search = 9;
SET hnsw.ef_search = 1001;
DROP TABLE t;