Skip Navigation

[Resolved] Very slow search

This thread is resolved. Here is a description of the problem and solution.

Problem:

The issue here is that the user's view search is running slow.

Solution:

What I would recommend is that you have a look at the link below.
https://toolset.com/documentation/user-guides/front-page-filters/how-to-use-views-parametric-search-on-large-sites/

This support ticket is created 5 years, 9 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 -
- 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 14:00 – 18:00 13:00 – 18:00 -

Supporter timezone: America/Jamaica (GMT-05:00)

This topic contains 6 replies, has 2 voices.

Last updated by catrionaD 5 years, 9 months ago.

Assisted by: Shane.

Author
Posts
#1197176

Hi, the search seems super slow even though there are not very many listings.
Can you please recommend how I can speed this up?
Thanks!

#1197479

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Catriona,

Thank you for contacting our support forum.

Would you mind providing me with access to this search form so that I can see how slowly it is running ?

Also I might be able to see what is causing this as well.

Thanks,
Shane

#1197739

Hi Shane,
Sure, it's available at hidden link
Or let me know if you need access some other way.
Thanks

#1197896

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hello,

So from what I can see the search loads fine. It could be your database that is a bit slow.

What you can do is to add a graphic spinner to your search to indicate that the results are loading. This would give your users some form of visual aid letting them know that the search is working.

To add the spinner just select it from your search filter editor.

Thanks,
Shane

#1197920

It takes around four seconds to display results. Is this typical of Toolset?
Is there any way to speed it up?

Also, can you please share the default CSS for the grid filters? I want to change this so the filters sit closer together.

And how can I start with blank (no results shown) then only show results once searched?

Thanks!

#1197964

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Catriona,

Since you are using a caching plugin I wouldn't recommend doing this.

What I recommend that you do is to check the instructions below.
https://toolset.com/documentation/user-guides/front-page-filters/how-to-use-views-parametric-search-on-large-sites/

Using this will allow your site not to hit the database each time a search is done.

Secondly, the search doesn't have any default css but rather relies on the theme or your chosen custom css to display the form in a way you want. I see it is currently using the bootstrap to style the form because the bootstrap classes are being used.

For the blank search form you will need to separate the search form itself from the results. This can be done when inserting your search onto the page. You will be presented with the option to Insert the Search form with results, Search form only, or results form only.

So you will need to add the search form only to the page and then on a separate page add the results . It should be noted that the results page will also have the search form attached.

Please let me know if this is clear or if further clarification is needed.

Thanks,
Shane

#1201764

My issue is resolved now. Thank you!