-
-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(core): Use batching when reindexing search index
On a test dataset of ~9k ProductVariants, the reindex was using an extra ~550MB. With this batching, the memory usage stays pretty flat around the idle level. The trade-off is that the operation takes around 20% longer, but during that time the server is still responsive (albeit with increased latency). Formerly, the server would not serve requests for the duration of the reindexing op.
- Loading branch information
1 parent
54078d0
commit 40c5946
Showing
1 changed file
with
24 additions
and
6 deletions.
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