Where do indexes reside?

Last updated 22, Mar 2024

Question

Where do indexes used by searches and queries reside?

Answer

Index definitions reside in RDB snapshots or in the AOF, but the index internal data is ephemeral and is not persisted. Re-indexing occurs when index definitions are loaded from AOF or RDB.

References

Read more about searching and querying with Redis Stack.