Added partial indexes section [skip ci]

This commit is contained in:
Andrew Kane
2021-05-03 16:44:36 -07:00
parent e1f3caba49
commit 099b9e9027

View File

@@ -104,6 +104,14 @@ SELECT ...
COMMIT;
```
### Partial Indexes
Use [partial indexes](https://www.postgresql.org/docs/current/indexes-partial.html) to speed up queries with a `WHERE` clause
```sql
CREATE INDEX ON table USING ivfflat (column) WHERE (condition = true);
```
## Reference
### Vector Type