Get WPFTS Pro today with 25% discount!

Very slow search query on large wordpress site

Bugs and Fixes

  • I have the last version of plugin (v1.26.67).
    The table wpftsi_index have 650K rows
    The table wpftsi_vectors have 34M (millions) rows
    I use mysql8 on a server with 12 core and 64GB of memory.
    When the user make a search with more then 2 or 3 terms the db server hang.
    There's a way to simplify the JOIN query and avoid the LEFT JOIN for each search term?

    Something like:
    where (w1.word like "matisse%" OR w1.word like "picasso%")

    Now the plugin make a LEFT JOIN for each search term:
    LEFT JOIN ( select .... where (w1.word like "matisse%") group by ds1.id order by NULL ) t1 on t1.id = tbase.id
    LEFT JOIN ( select ... where (w1.word like "picasso%") group by ds1.id order by NULL ) t2 on t2.id = tbase.id
    where ....

    Thanks.
    Giovanni.


  • Hello, it looks like your MySQL is a bit not optimized. With this huge amount of RAM you can sufficiently increase the InnoDB cache size, index size and sort order buffer size which will make search faster.

    Unfortunately, there is no magic and for big amount of data and posts, we have to have powerful servers and optimized MySQL config.

    I would recommend you to read this article: link text You may Google for more good posts.

    Let me know if this helps. Thanks!


  • Hi, Giovanni

    Recently we published a new version of the WPFTS plugin which uses a completely new search algorithm (v 1.30.85). It was built with large database support in mind. Did you try that? Please tell me if you have better speed results with it or not.

    It still has some room for improvement (via temporary tables, for example) which will be added in the nearest versions of the plugin.


  • I have this issue too. It takes a very long time for a new search to return results. What can I do to improve this? It didn't happen in the past, only recently


  • @jwktje Which version of WPFTS you are using?


  • @EpsilonAdmin 2.36.125


  • @jwktje Please check if you have "Deep Search" flag set ON at the WPFTS Settings / Search & Output page. If so, try to check it OFF.

    Also, there may be some limitations with your hoster (for example they limited CPU resources for you in case your website is too heavy for shared hosting etc).

    We have an experimental WPFTS version which makes faster search - we could try this too.


  • @EpsilonAdmin For me this fixed it! Thank you very much. Was this deep search recently added in an update by any chance? For me it would have been a smoother upgrade if this was only "on by default" on new installations, not on updated ones. You could hook into the plugin activation hook. Because now it's obvious this is by design and there is a good reason for my slow search results. But if I didn't know any better I would think my site was broken.


  • @jwktje Actually this flag is disabled by default. We know about the disasters it can make. Should be you or someone else who has an access to admin switched it ON occasionally.

    Thank you.


  • @EpsilonAdmin That's very possible that someone else (or even I) turned that on in the past not knowing the consequences. Still weird that it only recently introduced the huge slowdown. Whatever the case, I'm very happy that it's now back to acceptable performance. Once again, thanks for your help


  • @EpsilonAdmin
    Hi,
    I'm trying the same problems and read "We have an experimental WPFTS version which makes faster search - we could try this too."
    I would like to be able to try this version because I am experiencing a great loss of performance but WPFTS is very important for my searches.
    Thank you!


  • @mazcabral I have sent a link to your registration email. Could you install this new version and tell me if it fixes the problem for you.


  • @EpsilonAdmin
    Great! but I still haven't received the email with the link. If possible, please send me back so that I can install and do the tests. Thank you so much!

Suggested Topics

  • No valid search resulds, whats wrong?

    Bugs and Fixes
    10
    1 Votes
    10 Posts
    178 Views
    EpsilonAdminE

    Hi @stark

    Unfortunately, WPFTS does not work with PODS custom fields "from the box", so custom code exists somewhere. I think your developer used another way to add data to the search index.

    We need to ask him or alternatively, I could check your code myself, it should not be too long. In this case please send me admin access to your resource using a private message.

    Thanks.

  • No search results after update

    Bugs and Fixes
    3
    0 Votes
    3 Posts
    86 Views
    EpsilonAdminE

    @ibloom
    Thank you, this is actually the thing which I would like to recommend you to do.

  • There are no results in the search

    Bugs and Fixes
    6
    0 Votes
    6 Posts
    160 Views
    EpsilonAdminE

    This bug (definitely a bug!) was fixed in version 1.68.232
    We made "ident" field in the new wpftsi_irules table shorter (limited from 255 to 130) to avoid VARCHAR index length overflow.

    Thanks, @lostconcerts !

  • Search Logic not Working

    Bugs and Fixes
    2
    0 Votes
    2 Posts
    348 Views
    EpsilonAdminE

    Hi @cantuaria

    Please tell me which version of the plugin do you use? Could you tell me if you have activated Deeper Search option and do you use an Index Optimizer (latest option on the Main Page).

    Thanks!

  • Wordpress has technical problem message

    Bugs and Fixes
    5
    0 Votes
    5 Posts
    1k Views
    A

    Hi @epsilonadmin ,

    The new version has worked right.
    Thank you!

Be the first to read the news!

We are always improving our products, adding new functions and fixes. Subscribe now to be the first to get the updates and stay informed about our sales! We are not spammy. Seriously.

Join Us Now!

We are a professional IT-team. Many of us have been working in a Web IT field for more than 10 years. Our advanced experience of software development has been employed in the creation of the WordPress FullText Search plugin. All solutions implemented into the plugin have been used for 5 or more years in over 60 different web-projects.

We are looking forward to your comments, requests and suggestions in relation to the current plugin and future updates.

ewm-logo-450

The forum powered by NodeBB | Contributors