-
Notifications
You must be signed in to change notification settings - Fork 73
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
Reloading Indexes on New Record Insertion in DB #90
Comments
This package doesn't include any automatic way to do this. You would need to set up your code such that whenever you insert a record into the database, you make a |
@danielberkompas So I thought to use in the following way... Elasticsearch.Index.hot_swap(MyCluster, "posts")
# for whenever a post is added similaryly for the rest. I still doubt using this way as for every new post it will create new index with prefix time. Does this approach will have the impact in the code performance? If not we can use this instead of using FYI, we are using Glad if you could confirm the approach. Thank You :) |
I don't think you should use |
Thank you :) @danielberkompas |
Here, I'm building the indexes when the application starts using
mix
taskHow can we reload the index as soon as a new record inserted into DB?
Do we have to stop application and rebuild the indexes here?
Glad if we have any automation here, unfortunately I did not find any other than tasks.
Thanks :)
The text was updated successfully, but these errors were encountered: