WebDevStudios / wp-search-with-algolia

Improve search on your site. Autocomplete is included, along with full control over look, feel and relevance.
https://wordpress.org/plugins/wp-search-with-algolia/
146 stars 55 forks source link

[Feature-327] Wait for delete operations to complete before updates #328

Closed colis closed 1 year ago

colis commented 1 year ago

Closes: #327

Make the delete operation synchronous when executed in the context of an update request.

tw2113 commented 1 year ago

@colis Not sure how much large re-indexing you're doing, but I'm curious if you've noticed any slowed down performance from this PR. We're seeing others reporting timeout issues with the 2.6.0 release, and I have a feeling this PR may be why.

colis commented 1 year ago

@tw2113 we're not doing re-indexing through the UI but only via the CLI command due to the size of our dataset (250k+ posts). I reckon the wait operation should be disabled during batch re-indexing, since posts are gonna be deleted anyway and the order of operations is not relevant.