WP Appbox slows down elasticpress indexing (a lot)
-
Hello,
I was rolling out ElasticPress to a lot of sites I am administrating and one step was to create the index.
And I noticed something odd. I have a really really big and heavy site (100k posts). It finished indexing after like an hour.
And I have a somewhat big site (40k posts), and it takes 12 hours to build the index.
I think I was able to pin it down to WP Appbox. Because I also have a really small site (250 posts) which I initially forgot; and it used both an old (2012-era) App Store plugin and WP Appbox. The old plugin was throwing errors like crazy, so I disabled it and mapped its shortcodes to WP Appbox. But these 250 posts (and 765 objects, including revisions for ElasticPress) took 15 Minutes to index.
When I disabled the plugin and tried the same again, it was 4 seconds.
What I suspect is that WP Appbox is refreshing the cache for the apps while ElasticPress is accessing (and rendering) the posts. And there are several sleep functions in the code. So I guess that’s where the delay comes from.
Could we maybe rely on the cache when accessed at least by WP-CLI and skip all the refresh and waiting? That would help quite a lot for maintenance jobs that need to render the posts outside the web.
Thank you!
You must be logged in to reply to this topic.