Home › Forums › Product Support Forums › Ajax Search Pro for WordPress Support › slow search
- This topic has 27 replies, 2 voices, and was last updated 4 years, 1 month ago by
Ernest Marcinko.
-
AuthorPosts
-
March 29, 2022 at 7:03 pm #37334
jarry23
ParticipantHello Ernest,
I’ve written to you several times, so you have all the information in the email. My email pracedo20atgmail. I have a problem with a search speed that takes 4 seconds or more (you can see the speed in the videos I sent you directly by email). Please have a look on it.
March 29, 2022 at 7:09 pm #37335jarry23
ParticipantI am sending video in attachment. When I use basic woocommerce search, the result takes a maximum of 3 seconds. Tested several times at different times.
March 30, 2022 at 9:18 am #37337Ernest Marcinko
KeymasterHi,
Thank you for the details!
I searched up our previous conversation, and I suggested to not use the elementor live filter to get the best possible performance – because with elementor a new page load has to be rendered to replace the existing results. That is usually slower as the simple ajax request.
To no use the elementor live filter, make sure to remove the “asp_es_1” class name from the elementor posts widget.I also recommend decreasing the live results count to around 50 or less. The “load more” feature will take care of the rest if the user scrolls to the bottom of the list.
March 30, 2022 at 1:52 pm #37339jarry23
ParticipantHi,
I removed the “asp_es_1” class and set 48 results, but it’s still very slow. When I type “svg”, “free svg”, which are the most searched phrases, it takes more than 10 seconds. Also, when I click on the next page in the pagination, it takes the same amount of time around 10 seconds. Other phrases takes around 3 seconds. Which is a bit worse than a basic woocommerce search. Is there anything else that could speed it up?
March 30, 2022 at 4:46 pm #37340Ernest Marcinko
KeymasterThank you!
I have applied some of the code from the upcoming release – which targets specific issues with the pagination and the number of results and how they are processed.
I suspect there was a problem somewhere in the processing unit, where not only the results from the current page were processed, but all of the results set. Typing “svg” or “free svg” yielded over 9k results, and then it triggered the incorrect processing function.
I ran a few tests, and currently it seems that on both the results page and both on an elementor test page only the actual number of items is processed. Every test I conducted was now around 1.5 seconds, instead of the initial 10 for the “svg” or “free svg” keywords.
I still strongly recommend using the plugin live search results container instead of the live results or Elementor filtering widgets – that is the best way to quickly display 10-50 results initially. It has the least overhead, almost fully controlled by the plugin only. You can use the more results with infinite scrolling to show more results gradually etc..
March 30, 2022 at 6:04 pm #37342jarry23
ParticipantThank you! Its really a lot faster. Can you point me where is documentation and settings for “live search results container”.
March 31, 2022 at 12:39 pm #37347Ernest Marcinko
KeymasterThe live search results show basically when the results page loader and the Elementor widget filtering is disabled, like this one from our demo: https://i.imgur.com/BTXARxZ.png
It is basically just a container for the plugin to display the results on it’s own. There is either a vertical/horizontal or an isotopic layout available for it, you can switch to it by choosing the overall search theme.
This container can be moved on the same page via the results shortcode. Another interesting feature is the advanced title and content fields, and the results templating for further customizability.April 1, 2022 at 1:57 pm #37374jarry23
ParticipantAlright that’s really super fast. Basically, I can style it to look like a normal results page, if I understand correctly. Awesome plugin and your support as well. Thanks so much you saved me hundereds of bucks when I use your plugin. Thank you!
April 1, 2022 at 2:01 pm #37375Ernest Marcinko
KeymasterYou are welcome 🙂 Yes, sort of like that. You can even “hack” it to be used as the custom results page for searches made via the plugin.
April 1, 2022 at 3:41 pm #37377jarry23
ParticipantCan you do for me custom modifications?
April 1, 2022 at 5:57 pm #37379jarry23
ParticipantI have issue with load more function. Infinite scroll is enabled, but it does not load any other results.
Settings https://prnt.sc/UMSHwozxqu5ePlease check here
https://www.svgheart.com/search-2-2/Should I open another ticket?
April 2, 2022 at 9:16 am #37384Ernest Marcinko
KeymasterIt loads, but the pagination is active, try turning it off: https://i.imgur.com/YXmJLoM.png
April 2, 2022 at 11:11 am #37387jarry23
ParticipantUnfortunately it does not help. I tested all possible ways – only pagination, only load more, and load more with infinite scroll – but all options show max 50 products.
Can you please look on settings.April 2, 2022 at 11:21 am #37388Ernest Marcinko
KeymasterSure. I have turned off the navigation, then enabled the infinite scroll, cleared the site cache, and it seems to be working all right.
April 2, 2022 at 11:28 am #37389jarry23
ParticipantIt also works for me when there is no search phrase, but when I search for something, it does not load any. And if possible I need pagination only
-
AuthorPosts
- You must be logged in to reply to this topic.