Fast Woo Order Lookup
WooCommerce’s Bestel en Abonnering pagina’s staan winkeleigenaren toe om te zoeken naar bestellingen en abonnementen op klantnaam, e-mail en andere attributen. Standaard doet het een algemene substring zoekopdracht. Bijvoorbeeld, als je OllieJones in het zoekvak zet, zal het zoeken met LIKE '%OllieJones%' met behulp van de leidende wildcard %. Dat is verbazingwekkend traag op sites met veel bestellingen.
Na activering gebruikt deze plugin Action scheduler om een achtergrondproces uit te voeren om een speciale index tabel te maken, een tabel van trigrammen, om die zoekopdracht te versnellen. Vervolgens gebruikt het die trigrammen om naar bestellingen te zoeken.
Het nadeel: de trigram tabel neemt database ruimte in beslag en kost tijd om te genereren.
The orders page itself contains a slow query to look up meta_keys. This fixes that query’s performance too, using a cache of available values.
If you have problems
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.
Sometimes the process of creating the index table does not complete correctly. And, sometimes you cannot find some orders after the index is created.
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.
Credits
Thanks to Leho Kraav for bringing this problem to my attention.
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.
Bedankt aan Jetbrains voor het gebruik van hun software ontwikkelingsgereedschap, vooral PhpStorm. Het is moeilijk voor te stellen hoe een plugin zoals deze ontwikkeld zou kunnen worden zonder PhpStorm’s gereedschap om epische codebases zoals die van WordPress te verkennen.
How can I learn more about making my WordPress site more efficient?
We offer several plugins to help with your site’s database efficiency. You can read about them here.
