Home › Forums › Product Support Forums › Ajax Search Pro for WordPress Support › Problem with speed after optimization
- This topic has 4 replies, 2 voices, and was last updated 11 years ago by
Akis Apostoliadis.
-
AuthorPosts
-
May 26, 2015 at 1:08 pm #4830
Akis Apostoliadis
ParticipantHi,
I’ve a problem with Ajax Search Pro.
After the client added a few titles in the db, the search is again slow.Is there a way I can improve the speed (I tried a lot of things).
Sometimes it takes a whooping 7-8 sec to display a result.The site is http://www.booq.gr
and ’cause the site is not officially online, you must input a username and password to check it out (it’s the same as the ftp user/pass combo.I contacted you again for this matter some months ago (early March), if you remember.
May 26, 2015 at 1:28 pm #4831Ernest Marcinko
KeymasterHi!
I do remember. Since then the search underwent an update and some optimizations. I’m releasing another version this weekend, which includes even more speed optimisations including an index table.
I have added some of these optimizations via ftp you gave me. The plugin should be much faster now. I see speeds between 1.5 – 3 seconds on web inspector now.
The slowdown can be caused by image-resizing and caching as well. First time a new item is searched the image thumbnails are created, which takes a bit of time. The second time is fast, because the images are not re-created.
Also, WooCommerce did something to their core within updates 2.3.x, whereas every ajax powered plugin experiences major slowdowns in some cases. I have already contacted them, but no answer yet. Hopefully they aknowledge this issue, as it’s affecting thousands of plugins.
May 26, 2015 at 1:41 pm #4832Akis Apostoliadis
ParticipantHi,
thank you.I’ve checked again the speed and it takes 2.5 to 7 sec (actual speed on page with a digital chronometer).
And that’s on the second time I search.Thank you for the info about WooCommerce.
Kind regards,
AkisMay 26, 2015 at 2:25 pm #4833Ernest Marcinko
KeymasterCould you please try to clear you cache and try again? I’ve changed a javascript file as well, your browser might have cached the old one.
I’ve conducted a few tests, the results with screenshots with ajax response measurements:
1. Phrase “test y”, results 1.90, 1.36, 1.69 seconds: http://i.imgur.com/DZZDOk8.png
2. Phrase “test a”, results 1.56, 1.77, 1.50 seconds: http://i.imgur.com/m6mOvD9.png
3. Hardest test – 6 different standalone characters, 6 build up like queries – Phrase “λ β ο x y a”, results 1.56, 1.69, 1.44 seconds: http://i.imgur.com/pvv4i0b.png
For me each test wen under 2 seconds, on worst case scenario it should be below 4 I would say.
Please do not upgrade the plugin until the upcoming version is out, I’ve added a few performance related lines that are not present in the current version yet.
May 26, 2015 at 2:46 pm #4834Akis Apostoliadis
ParticipantThank you very much.
It was the cache to blame.
Thank you again.
PS: I haven’t upgraded the plugin yet.
-
AuthorPosts
- You must be logged in to reply to this topic.