Skip to content
Preptima
hardDesignScenarioSeniorStaffLead

You need to reindex a ten-million-chunk corpus with a new embedding model. How do you do it without downtime?

6 min readUpdated 2026-08-15

Answer

Short answer

Build a shadow index beside the live one, dual-write from a recorded change-feed watermark so it never falls behind, verify on reconciliation counts plus a gold set and shadowed production queries, then cut over by moving an alias and keep the old index writable long enough to roll back.

Was this answer helpful?

Likely follow-ups

  • The new model has different dimensionality and a different score distribution. What breaks besides the index?
  • Halfway through the backfill you find a parsing bug in the new pipeline. Restart or repair in place?
  • How would you cut over one tenant at a time, and what does that require of the query layer?
  • Your gold set says the new index is better and shadowed traffic says it is worse. How do you resolve that?

Related questions