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

  • Wordpress Download Manager Files Not Indexed

    Bugs and Fixes
    5
    1 Votes
    5 Posts
    120 Views
    M

    If you're not seeing this issue, my guess is that your external files are stored under the same domain as your WP instance. Our download files are accessed from a different domain. Our site is fcm.org, and the download files are served from a bitwarden.com domain.

  • Link URL showing up in search results.

    Bugs and Fixes
    6
    0 Votes
    6 Posts
    139 Views
    EpsilonAdminE

    Hi @jgregory_ca

    Okay, the fix for Avada addon should be ready in a couple of days. Just FYI.

    Thanks!

  • Slow down for bulk operations

    Bugs and Fixes
    1
    0 Votes
    1 Posts
    476 Views
    No one has replied
  • Sorting of Search Results

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

    We have over 1,000 pdf documents on our website, and the most important is our Journal, with 238 editions at present. As an example, a couple of issues of our Journal are here, but they are all similar in structure:
    https://rchs.org.uk/wp-content/uploads/2020/02/Journal-100-Nov-1975.pdf
    https://rchs.org.uk/wp-content/uploads/2020/02/Journal-001-Jan-1955.pdf
    You will see that at the bottom of the second page of Journal 100 is a table of contents for the issue and, if the pdf is saved and then opened in Acrobat Reader, there is an equivalent set of bookmarks. It would help if a search term appearing in the article title (as listed in the table of contents) was given a higher weighting than one in the text of the document, but quite often the term will only occur in the text, and not in the title at all.
    Ideally, we would like the weighting to be based upon articles, but weightings based upon the the whole Journal is acceptable. This is because the articles tend to be on unrelated topics within a Journal, so there is probably little difference between the number of instances of a specific search term within an article, and within its parent document.
    I think it would help me if you could explain, in non-technical terms, how the four weightings operate with WPFTS. I've looked at the TFIDF article on Wikipedia, and understand the basics, but the majority of the article is too technical for me. Perhaps this information could also be added to the WPFTS documentation?
    As a related issue, could WPFTS open the document listed in the search results at the first article page where the search term is found? I realise it might go to the article title instead, and if so that wouldn't really help much.

  • Trying to setup on a utf8mb4 site

    Bugs and Fixes
    5
    0 Votes
    5 Posts
    905 Views
    R

    Hi,

    Just installed, it's re-indexed everything fine and is working great now.

    Many thanks for the fast turn around.

    Rupert

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