Added EXPLAIN ANALYZE to readme [skip ci]

This commit is contained in:
Andrew Kane
2023-03-05 17:48:01 -08:00
parent a1ab0a453c
commit 4f8620fe9e

View File

@@ -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