WordPress.org

Forums

Relevanssi - A Better Search
[resolved] Bug which makes relevanssi take a long time (3 posts)

  1. tomdxw
    Member
    Posted 1 year ago #

    Hi,

    We had a bug which made any search request take a long time to process (on the order of 40 seconds instead of less than 1 second). Eventually my co-worker figured out where the problem lay.

    I'm not sure how to reproduce it short of giving you a database dump (which is not possible, sorry), and I'm not sure exactly what the bug was, but here's a patch which solves the issue:

    https://gist.github.com/tomdxw/eb2f42ed5669f917e59d

    Thanks,
    Tom Adams
    dxw

    https://wordpress.org/plugins/relevanssi/

  2. Mikko Saari
    Member
    Plugin Author

    Posted 1 year ago #

    Thanks. In general I suggest you switch from using characters to words in the excerpt size setting. I'm probably dropping off the character setting in the next version anyway – it's much slower than the words setting.

  3. tomdxw
    Member
    Posted 12 months ago #

    I changed the option and reverted the change we made. It's working fine now.

    Thanks.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Relevanssi - A Better Search
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.