Skip Navigation

[Résolu] Search Engine working very slow

Ce fil est résolu. Voici une description du problème et la solution proposée.

Problem:

The issue here is that the user's site is running slow with the views search.

Solution:

Normally we would recommend that you have a look at this document below to help optimise your search.

https://toolset.com/documentation/user-guides/front-page-filters/how-to-use-views-parametric-search-on-large-sites/

This support ticket is created Il y a 5 années et 9 mois. 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.

Aucun de nos assistants n'est disponible aujourd'hui sur le forum Jeu d'outils. Veuillez créer un ticket, et nous nous le traiterons dès notre prochaine connexion. Merci de votre compréhension.

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)

Ce sujet contient 25 réponses, a 3 voix.

Dernière mise à jour par Shane Il y a 5 années et 9 mois.

Assisté par: Shane.

Auteur
Publications
#1203867

First of all the Url is: lien caché
* Its a multi site system

We have built a search engine for our customer catalog, here is the details:
Post types:
- Catalog (Parent cpt)

Fields:
Motorad number
D1 [mm]
D2 [mm]
H [mm] T°[C]
Seal/gasket
Jiggle Pin
Type
Text – post content
Photo

Taxonomy:
Category of item

- Vehicle (Child CPT of catalog)
Fields:
cc (L)
Year start
Year end
Model – text field

Taxonomy:
- Brand
- Years

- OEM (Child CPT of catalog)
Fields:
OEM Number field
Manufacture

For now the search engine showing the right result but we have 2 speed issues:
1. Because of the relationships once you are trying to search its take too many time to get the result,
We are calling to the Childs CPT (OEM & Vehicle) and showing The Parent CPT (Catalog)
* The search engine appearing at the header all over the site

2. At The catalog Page (for example: lien caché)
We are showing the catalog CPT field and we have TABS Section the showing the childs details (OEM & Vehicle) -
All the single Catalog page are loading too slow

We wiil be more then happy to get some solution for this 2 speed issue's, We considered to develop it again by full custom code because we tried many method to solve it and we didnt found any solution. You are our last chance to solve it without changing from toolset to a custom code.

Thanks

#1204123

Shane
Supporter

Les langues: Anglais (English )

Fuseau horaire: America/Jamaica (GMT-05:00)

Hi Lina,

Thank you for contacting our support forum.

Normally we would recommend that you have a look at this document below to help optimise your search.
https://toolset.com/documentation/user-guides/front-page-filters/how-to-use-views-parametric-search-on-large-sites/

If this doesn't help please let me know as it is a standard document to cover the basics to ensure the search is running smoothly.

Please let me know as soon as you try the steps there.

Thanks,
Shane

#1205113

Hi Shane,

Thanks for your reply,

We already tried this method and its still not make any improvement,

Can you check again please and see if there is any other method to improve it?

Thanks

#1206508

Shane
Supporter

Les langues: Anglais (English )

Fuseau horaire: America/Jamaica (GMT-05:00)

Hi Lina,

Would you mind if I installed a few debugging plugins onto the site ?

This way I can see the loads on the site as it is slow in general.

If you have a test site so I wouldn't have to check on the live site that would be great as well.

Please let me know so that I can proceed.

Thanks,
Shane

#1207047

Hi Shane,

Yes, You can install and check,

Please let me know if you need anything else,

Thanks

#1207125

Shane
Supporter

Les langues: Anglais (English )

Fuseau horaire: America/Jamaica (GMT-05:00)

Hi Lina,

It seems like i'm not able to access the site admin page with these credentials you sent, so i'm not able to install any plugins.

Could you update the credentials so that I can gain access to install plugins.

Thanks,
Shane

#1207157

Hi Shane,

Thanks for your quick reply,

PLease provide me your team IP's, I need to approve it before you will get the option to logged,

Thanks

#1207283
#1207399

Iv'e approved your IP you can log in.

#1207731

Hi Shane,

Because of the page speed we've disable the search engine all over the site,

For now its appearing only at this address: lien caché

Thanks

#1207992

Shane
Supporter

Les langues: Anglais (English )

Fuseau horaire: America/Jamaica (GMT-05:00)

Hi Lina,

This page is loading quite a lot of information.

So essentially it is quite heavy, the link you sent is also loading up 13 different views.

I'm not seeing in the debug information where caching plugin is installed. I would highly recommend caching since the problem here seems the caused by multiple requests from the database.

https://wordpress.org/plugins/wp-super-cache/

Install this plugin as i'm still not able to access the network admin here lien caché

The page is saying i'm not allowed so i'm limited in what I can do at the moment.

Thanks,
Shane

#1209049

Hi Shane,

We've installed the caching plugin and it a little bit faster then before but we are still not satisfy from the results.

The main issue cause the following view:
lien caché

this one loaded the vehicle search / results,

Can you suggest how to improve or build it more optimized?

Thanks

#1209477

Shane
Supporter

Les langues: Anglais (English )

Fuseau horaire: America/Jamaica (GMT-05:00)

Hi Lina,

I looked into this for you .

From what I can see the setup is acceptable because You are filtering the Categories based on the parent view so this i think is fine.

Right now i'm checking the debug in my chrome console to see what script is taking up the load time.

Thanks,
Shane

#1209481

Shane
Supporter

Les langues: Anglais (English )

Fuseau horaire: America/Jamaica (GMT-05:00)

Screenshot 2019-03-04 at 9.40.49 AM.png

So i've checked it for you and the issue from what I can see is the images.

Take a look at the screenshot .

This is the waterfall model for the page here lien caché

What I recommend we can try is some image optimisation as well.

https://wordpress.org/plugins/ewww-image-optimizer/

Looking at the script loading it doesn't take much time to load but as you can see the images are taking almost 1s to load.

Thanks,
Shane

#1209496

Hi Shane,

The problem is not the images loading time,

Its all about the DB queries, each search action look all over the DB to get the result and its take too many time,

there is another optimized way to implement it by toolset?