-
Notifications
You must be signed in to change notification settings - Fork 368
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
Bulk Indexing Optimization and Refresh on Async Strategies #467
Merged
Merged
Changes from all commits
Commits
Show all changes
24 commits
Select commit
Hold shift + click to select a range
149a7d0
Added use_enhance_index_settings_while_resetting and disable_refresh_…
ericproulx 3f0ae69
Use config `disable_refresh_async` in async strategies
ericproulx 6b76da4
Use config `use_enhance_index_settings_while_resetting` in reset
ericproulx 597d6e9
Fixed refresh_interval settings after import
ericproulx be15f69
Added specs
ericproulx d1ef901
Small refactor with `refresh: false` when `use_enhance_index_settings…
ericproulx 7cbfaff
Added condition for refresh with `disable_refresh_async`
ericproulx 04b6e26
Fixed rubocop offenses + Fix setting back refresh_interval if no sett…
ericproulx 67c6b7b
Fixed rubocop offenses
ericproulx f58fa44
Fixed warning + not proud copy/paste
ericproulx af3b8b3
Fixed resque spec typo
ericproulx d7e447e
Added disabled_refresh_async spec
ericproulx 3342428
Refactor + Added spec
ericproulx d258744
Refactor extract_index_settings
ericproulx 6746abf
Fix offenses
ericproulx 0580a10
Freeze rubocop to 0.46.0
ericproulx b4e2bd9
Moved rubocop 0.46.0 to gemspec
ericproulx 9dae6a9
Fixed rubocop 0.47.0 offenses. Removed 0.46.0 lock
ericproulx 4d29534
Separated no_replicas and refresh_interval.
ericproulx 6c19286
Removed rubocop 0.46 from gemfile
ericproulx 7cabb49
Trigger
ericproulx a8659a3
Trigger
ericproulx 19b4180
Freeze elasticsearch gem to 5.0.0 because of the delete_by_query chan…
ericproulx f3f8042
Merge remote-tracking branch 'upstream/master'
ericproulx File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey, why did you add this?
I'm thinking about some options passed to the block:
Chewy.strategy(:sidekiq, refresh: false) { do_stuff }
Instead of the global option. However it would not affect anything, so I'm ok to accept it if you don't want to change your mind.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think both ways could work. We could set the strategy globally for the async
strategies
or we could simply pass some options to the block to have a different behavior for some cases. What do you think ?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, this makes sense. I'm just thinking of it being slightly excess. But yeah, we can keep both ways. Tell me when you think this PR is ready, I'll review it again.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ready to review sir 👍