mirror of
https://github.com/pgvector/pgvector.git
synced 2026-07-14 08:36:54 +08:00
Updated example [skip ci]
This commit is contained in:
@@ -130,6 +130,12 @@ Note: `tuples_done` and `tuples_total` are only populated during the `loading tu
|
|||||||
|
|
||||||
Consider [partial indexes](https://www.postgresql.org/docs/current/indexes-partial.html) for queries with a `WHERE` clause
|
Consider [partial indexes](https://www.postgresql.org/docs/current/indexes-partial.html) for queries with a `WHERE` clause
|
||||||
|
|
||||||
|
```sql
|
||||||
|
SELECT * FROM table WHERE other_column = 123 ORDER BY column <-> '[3,1,2]' LIMIT 5;
|
||||||
|
```
|
||||||
|
|
||||||
|
can be indexed with:
|
||||||
|
|
||||||
```sql
|
```sql
|
||||||
CREATE INDEX ON table USING ivfflat (column opclass) WHERE (other_column = 123);
|
CREATE INDEX ON table USING ivfflat (column opclass) WHERE (other_column = 123);
|
||||||
```
|
```
|
||||||
|
|||||||
Reference in New Issue
Block a user