A document search service on Azure Database for PostgreSQL flexible server has an IVFFlat index named idx_documents_embedding on the documents table, built with vector_cosine_ops. Sessions run with ivfflat.probes = 30. Last month, about 40% new rows were added from a new product domain. Since then, users report less relevant results, and measured recall has dropped. EXPLAIN ANALYZE confirms that queries already use idx_documents_embedding.
Requirements:
- Restore recall for the shifted data distribution.
- Inserts and updates from the application must continue while the maintenance runs.
- Keep
ivfflat.probesat 30 rather than increasing the number of lists searched per query.
Which statement should you run?
Choose one answer.
REINDEX INDEX idx_documents_embedding;SET ivfflat.probes = 100;ANALYZE documents;REINDEX INDEX CONCURRENTLY idx_documents_embedding;SET hnsw.ef_search = 200;