scribu / wp-posts-to-posts

Efficient many-to-many connections between posts, pages, custom post types, users.
http://wordpress.org/plugins/posts-to-posts/
969 stars 260 forks source link

Limit search frequency. #570

Closed ohryan closed 2 years ago

ohryan commented 4 years ago

When the wp-admin side widget fires a search query on a site with a large amount of posts it tends to be slow and cpu intensive. In this commit we introduce a search minimum search query length of 3. This resolves an issue where short queries (especially single character) essentially match the entire database. By introducing the query min length with delay the first db query until the user is more likely to have entered a full word.

We also increase the search handler timeout, to decrease the frequency with which the plugin will hit the db.

caraya commented 4 years ago

The maintainer is not supporting the project anymore, best bet would be to fork and apply your changes to your fork.

From the README:

I, scribu, will not be offering support (either free or paid) for this plugin anymore.

Furthermore, I will not be doing any development work whatsoever.

If you want to fix a bug in the plugin or add new features, feel free to fork it on github. I will not be accepting any pull requests though, since ensuring that a code change doesn't break things takes effort, effort which I'm no longer willing to expend.