toptal / chewy

High-level Elasticsearch Ruby framework based on the official elasticsearch-ruby client
MIT License
1.89k stars 368 forks source link

Allow asynchronously cleanup journal #857

Closed konalegi closed 2 years ago

konalegi commented 2 years ago

For the cases when we need to remove a large journal we could benefit from using the async execution provided by delete-by-query methods

Usage example

rake chewy:journal:clean -- --wait_for_completion=false --requests_per_second=10 --scroll_size=5000

Before submitting the PR make sure the following are checked: