Home › Forums › Product Support Forums › Ajax Search Pro for WordPress Support › creating index table
This topic contains 4 replies, has 2 voices, and was last updated by Ernest Marcinko 3 years, 5 months ago.
- AuthorPosts
- December 13, 2019 at 9:29 am #25015
Hi, I’m trying to create index table and first the creating process goes quite fast but then it slow down … almost stop. +1% progress will take for ~1 hour
Have a look https://prnt.sc/qa87ee
I try to do it few times but the result the same 🙁
i lowered Post limit per iteration to 10 – it doesn’t help too.
The server quire fast and the site works good, but i just want to increase speed of the search via index table because the number of posts will be
about 5-6 millions soon.What can I do?
December 13, 2019 at 10:35 am #25016I have set up cron job and as i can see there is some progress in creating index table. I run the cron every 2 minutes …
December 13, 2019 at 12:31 pm #25027Hi,
I would rather recommend increasing the post limit per iteration to a much higher number, say 200 first. Then if your server can handle that, it will be much faster. If there is a failure, the plugin will try to lower that automatically during the indexing, it will also notice you if the process fails many times, then you should start lowering that value.
If you have attachments to index, then those are indexed one-by-one regardless, as that is a very CPU heavy process.The problem with the cron job is, that WordPress cron is not actually a classic cron job, it is triggered only whenever a page is opened and WP itself loads. That will not help much in this case.
I also recommend having the window visible on your desktop while indexing, Chrome and Firefox are known for throttling the javascript when a tab is not visible, and may delay the triggers.
Best,
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
December 13, 2019 at 4:23 pm #25032Ernest, thanks.
We blocked Cron from working with “define(‘DISABLE_WP_CRON’, true);” in wp-config.php and run tasks using WP-CLI (wp cron event run –due-now). Is there a way to completely turn off the start of indexing when going to your plugin’s “asp_index_table” page because it hangs anyway? We gonna have several million posts on the site, so we can’t handle cron tasks on the frontend.
Thanks!
Max.December 16, 2019 at 10:52 am #25042You cannot access this content. Best,
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
- AuthorPosts
You must be logged in to reply to this topic.