-
Notifications
You must be signed in to change notification settings - Fork 59
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
Multiple DELETE requests with long response times #611
Comments
Hey @vlowe85 |
I have no idea what is so special about these 6 articles, they have not been modified recently but they all seem to be drafts Correction: The item is updated via the strapi API every 5 mins, but the data is unchanged and the publication state is unchanged. More info on this: |
Hey @vlowe85, I'll come back to you tomorrow, I'm off for today. Thanks a lot for the additional context |
No problem, so every 5 mins it will be updating probably about 50 strapi articles with a PUT API call. I guess it thinks these 6 are in meilisearch and need to be deleted. But if i search for any of these articles in meilisearch directly they don't seem to exist. |
Hey @vlowe85, My bad for the late reply, it flew under the radar. So after investigating a bit, this is what's happening.
This is because we are not aware what the entries value were before the update, thus we cannot guarantee for example that the change is not
The advantages of Now, in any case, we can batch the document deletion in case you are updating multiple entries in one request. Which actually is way better than the current implementation. |
See #632 |
The search logs show that the plugin is making multiple DELETE requestd for the same articles ID, seems on a 5 min interval.
These sometimes take 7 seconds to respond
Description
[2022-12-13T13:05:54Z INFO actix_web::middleware::logger] 172.19.16.209 "DELETE /indexes/article/documents/article-686 HTTP/1.1" 202 130 "-" "node-fetch/1.0 (+https://github.com/bitinn/node-fetch)" 7.700711
article-686 has not been deleted in strapi or updated, but it is not published so not sure how it was indexed in first place
Expected behavior
Dont repeatedly send DELETE calls
Environment (please complete the following information):
The text was updated successfully, but these errors were encountered: