From cb108ebfd2efa6f4fdc2ad47080d0e9d71c67a86 Mon Sep 17 00:00:00 2001 From: Andrew Kane Date: Sun, 6 Feb 2022 12:45:49 -0800 Subject: [PATCH] Removed reindexing section [skip ci] --- README.md | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/README.md b/README.md index 0671590..fe79475 100644 --- a/README.md +++ b/README.md @@ -77,19 +77,7 @@ Cosine distance CREATE INDEX ON table USING ivfflat (column vector_cosine_ops); ``` -Indexes should be created after the table has data for optimal clustering. If the distribution of data changes significantly, you can reindex without downtime: - -```sql --- Postgres 12+ -REINDEX INDEX CONCURRENTLY index_name; - --- Postgres < 12 -CREATE INDEX CONCURRENTLY temp_name ON table USING ivfflat (column opclass); -DROP INDEX CONCURRENTLY index_name; -ALTER INDEX temp_name RENAME TO index_name; -``` - -Also, unlike typical indexes which only affect performance, you may see different results for queries after adding an approximate index. +Indexes should be created after the table has some data for optimal clustering. Also, unlike typical indexes which only affect performance, you may see different results for queries after adding an approximate index. ### Index Options