-
Notifications
You must be signed in to change notification settings - Fork 58
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
An extra delete request during reindexing has been removed. #444
base: main
Are you sure you want to change the base?
An extra delete request during reindexing has been removed. #444
Conversation
During reindexing, a request is made to clear the index, and then each record (which no longer exists) is deleted again, which slows down the process
Can you open up an issue with a description and everything that you can manage to provide for us to make sure we're understanding what you're seeing and what this PR is meant to solve? Thanks. |
The problem is similar #372 Once again, I analysed what happens when reindexing from wp-cli and the admin-panel |
Understood on those parts, and I'm not outright saying no on this or anything like that, but will want some time to think things through for what you're proposing and if I'm seeing potential better and more appropriate routes. One thing to keep in mind, is that records and posts aren't always 1:1. If you have an extremely long post, that spans like 5 records, based on max size settings and whatnot, then the one Regardless, leaving this open for the moment while we continue to explore and think everything through as best we can. |
Handling variations in specifying the ‘algolia_clear_index_if_existing’ filter and reindexing by ‘specific_ids’
Of course, I have seen that one object can be stored as several parts. You can see - I added a parameter that contains information about whether the index has already been completely cleaned or not. And used it when analysing the need to delete an item. This is now very easy to combine with the --clear wp-cli parameter fix: I checked with my fixes - full reindexing (with clear) even in batches of 1000 goes very fast (from wp-admin panel) |
will keep all of that in mind and definitely also work to recreate for testing purposes as well, as we evaluate things. Also trying to not rush into things too hastily as that has bitten us in the proverbial butt in the past too. |
During reindexing, a request is made to clear the index, and then each record (which no longer exists) is deleted again, which slows down the process (reindexing takes hours instead of minutes)