Skip to content
Permalink
Browse files

Improved performance of async full reindex - fixes #1325

  • Loading branch information...
ankane committed Oct 17, 2019
1 parent 6e6e921 commit 610937f8c16f504e96418adedf192b0c98a09ce9
Showing with 6 additions and 0 deletions.
  1. +4 −0 CHANGELOG.md
  2. +2 −0 lib/searchkick/bulk_indexer.rb
@@ -1,3 +1,7 @@
## 4.1.1 [unreleased]

- Improved performance of async full reindex

## 4.1.0

- Added `like` operator
@@ -87,6 +87,8 @@ def full_reindex_async(scope)
# TODO expire Redis key
primary_key = scope.primary_key

scope = scope.select(primary_key).except(:includes, :preload)

starting_id =
begin
scope.minimum(primary_key)

0 comments on commit 610937f

Please sign in to comment.
You can’t perform that action at this time.