From 4f8620fe9eaaad393bd205942d3f911ceacd073e Mon Sep 17 00:00:00 2001 From: Andrew Kane Date: Sun, 5 Mar 2023 17:48:01 -0800 Subject: [PATCH] Added EXPLAIN ANALYZE to readme [skip ci] --- README.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/README.md b/README.md index 66f2cf4..994d789 100644 --- a/README.md +++ b/README.md @@ -175,6 +175,12 @@ To speed up queries with an index, increase the number of inverted lists (at the CREATE INDEX ON items USING ivfflat (embedding vector_l2_ops) WITH (lists = 1000); ``` +Use `EXPLAIN ANALYZE` to debug performance + +```sql +EXPLAIN ANALYZE SELECT * FROM items ORDER BY embedding <-> '[3,1,2]' LIMIT 1; +``` + ## Reference ### Vector Type