{"id":401268,"date":"2024-05-27T08:00:00","date_gmt":"2024-05-27T08:00:00","guid":{"rendered":"https:\/\/www.weixiaoduo.com\/plugins\/fast-woo-order-lookup\/"},"modified":"2025-10-17T20:40:00","modified_gmt":"2025-10-17T20:40:00","slug":"fast-woo-order-lookup","status":"publish","type":"post","link":"https:\/\/www.weixiaoduo.com\/plugins\/fast-woo-order-lookup\/","title":{"rendered":"Fast Woo Order Lookup"},"content":{"rendered":"<p>WooCommerce\u2019s Order and Subscription pages allow store owners to search for orders and subscriptions by customer name, email, and other attributes. By default, it does a general substring search. For example, if you put OllieJones into the search box, it will search with <code>LIKE '%OllieJones%'<\/code> using the leading wildcard <code>%<\/code>. That\u2019s astonishingly slow on sites with many orders.<\/p>\n<p>Upon activation this plugin uses ActionScheduler to run a background process to create a special-purpose index table, a table of trigrams, to speed up that search. Then it uses those trigrams to search for orders.<\/p>\n<p>The downside: the trigram table takes database space and takes time to generate.<\/p>\n<p>The orders page itself contains a slow query to look up meta_keys. This fixes that query\u2019s performance too, using a cache of available values.<\/p>\n<h4>If you have problems<\/h4>\n<p>The WordPress and WooCommerce ecosystems offer many optional features enabled by plugins. And, WooCommerce sites run on many different versions of database server. It is not possible to test this plugin on every imaginable combination. So, you may have problems getting it to work.<\/p>\n<p>Sometimes the process of creating the index table does not complete correctly. And, sometimes you cannot find some orders after the index is created.<\/p>\n<p>If you tell the author about these problems, he will attempt to fix them. Please create a support topic, then visit Site Health, view the Info tab, click the Copy Site Info to Clipboard button, and paste that information into the support topic. And, of course, please describe what is going wrong.<\/p>\n<h4>Credits<\/h4>\n<p>Thanks to Leho Kraav for bringing this problem to my attention.<\/p>\n<p>Thanks to Sebastian Sommer and Maxime Michaud for using early versions of the plugin on large stores, and to Maxime Michaud for creating the transation into French.<\/p>\n<p>Thanks to Jetbrains for the use of their software development tools, especially <a href=\"https:\/\/www.jetbrains.com\/phpstorm\/\" rel=\"nofollow ugc\">PhpStorm<\/a>. It\u2019s hard to imagine how a plugin like this one could be developed without PhpStorm\u2019s tools for exploring epic code bases like WordPress\u2019s.<\/p>\n<h4>How can I learn more about making my WordPress site more efficient?<\/h4>\n<p>We offer several plugins to help with your site\u2019s database efficiency. You can <a href=\"https:\/\/www.plumislandmedia.net\/wordpress\/performance\/optimizing-wordpress-database-servers\/\" rel=\"nofollow ugc\">read about them here<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Searches for orders faster on WooCommerce stores with many orders.<\/p>\n","protected":false},"author":65,"featured_media":401269,"comment_status":"open","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"slim_seo":{"title":"Fast Woo Order Lookup - \u8587\u6653\u6735\u63d2\u4ef6\u76ee\u5f55","description":"Searches for orders faster on WooCommerce stores with many orders."},"footnotes":""},"categories":[1],"tags":[36,7122,64,273,42],"class_list":["post-401268","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-uncategorized","tag-database","tag-orders","tag-performance","tag-search","tag-woocommerce"],"_links":{"self":[{"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/posts\/401268","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/users\/65"}],"replies":[{"embeddable":true,"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/comments?post=401268"}],"version-history":[{"count":0,"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/posts\/401268\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/media\/401269"}],"wp:attachment":[{"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/media?parent=401268"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/categories?post=401268"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/tags?post=401268"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}