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

Provide an easy way to re-index existing data #49

Closed
bits01 opened this issue Jun 19, 2016 · 2 comments
Closed

Provide an easy way to re-index existing data #49

bits01 opened this issue Jun 19, 2016 · 2 comments
Milestone

Comments

@bits01
Copy link
Contributor

bits01 commented Jun 19, 2016

If adding a new index to an existing struct, any already persisted data would have to be re-indexed by re-saving each item again. It would be nice to have a simple way to do it without each user writing the same loop.

Ideally storm would detect it and just do it automatically, but for that it would probably need to persist some info about indexes on each struct.

@malaschitz
Copy link

Maybe in __storm_metadata store description of all index. For example:
"user":"{ID:id,Email:unique,Age:index}"

When it is changed, than reindex all objects.

@asdine asdine added this to the v0.6.0 milestone Oct 3, 2016
@asdine
Copy link
Owner

asdine commented Oct 5, 2016

I think automatically reindexing data can add unnecessary overhead for the common user.
Changing indexes isn't something that happens a lot in my opinion, so adding a check at every request will be useless 99% of the time.

@asdine asdine mentioned this issue Oct 9, 2016
@asdine asdine closed this as completed Oct 9, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants