Use HNSW. At 2M rows it is the only option that fits the retrieval budget with room to spare2.
- Recall and speed: HNSW held 0.97 recall at 9 ms p95, against 0.91 at 14 ms for IVFFlat. The budget for retrieval is 15 ms2.
- No training step: IVFFlat builds its lists from the rows present at build time, which is what broke recall after the last reindex15.
- Cost: the build is slower and needs more memory. Raise
maintenance_work_mem for the build so the graph fits in memory14.
Start with m = 16 and ef_construction = 64, then tune hnsw.ef_search per query3.