Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add secondary indices via API/function call #384

Open
rgevrek opened this issue Aug 5, 2023 · 0 comments
Open

Add secondary indices via API/function call #384

rgevrek opened this issue Aug 5, 2023 · 0 comments

Comments

@rgevrek
Copy link

rgevrek commented Aug 5, 2023

Is your feature request related to a problem? Please describe.
Secondary indices are very powerful and the main advantage against classical key-value-store and multi-column databases and I am happy, that it is part of Tigris, but once you have created a collection, you cannot add any later via implicit code migration.
But luckily it is possible in Tigris to do via Web Console, but due to automated pipeline and multi staging, I need to have to add or remove secondary indicies via client API within migration scripts.

Describe the solution you'd like
In the typescript client I would like to have a function to add and remove secondary indices on collection fields. I am aware of that each entry in the collection needs to processed for adding into the new index.

Describe alternatives you've considered
I see no alternatives (rather then implicit or explicit addition and removal of a secondary index), as of new indices can be required within product development progress continuously and a full copy of a whole collection with data and branches is not a feasible workaround.

Additional context
No additional context.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant