Right now I just delete the index in the dashboard, wait a minute or two, and then create a new index with the same name.
Obviously I can do this because I’m not in production yet.
From the Update() docs it seems it’s possible to update the index document although there is no guarantee when the update will happen:
For performance, Databases, Collections, Functions, Indexes, Keys, and Roles use a cache. When you use Update to modify any of these FaunaDB schema documents, the modification is not guaranteed to be visible immediately.
The issue here is that an index may return different values which might be coupled to some logic of the application. Since we don’t know when the new updated index will be in place, the only safe option is to never really update an index and create newer versions instead (eg:
Am I missing something here?
How do you do it?