Home › Forums › Product Support Forums › Ajax Search Pro for WordPress Support › How to speed up the loading of the results box?
- This topic has 2 replies, 2 voices, and was last updated 5 years, 10 months ago by
kotisivutohtori59.
-
AuthorPosts
-
July 10, 2020 at 11:22 am #28370
kotisivutohtori59
ParticipantHi,
how can I make the Ajax Search results box open faster? I tried decreasing the indexing:
Stats (reloads periodically) | Items Indexed: 1048 | Items not indexed: 0 | Total keywords: 51856 (original)
Stats (reloads periodically) | Items Indexed: 472 | Items not indexed: 0 | Total keywords: 21068
Stats (reloads periodically) | Items Indexed: 472 | Items not indexed: 0 | Total keywords: 14179 (last one)But still I don’t see any change in the speed when the results start appearing. This is specially an issue with mobile version (magnifier icon) and its results. The box having the results takes sevaral seconds to show up. How can I get the results immediately starting to show up when writing the search-word? I tried finding answers from documentation but did not really find help from docs.
We are happy for just some results showing up. No need to load all the 10 results at once. Is 10 results too much to load at once?
Please test with mobile devise so you see it better. The magnifier icon appears on the top-right-side (with green background). Thanks!
– Anne
July 10, 2020 at 11:58 am #28372Ernest Marcinko
KeymasterHi Anne,
The search performance depends highly on your server performance. The plugin does not use any subscription based or external service to handle the actual search process, it is handled on your server.
The downside is, that each ajax request is handled by WordPress, and the response time highly depends on how well the whole WordPress core responds. Looking at the site back-end, it takes some time to load everything up, the sites needs a few seconds to start responding. The search response cannot be much faster than that.
Instant suggestions would require a dedicated 3rd party service. Some plugins do provide that for a monthly fee.I did a few improvements, that may push the search performance further, but looking at the search performance tracker, the most recent search processes itself does not take that much time at all (0.03 s).
I did the following improvements:
– Enabled the custom ajax handler
– Enabled the index table engine on search id=4, make sure to enable that on other search bars if needed
– Changed the keyword logic to AND, it is a bit more optimalI’m already seeing response times below 2 seconds, which is a great improvement.
What I also recommend:
– Turning off as many plugins as possible. Plugins you don’t use, should be deactivated, that may impact the site performance greatly.July 13, 2020 at 11:38 am #28408kotisivutohtori59
ParticipantThanks for your help and the suggestiongs. I’ll have a look at them!
– Anne
-
AuthorPosts
- You must be logged in to reply to this topic.