Search Speed

This topic contains 5 replies, has 2 voices, and was last updated by

 
Keymaster
1 year, 3 months ago.

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #29841

    Participant

    I have installed the plugin and have all the settings the way I want them. However, the one thing I can’t seem to achieve is for a search to show results within only typing a few letters. The results I get from the demos on your website appear almost instantly.

    Over overall database is actually pretty small: Stats (reloads periodically) | Items Indexed: 64 | Items not indexed: 0 | Total keywords: 372

    Yet, it seems the searches take longer than I would expect, especially compared to your sites. How do I achieve this with my site?

    #29848

    Hi,

    The overall response time highly depends on the server performance, but there are a few things in the configuration to maximize the performance. In your case the database size is not the issue, it is more likely the large number of active plugins. I reset the performance tracker, it reports an execution time of around 0.06 seconds, the rest of the excution time is taken by loading the wordpress core, plugins etc..

    Because you provided access, I logged in changed a few options to maximize performance:
    – I noticed that the index table engine was not in use, so I enabled it: https://i.imgur.com/hGkhGsL.png
    – I also enabled the custom ajax handler: https://documentation.ajaxsearchpro.com/performance-tuning/fine-tuning-the-search-configuration#2-1-enabling-the-custom-ajax-handler
    This has the greatest effect on performance in your case – as it tries to bypass as many plugins as possible from loading up while doing the requests for better response time.
    – I turned off the autocomplete keyword suggestions: https://documentation.ajaxsearchpro.com/performance-tuning/fine-tuning-the-search-configuration#1-2-disable-autocomplete-or-use-only-google-as-autocomplete-source
    This runs a parralel process along with the search request, and since you are using the “Post titles” as the source, it runs on the local database, that may delay the search suggestions.
    – The cache is also enabled now: https://i.imgur.com/G68ZumU.png
    This should do a posititve impact on repetitive search phrases.

    Now I am looking at response times around 1.2 – 1.6 seconds, which is around 40% better as the previous 1.8 – 2.2 seconds I measured.

    On our demo site we are using an unmanaged hosting package (15$/month VPS from digital ocean), we are using around 16 active plugins and running PHP 7.4. Unmanaged hosts are usually much faster, however need some linux command line knowledge to set up properly.

    Best,
    Ernest Marcinko

    If you like my products, don't forget to rate them on codecanyon :)


    #29851

    Participant

    Yes, I can see a noticeable improvement for sure. Thank you so much for the help with this! One question…I was using the other database because the way I had it set up, it would show, for example, any product associated with the word “creatine” in the results. But, with the indexing engine, it does not. How would I set it up now so that the products that are based on creatine show and not just the ones with creatine in the title? I used the product title because I was not sure how to do it the way I described above.

    #29864

    Sure! I checked both configurations, the only difference I saw was the search in taxonomy terms. On the index table options I choose all the product related taxonomies and re-indexed: https://i.imgur.com/VacHHEl.png
    I believe it should give you the results based on the ingredients as well now.

    Best,
    Ernest Marcinko

    If you like my products, don't forget to rate them on codecanyon :)


    #29872

    Participant

    Wow, the difference this has made is very noticeable. I can’t thank you enough. Outstanding service and support, my friend!

    #29881
    You cannot access this content. Best,
    Ernest Marcinko

    If you like my products, don't forget to rate them on codecanyon :)


Viewing 6 posts - 1 through 6 (of 6 total)

You must be logged in to reply to this topic.