mirror of
https://github.com/pgvector/pgvector.git
synced 2026-07-13 16:16:56 +08:00
Added tests for index dimensions for bit type [skip ci]
This commit is contained in:
@@ -35,6 +35,17 @@ NOTICE: ivfflat index created with little data
|
|||||||
DETAIL: This will cause low recall.
|
DETAIL: This will cause low recall.
|
||||||
HINT: Drop the index until the table has more data.
|
HINT: Drop the index until the table has more data.
|
||||||
DROP TABLE t;
|
DROP TABLE t;
|
||||||
|
-- dimensions
|
||||||
|
CREATE TABLE t (val bit(64000));
|
||||||
|
CREATE INDEX ON t USING ivfflat (val bit_hamming_ops);
|
||||||
|
NOTICE: ivfflat index created with little data
|
||||||
|
DETAIL: This will cause low recall.
|
||||||
|
HINT: Drop the index until the table has more data.
|
||||||
|
DROP TABLE t;
|
||||||
|
CREATE TABLE t (val bit(64001));
|
||||||
|
CREATE INDEX ON t USING ivfflat (val bit_hamming_ops);
|
||||||
|
ERROR: column cannot have more than 64000 dimensions for ivfflat index
|
||||||
|
DROP TABLE t;
|
||||||
-- memory
|
-- memory
|
||||||
CREATE TABLE t (val bit(64000));
|
CREATE TABLE t (val bit(64000));
|
||||||
CREATE INDEX ON t USING ivfflat (val bit_hamming_ops) WITH (lists = 32768);
|
CREATE INDEX ON t USING ivfflat (val bit_hamming_ops) WITH (lists = 32768);
|
||||||
|
|||||||
@@ -22,6 +22,16 @@ CREATE INDEX ON t USING ivfflat ((val::bit(64001)) bit_hamming_ops) WITH (lists
|
|||||||
CREATE INDEX ON t USING ivfflat ((val::bit(2)) bit_hamming_ops) WITH (lists = 5);
|
CREATE INDEX ON t USING ivfflat ((val::bit(2)) bit_hamming_ops) WITH (lists = 5);
|
||||||
DROP TABLE t;
|
DROP TABLE t;
|
||||||
|
|
||||||
|
-- dimensions
|
||||||
|
|
||||||
|
CREATE TABLE t (val bit(64000));
|
||||||
|
CREATE INDEX ON t USING ivfflat (val bit_hamming_ops);
|
||||||
|
DROP TABLE t;
|
||||||
|
|
||||||
|
CREATE TABLE t (val bit(64001));
|
||||||
|
CREATE INDEX ON t USING ivfflat (val bit_hamming_ops);
|
||||||
|
DROP TABLE t;
|
||||||
|
|
||||||
-- memory
|
-- memory
|
||||||
|
|
||||||
CREATE TABLE t (val bit(64000));
|
CREATE TABLE t (val bit(64000));
|
||||||
|
|||||||
Reference in New Issue
Block a user