Q11 PostgreSQL Domain 2 · 25–30% of exam

Which approach is recommended to avoid index bloat with pgvector HNSW index on a table with frequent updates?

  1. A Rebuild index daily with REINDEX CONCURRENTLY
  2. B Batch updates and run VACUUM ANALYZE after (correct answer)
  3. C Use IVFFlat instead
  4. D Partition the table by date

Shortcut: Frequent updates can bloat HNSW indexes. Running VACUUM ANALYZE periodically removes dead tuples and updates planner statistics, maintaining query performance.