The expected answer probably implies some db knowledge, potentially avoiding index creation, and potentially going with NULL first.
BUT
The actual way of doing it if you respect customers, your engineers and oncall - is typical 3 step migration:
Bring new storage with new field. Hydrate it with existing data
1. Write to both, read from first storage
2. Write to both, read from second storage
3. Write and read from second storage (that has flag)
Worked on 1M rps. Applies regardless of storage type.
515 октября 2026 г. 414