Updating Schemas and Managing Collections in Typesense
TLDR Davide asked about updating schemas without reloading data, Jason recommended using aliases to point to timestamped collections and dropping old collections after an update.
1
May 19, 2021 (31 months ago)
Davide
01:15 AMJason
01:23 AMIn the meantime, I'd recommend using aliases (similar to symlinks in linux) to point to a timestamped collection and using that alias for searches. When you need to update the schema, you'd create a new collection with the latest timestamp in its name, index the data, and then finally switch the alias to point to the new collection.
Jason
01:23 AMDavide
01:25 AMJason
01:25 AMDavide
01:26 AM1
Typesense
Indexed 2786 threads (79% resolved)
Similar Threads
Editing Schema of an Existing Collection in Typesense
clem inquired about adding a new attribute in Typesense collection. CaptainCodeman suggested aliasing, while Jason recommended auto-schema detection, with a future plan to support schema changes. Brandon asked about updates on the feature.
Setting Search Field to `Facet=True` in Catalog Quickly
John inquired about updating a search field setting. Jason suggested creating a new collection with an updated schema and utilizing a collection alias to mitigate downtime.
Updating Collection Schemas in Databases
Chris wanted to know about updating collection schemas. James and Jason provided insights and mentioned an upcoming solution for in-place schema changes.