Database / Weaviate Vector database Interview questions
What is the Dynamic index in Weaviate?
The Dynamic index is a hybrid strategy that starts a collection off using a Flat index and automatically switches to an HNSW index once the collection's object count crosses a configured threshold, giving small collections the low overhead of Flat while still scaling gracefully into HNSW's better performance at larger sizes.
vector_index_config=Configure.VectorIndex.dynamic( threshold=10000 )
This is especially useful for multi-tenant collections where individual tenants' data sizes vary widely and unpredictably: a small tenant automatically stays on cheap, simple Flat indexing, while a tenant that grows large automatically gets upgraded to HNSW, without an application needing to manually decide or migrate index types itself as usage patterns change over time.
More Related questions...