From 099b9e90278a0a22b90a2b127ef999bccdb819bc Mon Sep 17 00:00:00 2001 From: Andrew Kane Date: Mon, 3 May 2021 16:44:36 -0700 Subject: [PATCH] Added partial indexes section [skip ci] --- README.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/README.md b/README.md index 2327faf..21aa980 100644 --- a/README.md +++ b/README.md @@ -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