Slow search results

Posted in: Newspaper
Post count: 49

Hello,
We’re running a large website with this theme. We are also using the same theme for many other sites, with no issues. We’re very pleased. (great work btw)
On the large site, with over 70,000 articles, the menu search bar function is very, very slow. A one word query takes as much as 55 seconds (yes, almost a minute) to return the search results page.
Alternatively, adding a search string to url (ex. https://www.caymancompass.com/?s=superintendent) does the same in 5 seconds.
How can we change this search functionality to simply go to the page, instead of calling a script to suggest results? Or, is there a trick to speed this up? (by a factor of 10x)
Is there a way to turn off the ‘autocomplete’, or whatever else would be slowing down the search?
Please advise. Your help would be greatly appreciated.
Thanks in advance.

Post count: 23312

Hello pinnaclecompass,

Please keep in mind that this is the functionality for our Live Search. This feature uses the Ajax Search and for each element which you want to search, the theme will make a query to the server and that’s why taking so much time until you receive results, sorry! Another alternative for you would be to disable the live search from the code, like this -> http://screencast.com/t/oxn5B11XbCCQ

Thanks for the message!

Post count: 49

The solution in the screenshot to comment out code is perfect. Thanks!

Post count: 49

I spoke too soon. I tried this on both the production server and a dev server, but the main menu search bar still pulls in search results.

I then followed the instructions here, editing another file: https://forum.tagdiv.com/topic/search-issue-error-508-resource-limit-is-reached/

Still, the search bar works as before, querying the massive db as the visitor types. Cache was cleared. Is there another file, which needs altering?

Again, I’m only trying to disable the live search function, because of the size of our website. The search function as-is has caused severe performance issues at times, even though we’re running on a dedicated server with lots of resources.

Post count: 23312

Hello pinnaclecompass,

I have checked your website and I saw that your Live Search is disabled and returns no live results. Please keep in mind that the only core file which handles this functionality is td_data_source.php. It is the only file which handle this feature.

Thanks for the message!

Viewing 5 posts - 1 through 5 (of 5 total)
The forum ‘Newspaper’ is closed to new topics and replies.