Results got worse, or slower. Now what?
The failures to plan for, and the playbook from symptom to fix.
| What happens | What you see | What I do |
|---|---|---|
| The index no longer fits in memory | Search goes from about a millisecond to many | halfvec or other quantization, fewer dimensions, an index per large tenant, or more memory. |
| Filtered search returns too few rows | The search or the agent "forgets" things | Iterative scan, a partial index for each big tenant, or an exact search inside small tenants. |
| A new embedding model | Old and new vectors are not comparable; quality drops without an error | Store the model name on every row. Re-embed everything, build a new index, then switch. |
| Heavy updates and deletes | Deleted entries linger in the graph; speed and recall drift | Vacuum regularly, and rebuild the index with REINDEX CONCURRENTLY after a big change. |
| Recall never measured | Answers are quietly worse than they should be | Keep a set of test questions, compute the exact answers once, and measure recall after every change. |
| A separate vector store out of step | Deleted or private documents still appear in answers | One source of truth that feeds the vector store through an outbox or CDC, with deletes and permission changes first. |
How do databases actually work? From one row on disk to transactions: the words you need, PostgreSQL, MySQL and MongoDB from the files up, then Redis, Cassandra and vector search, side by side, and the query and concurrency traps.