Order search still very slow with HPOS
-
We switched to HPOS some weeks ago. Everything seems to work just fine. So far so good. However, the order search is still very slow. With around 250k orders our database is not exceptionally large. A search using the customer email address can easily take almost 30 seconds:
Running the same quere directly in the database takes 0,016 seconds. A PHP-based query is slower, yes. But 30 seconds seems to be way out of range.
-
Hi @cutu234
Thanks for getting in touch! I understand how a slow search can be frustrating, especially when you’re used to much faster results directly in the database.
To start, could we check on a few things? Please make sure your WooCommerce and any search-related plugins are up to date. Also, sometimes other plugins or high server load can slow down search. If everything’s updated, and you still face delays, please send over your system status report. You can find it by going to WooCommerce → Status, selecting Get system report, and then Copy for Support.
I’ve just switched to a Twenty theme and disabled all plugins but Woocommerce on our staging server. It still takes around 20 seconds to get the result of an email search. See the status report, please.
This is not really a minor issue. We need this search quite often for our customer support.
### WordPress Environment ### WordPress address (URL): https://xxx.de Site address (URL): https://xxx.de WC Version: 9.5.1 Legacy REST API Package Version: Auf dieser Website ist das alte REST-API-Plugin nicht installiert. Action Scheduler Version: ? 3.8.2 Log Directory Writable: ? WP Version: 6.7.1 WP Multisite: – WP Memory Limit: 768 MB WP Debug Mode: – WP Cron: ? Language: de_DE_formal External object cache: – ### Server Environment ### Server Info: Apache PHP Version: 8.3.14-nmm1 PHP Post Max Size: 768 MB PHP Time Limit: 300 PHP Max Input Vars: 10000 cURL Version: 7.68.0 OpenSSL/1.1.1f SUHOSIN Installed: – MySQL Version: 10.5.27-MariaDB-ubu2004-log Max Upload Size: 768 MB Default Timezone is UTC: ? fsockopen/cURL: ? SoapClient: ? DOMDocument: ? GZip: ? Multibyte String: ? Remote Post: ? Remote Get: ? ### Database ### WC Database Version: 9.5.1 WC Database Prefix: wp_ Datenbank-Gesamtgr??e: 5747.38MB Datenbank-Datengr??e: 2808.15MB Datenbank-Indexgr??e: 2939.23MB wp_woocommerce_sessions: Daten: 0.02MB + Index: 0.02MB + Engine InnoDB wp_woocommerce_api_keys: Daten: 0.02MB + Index: 0.03MB + Engine InnoDB wp_woocommerce_attribute_taxonomies: Daten: 0.02MB + Index: 0.02MB + Engine InnoDB wp_woocommerce_downloadable_product_permissions: Daten: 0.02MB + Index: 0.06MB + Engine InnoDB wp_woocommerce_order_items: Daten: 91.63MB + Index: 37.58MB + Engine InnoDB wp_woocommerce_order_itemmeta: Daten: 848.00MB + Index: 653.98MB + Engine InnoDB wp_woocommerce_tax_rates: Daten: 0.02MB + Index: 0.06MB + Engine InnoDB wp_woocommerce_tax_rate_locations: Daten: 0.02MB + Index: 0.03MB + Engine InnoDB wp_woocommerce_shipping_zones: Daten: 0.02MB + Index: 0.00MB + Engine InnoDB wp_woocommerce_shipping_zone_locations: Daten: 0.02MB + Index: 0.05MB + Engine InnoDB wp_woocommerce_shipping_zone_methods: Daten: 0.02MB + Index: 0.00MB + Engine InnoDB wp_woocommerce_payment_tokens: Daten: 0.02MB + Index: 0.02MB + Engine InnoDB wp_woocommerce_payment_tokenmeta: Daten: 0.02MB + Index: 0.03MB + Engine InnoDB wp_woocommerce_log: Daten: 0.02MB + Index: 0.02MB + Engine InnoDB wp_actionscheduler_actions: Daten: 3.52MB + Index: 3.81MB + Engine InnoDB wp_actionscheduler_claims: Daten: 0.02MB + Index: 0.02MB + Engine InnoDB wp_actionscheduler_groups: Daten: 0.02MB + Index: 0.02MB + Engine InnoDB wp_actionscheduler_logs: Daten: 2.52MB + Index: 3.03MB + Engine InnoDB wp_adtribes_my_conversions: Daten: 0.02MB + Index: 0.02MB + Engine InnoDB wp_aepc_custom_audiences: Daten: 0.02MB + Index: 0.00MB + Engine InnoDB wp_aepc_logs: Daten: 5.52MB + Index: 0.00MB + Engine InnoDB wp_aws_index: Daten: 1.52MB + Index: 1.19MB + Engine InnoDB wp_ayssurvey_answers: Daten: 0.02MB + Index: 0.00MB + Engine InnoDB wp_ayssurvey_popup_surveys: Daten: 0.02MB + Index: 0.00MB + Engine InnoDB wp_ayssurvey_questions: Daten: 0.06MB + Index: 0.00MB + Engine InnoDB wp_ayssurvey_question_categories: Daten: 0.02MB + Index: 0.00MB + Engine InnoDB wp_ayssurvey_sections: Daten: 0.02MB + Index: 0.00MB + Engine InnoDB wp_ayssurvey_settings: Daten: 0.02MB + Index: 0.00MB + Engine InnoDB wp_ayssurvey_submissions: Daten: 3.52MB + Index: 0.00MB + Engine InnoDB wp_ayssurvey_submissions_questions: Daten: 7.52MB + Index: 0.00MB + Engine InnoDB wp_ayssurvey_surveys: Daten: 0.09MB + Index: 0.00MB + Engine InnoDB wp_ayssurvey_survey_categories: Daten: 0.02MB + Index: 0.00MB + Engine InnoDB wp_borlabs_cookie_statistics: Daten: 4.03MB + Index: 4.99MB + Engine MyISAM wp_bounced_email_logs: Daten: 11.52MB + Index: 0.00MB + Engine InnoDB wp_cartflows_ca_cart_abandonment: Daten: 0.02MB + Index: 0.02MB + Engine InnoDB wp_cartflows_ca_email_history: Daten: 0.02MB + Index: 0.03MB + Engine InnoDB wp_cartflows_ca_email_templates: Daten: 0.02MB + Index: 0.00MB + Engine InnoDB wp_cartflows_ca_email_templates_meta: Daten: 0.02MB + Index: 0.02MB + Engine InnoDB wp_cmplz_cookiebanners: Daten: 0.00MB + Index: 0.00MB + Engine MyISAM wp_cmplz_cookies: Daten: 0.02MB + Index: 0.00MB + Engine MyISAM wp_cmplz_dnsmpd: Daten: 0.02MB + Index: 0.00MB + Engine InnoDB wp_cmplz_services: Daten: 0.00MB + Index: 0.00MB + Engine MyISAM wp_cmplz_statistics: Daten: 0.02MB + Index: 0.00MB + Engine InnoDB wp_commentmeta: Daten: 13.52MB + Index: 18.03MB + Engine InnoDB wp_comments: Daten: 165.70MB + Index: 150.47MB + Engine InnoDB wp_cr_local_forms: Daten: 35.59MB + Index: 2.52MB + Engine InnoDB wp_cr_reminders_log: Daten: 3.52MB + Index: 5.58MB + Engine InnoDB wp_cr_wpmail_log: Daten: 0.02MB + Index: 0.03MB + Engine InnoDB wp_dgwt_wcas_index: Daten: 0.11MB + Index: 0.06MB + Engine InnoDB wp_dgwt_wcas_invindex_cache: Daten: 0.02MB + Index: 0.02MB + Engine InnoDB wp_dgwt_wcas_invindex_doclist: Daten: 1.50MB + Index: 0.75MB + Engine InnoDB wp_dgwt_wcas_invindex_wordlist: Daten: 0.34MB + Index: 0.27MB + Engine InnoDB wp_dgwt_wcas_stats: Daten: 0.36MB + Index: 0.00MB + Engine InnoDB wp_dgwt_wcas_tax_index: Daten: 0.02MB + Index: 0.05MB + Engine InnoDB wp_failed_jobs: Daten: 0.02MB + Index: 0.00MB + Engine InnoDB wp_fql_logs: Daten: 0.02MB + Index: 0.08MB + Engine InnoDB wp_iconic_wssv_index: Daten: 0.00MB + Index: 0.00MB + Engine MyISAM wp_itsec_opaque_tokens: Daten: 0.02MB + Index: 0.02MB + Engine InnoDB wp_links: Daten: 0.02MB + Index: 0.02MB + Engine InnoDB wp_mapsvg6_database_475011: Daten: 0.05MB + Index: 0.02MB + Engine InnoDB wp_mapsvg6_database_570: Daten: 0.05MB + Index: 0.02MB + Engine InnoDB wp_mapsvg6_maps: Daten: 0.02MB + Index: 0.00MB + Engine MyISAM wp_mapsvg6_r2o: Daten: 0.01MB + Index: 0.01MB + Engine MyISAM wp_mapsvg6_regions_475011: Daten: 0.02MB + Index: 0.02MB + Engine InnoDB wp_mapsvg6_regions_570: Daten: 0.02MB + Index: 0.02MB + Engine InnoDB wp_mapsvg6_schema: Daten: 0.01MB + Index: 0.00MB + Engine MyISAM wp_mapsvg6_settings: Daten: 0.00MB + Index: 0.00MB + Engine MyISAM wp_mapsvg_database_475011: Daten: 0.05MB + Index: 0.02MB + Engine InnoDB wp_mapsvg_database_570: Daten: 0.02MB + Index: 0.02MB + Engine InnoDB wp_mapsvg_r2d: Daten: 0.00MB + Index: 0.01MB + Engine MyISAM wp_mapsvg_regions_475011: Daten: 0.02MB + Index: 0.02MB + Engine InnoDB wp_mapsvg_regions_570: Daten: 0.02MB + Index: 0.02MB + Engine InnoDB wp_mapsvg_schema: Daten: 0.01MB + Index: 0.00MB + Engine MyISAM wp_mclean_refs: Daten: 0.00MB + Index: 0.00MB + Engine MyISAM wp_mclean_scan: Daten: 0.00MB + Index: 0.00MB + Engine MyISAM wp_mlw_qm_audit_trail: Daten: 0.02MB + Index: 0.00MB + Engine InnoDB wp_mlw_questions: Daten: 0.02MB + Index: 0.00MB + Engine InnoDB wp_mlw_question_terms: Daten: 0.02MB + Index: 0.06MB + Engine InnoDB wp_mlw_quizzes: Daten: 0.02MB + Index: 0.00MB + Engine InnoDB wp_mlw_quiz_theme_settings: Daten: 0.02MB + Index: 0.00MB + Engine InnoDB wp_mlw_results: Daten: 0.02MB + Index: 0.00MB + Engine InnoDB wp_mlw_themes: Daten: 0.02MB + Index: 0.00MB + Engine InnoDB wp_newsletter: Daten: 1.52MB + Index: 0.22MB + Engine InnoDB wp_newsletter_emails: Daten: 0.02MB + Index: 0.00MB + Engine InnoDB wp_newsletter_logs: Daten: 0.02MB + Index: 0.00MB + Engine InnoDB wp_newsletter_sent: Daten: 0.02MB + Index: 0.03MB + Engine InnoDB wp_newsletter_stats: Daten: 0.02MB + Index: 0.03MB + Engine InnoDB wp_newsletter_user_logs: Daten: 1.52MB + Index: 0.00MB + Engine InnoDB wp_newsletter_user_meta: Daten: 0.02MB + Index: 0.02MB + Engine InnoDB wp_options: Daten: 8.23MB + Index: 0.36MB + Engine InnoDB wp_postmeta: Daten: 793.00MB + Index: 922.00MB + Engine InnoDB wp_posts: Daten: 133.61MB + Index: 102.86MB + Engine InnoDB wp_queue: Daten: 0.02MB + Index: 0.00MB + Engine InnoDB wp_redirection_404: Daten: 1.33MB + Index: 0.25MB + Engine MyISAM wp_redirection_groups: Daten: 0.00MB + Index: 0.00MB + Engine MyISAM wp_redirection_items: Daten: 0.17MB + Index: 0.13MB + Engine MyISAM wp_redirection_logs: Daten: 0.31MB + Index: 0.05MB + Engine MyISAM wp_spbc_auth_logs: Daten: 0.02MB + Index: 0.02MB + Engine InnoDB wp_spbc_backuped_files: Daten: 0.02MB + Index: 0.00MB + Engine InnoDB wp_spbc_backups: Daten: 0.02MB + Index: 0.00MB + Engine InnoDB wp_spbc_firewall_data: Daten: 0.02MB + Index: 0.02MB + Engine InnoDB wp_spbc_firewall_logs: Daten: 0.02MB + Index: 0.00MB + Engine InnoDB wp_spbc_scan_frontend: Daten: 0.02MB + Index: 0.00MB + Engine InnoDB wp_spbc_scan_links_logs: Daten: 0.02MB + Index: 0.05MB + Engine InnoDB wp_spbc_scan_results: Daten: 0.02MB + Index: 0.02MB + Engine InnoDB wp_spbc_scan_signatures: Daten: 0.02MB + Index: 0.02MB + Engine InnoDB wp_spbc_traffic_control_logs: Daten: 0.02MB + Index: 0.00MB + Engine InnoDB wp_storeabill_documentmeta: Daten: 0.00MB + Index: 0.00MB + Engine MyISAM wp_storeabill_documents: Daten: 0.00MB + Index: 0.01MB + Engine MyISAM wp_storeabill_document_attachmentmeta: Daten: 0.02MB + Index: 0.03MB + Engine InnoDB wp_storeabill_document_attachments: Daten: 0.02MB + Index: 0.02MB + Engine InnoDB wp_storeabill_document_itemmeta: Daten: 0.00MB + Index: 0.00MB + Engine MyISAM wp_storeabill_document_items: Daten: 0.00MB + Index: 0.00MB + Engine MyISAM wp_storeabill_document_noticemeta: Daten: 0.00MB + Index: 0.00MB + Engine MyISAM wp_storeabill_document_notices: Daten: 0.00MB + Index: 0.00MB + Engine MyISAM wp_storeabill_journals: Daten: 0.00MB + Index: 0.00MB + Engine MyISAM wp_sumo_tbl_user_earned_coupon: Daten: 0.02MB + Index: 0.00MB + Engine InnoDB wp_termmeta: Daten: 0.16MB + Index: 0.06MB + Engine InnoDB wp_terms: Daten: 0.02MB + Index: 0.03MB + Engine InnoDB wp_term_relationships: Daten: 0.38MB + Index: 0.28MB + Engine InnoDB wp_term_taxonomy: Daten: 0.16MB + Index: 0.05MB + Engine InnoDB wp_updraftcentral_sitemeta: Daten: 0.02MB + Index: 0.03MB + Engine InnoDB wp_updraftcentral_sites: Daten: 0.02MB + Index: 0.02MB + Engine InnoDB wp_updraftcentral_site_temporary_keys: Daten: 0.02MB + Index: 0.02MB + Engine InnoDB wp_updraftcentral_user_cron: Daten: 0.02MB + Index: 0.03MB + Engine InnoDB wp_usermeta: Daten: 60.59MB + Index: 71.23MB + Engine InnoDB wp_users: Daten: 4.52MB + Index: 4.55MB + Engine InnoDB wp_usin_events: Daten: 0.00MB + Index: 0.00MB + Engine MyISAM wp_usin_user_data: Daten: 0.31MB + Index: 0.26MB + Engine MyISAM wp_wccs_conditions: Daten: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wccs_condition_meta: Daten: 0.02MB + Index: 0.03MB + Engine InnoDB wp_wc_admin_notes: Daten: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wc_admin_note_actions: Daten: 0.02MB + Index: 0.02MB + Engine InnoDB wp_wc_category_lookup: Daten: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wc_customer_lookup: Daten: 26.56MB + Index: 19.08MB + Engine InnoDB wp_wc_download_log: Daten: 0.02MB + Index: 0.03MB + Engine InnoDB wp_wc_gpf_render_cache: Daten: 0.02MB + Index: 0.02MB + Engine InnoDB wp_wc_orders: Daten: 55.59MB + Index: 59.75MB + Engine InnoDB wp_wc_orders_meta: Daten: 285.86MB + Index: 678.97MB + Engine InnoDB wp_wc_order_addresses: Daten: 50.59MB + Index: 56.17MB + Engine InnoDB wp_wc_order_coupon_lookup: Daten: 3.52MB + Index: 5.03MB + Engine InnoDB wp_wc_order_operational_data: Daten: 37.58MB + Index: 19.06MB + Engine InnoDB wp_wc_order_product_lookup: Daten: 33.56MB + Index: 35.09MB + Engine InnoDB wp_wc_order_stats: Daten: 25.56MB + Index: 19.55MB + Engine InnoDB wp_wc_order_tax_lookup: Daten: 14.55MB + Index: 12.03MB + Engine InnoDB wp_wc_product_attributes_lookup: Daten: 0.00MB + Index: 0.00MB + Engine MyISAM wp_wc_product_download_directories: Daten: 0.00MB + Index: 0.01MB + Engine MyISAM wp_wc_product_meta_lookup: Daten: 0.02MB + Index: 0.11MB + Engine InnoDB wp_wc_rate_limits: Daten: 0.00MB + Index: 0.00MB + Engine MyISAM wp_wc_reserved_stock: Daten: 0.00MB + Index: 0.00MB + Engine MyISAM wp_wc_tax_rate_classes: Daten: 0.02MB + Index: 0.02MB + Engine InnoDB wp_wc_webhooks: Daten: 0.02MB + Index: 0.02MB + Engine InnoDB wp_wdp_orders: Daten: 0.09MB + Index: 0.04MB + Engine MyISAM wp_wdp_order_items: Daten: 0.06MB + Index: 0.06MB + Engine MyISAM wp_wdp_persistent_rules_cache: Daten: 0.00MB + Index: 0.00MB + Engine MyISAM wp_wdp_rules: Daten: 0.01MB + Index: 0.00MB + Engine MyISAM wp_wdr_order_discounts: Daten: 0.00MB + Index: 0.00MB + Engine MyISAM wp_wdr_order_item_discounts: Daten: 0.09MB + Index: 0.09MB + Engine MyISAM wp_wdr_rules: Daten: 0.00MB + Index: 0.00MB + Engine MyISAM wp_wfblockediplog: Daten: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wfblocks7: Daten: 0.02MB + Index: 0.05MB + Engine InnoDB wp_wfconfig: Daten: 0.11MB + Index: 0.00MB + Engine InnoDB wp_wfcrawlers: Daten: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wffilechanges: Daten: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wffilemods: Daten: 0.28MB + Index: 0.00MB + Engine InnoDB wp_wfhits: Daten: 0.02MB + Index: 0.05MB + Engine InnoDB wp_wfhoover: Daten: 0.02MB + Index: 0.02MB + Engine InnoDB wp_wfissues: Daten: 0.02MB + Index: 0.06MB + Engine InnoDB wp_wfknownfilelist: Daten: 0.14MB + Index: 0.00MB + Engine InnoDB wp_wflivetraffichuman: Daten: 0.02MB + Index: 0.02MB + Engine InnoDB wp_wflocs: Daten: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wflogins: Daten: 0.02MB + Index: 0.03MB + Engine InnoDB wp_wfls_2fa_secrets: Daten: 0.02MB + Index: 0.02MB + Engine InnoDB wp_wfls_settings: Daten: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wfnotifications: Daten: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wfpendingissues: Daten: 0.02MB + Index: 0.06MB + Engine InnoDB wp_wfreversecache: Daten: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wfsnipcache: Daten: 0.02MB + Index: 0.05MB + Engine InnoDB wp_wfstatus: Daten: 5.52MB + Index: 3.03MB + Engine InnoDB wp_wftrafficrates: Daten: 0.02MB + Index: 0.00MB + Engine InnoDB wp_woocommerce_amazon_buyer_index: Daten: 0.04MB + Index: 0.05MB + Engine MyISAM wp_woocommerce_gpf_google_taxonomy: Daten: 1.52MB + Index: 0.00MB + Engine InnoDB wp_woocommerce_gzd_dhl_im_products: Daten: 0.00MB + Index: 0.00MB + Engine MyISAM wp_woocommerce_gzd_dhl_im_product_services: Daten: 0.00MB + Index: 0.00MB + Engine MyISAM wp_woocommerce_gzd_dhl_labelmeta: Daten: 0.02MB + Index: 0.03MB + Engine InnoDB wp_woocommerce_gzd_dhl_labels: Daten: 0.02MB + Index: 0.03MB + Engine InnoDB wp_woocommerce_gzd_packaging: Daten: 0.00MB + Index: 0.00MB + Engine MyISAM wp_woocommerce_gzd_packagingmeta: Daten: 0.00MB + Index: 0.00MB + Engine MyISAM wp_woocommerce_gzd_shipmentmeta: Daten: 28.56MB + Index: 14.03MB + Engine InnoDB wp_woocommerce_gzd_shipments: Daten: 6.52MB + Index: 4.55MB + Engine InnoDB wp_woocommerce_gzd_shipment_itemmeta: Daten: 14.55MB + Index: 18.03MB + Engine InnoDB wp_woocommerce_gzd_shipment_items: Daten: 4.52MB + Index: 7.58MB + Engine InnoDB wp_woocommerce_gzd_shipment_labelmeta: Daten: 0.00MB + Index: 0.00MB + Engine MyISAM wp_woocommerce_gzd_shipment_labels: Daten: 0.00MB + Index: 0.00MB + Engine MyISAM wp_woocommerce_gzd_shipping_provider: Daten: 0.02MB + Index: 0.02MB + Engine InnoDB wp_woocommerce_gzd_shipping_providermeta: Daten: 0.06MB + Index: 0.03MB + Engine InnoDB wp_wt_iew_action_history: Daten: 0.02MB + Index: 0.00MB + Engine MyISAM wp_wt_iew_mapping_template: Daten: 0.00MB + Index: 0.00MB + Engine MyISAM wp_yoast_indexable: Daten: 0.25MB + Index: 0.09MB + Engine InnoDB wp_yoast_indexable_hierarchy: Daten: 0.02MB + Index: 0.05MB + Engine InnoDB wp_yoast_migrations: Daten: 0.02MB + Index: 0.02MB + Engine InnoDB wp_yoast_primary_term: Daten: 0.02MB + Index: 0.03MB + Engine InnoDB wp_yoast_prominent_words: Daten: 0.00MB + Index: 0.00MB + Engine MyISAM wp_yoast_seo_links: Daten: 0.20MB + Index: 0.17MB + Engine InnoDB wp_yoast_seo_meta: Daten: 3.52MB + Index: 0.00MB + Engine InnoDB wp_yoppoll_bans: Daten: 0.02MB + Index: 0.00MB + Engine InnoDB wp_yoppoll_elements: Daten: 0.02MB + Index: 0.00MB + Engine InnoDB wp_yoppoll_logs: Daten: 0.02MB + Index: 0.00MB + Engine InnoDB wp_yoppoll_other_answers: Daten: 0.02MB + Index: 0.00MB + Engine InnoDB wp_yoppoll_polls: Daten: 0.02MB + Index: 0.00MB + Engine InnoDB wp_yoppoll_skins: Daten: 0.28MB + Index: 0.00MB + Engine InnoDB wp_yoppoll_subelements: Daten: 0.02MB + Index: 0.00MB + Engine InnoDB wp_yoppoll_templates: Daten: 0.02MB + Index: 0.00MB + Engine InnoDB wp_yoppoll_votes: Daten: 0.02MB + Index: 0.00MB + Engine InnoDB _blacklist: Daten: 0.08MB + Index: 0.06MB + Engine InnoDB ### Post Type Counts ### acf-field: 11 acf-field-group: 3 adt_product_feed: 4 attachment: 2051 ays-survey-maker: 8 blocks: 12 boxzilla-box: 1 br_notice: 2 custom_css: 2 customerstory: 1 customize_changeset: 1 document_template: 11 eos_dyn_content: 1 gp_elements: 9 invoice: 2 jetpack_migration: 2 kundenstory: 79 mailpoet_page: 1 mapsvg: 2 mc4wp-form: 1 ml-slide: 23 ml-slider: 8 nab_experiment: 7 nav_menu_item: 74 oembed_cache: 25 page: 57 post: 2 product: 91 product_variation: 63 qsm_quiz: 1 revision: 39 schema: 4 shop_coupon: 335 shop_order: 211281 shop_order_placehold: 139 shop_order_refund: 3635 wafs: 1 was: 15 wll_records: 1708 wp_navigation: 1 wp-rest-api-log: 2315 wpcf7_contact_form: 3 wpsl_stores: 76 ywrfd-discount: 1 ### Security ### Secure connection (HTTPS): ? Hide errors from visitors: ? ### Active Plugins (1) ### WooCommerce: von Automattic – 9.5.1 ### Inactive Plugins (35) ### Advanced Custom Fields PRO: von WP Engine – 6.3.11 Advanced Editor Tools: von Automattic – 5.9.2 Better Search Replace: von WP Engine – 1.4.7 Complianz | GDPR/CCPA Cookie Consent: von Really Simple Plugins – 7.1.5 Confetti: von WP Sunshine – 1.3.7 Contact Form 7: von Takayuki Miyoshi – 6.0.2 Customer Reviews for WooCommerce: von CusRev – 5.65.0 Discount Rules Core: von Flycart – 2.6.6 Email Log: von Sudar – 2.4.9 FiboSearch - AJAX Search for WooCommerce (Pro): von FiboSearch Team – 1.29.0 Germanized for WooCommerce: von vendidero – 3.18.5 Germanized for WooCommerce Pro: von vendidero – 4.1.5 GP Premium: von Tom Usborne – 2.5.0 Legal Text Connector of the IT-Recht Kanzlei: von IT-Recht Kanzlei – 1.0.10 Min and Max Quantity for WooCommerce: von BeRocket – 1.3.7 Nelio AB Testing: von Nelio Software – 7.3.0 Newsletter: von Stefano Lissa & The Newsletter Team – 8.6.4 Payment Plugins for PayPal WooCommerce: von Payment Plugins [email protected] – 1.0.53 Permalink Manager for WooCommerce: von BeRocket – 1.0.8.2 Product Feed PRO for WooCommerce: von AdTribes.io – 13.4.0 Query Monitor: von John Blackbourn – 3.17.0 Restricted Site Access: von 10up – 7.5.1 Sequential Order Numbers for WooCommerce: von WebToffee – 1.6.7 Side Cart WooCommerce: von XootiX – 2.5.6 Survey Maker: von Survey Maker team – 5.1.2.5 SysBasics WooSwatches – Color or Image Variation Swatches For WooCommerce: von sysbasics – 4.6.4 vendidero Helper: von vendidero – 2.2.5 WooCommerce Advanced Shipping: von Jeroen Sormani – 1.1.4 WooCommerce Amazon Pay: von Amazon Pay – 2.5.3 WooCommerce Cart Abandonment Recovery: von CartFlows Inc – 1.3.1 WooCommerce Price Based on Country: von Oscar Gare – 3.4.12 WooCommerce Show Single Variations by Iconic: von Iconic – 1.23.0 WooCommerce Sponsor a Friend Plugin: von MB Création – 2.3.2 WP Store Locator: von Tijmen Smit – 2.2.241 Yoast SEO: von Team Yoast – 24.1 ### Dropin Plugins () ### advanced-cache.php: advanced-cache.php ### Settings ### Legacy API Enabled: – Force SSL: ? Currency: EUR (€) Currency Position: right_space Thousand Separator: . Decimal Separator: , Number of Decimals: 2 Taxonomies: Product Types: external (external) grouped (grouped) simple (simple) variable (variable) Taxonomies: Product Visibility: exclude-from-catalog (exclude-from-catalog) exclude-from-filtered (exclude-from-filtered) exclude-from-search (exclude-from-search) featured (featured) outofstock (outofstock) rated-1 (rated-1) rated-2 (rated-2) rated-3 (rated-3) rated-4 (rated-4) rated-5 (rated-5) Connected to WooCommerce.com: – Enforce Approved Product Download Directories: – HPOS feature enabled: ? Order datastore: Automattic\WooCommerce\Internal\DataStores\Orders\OrdersTableDataStore HPOS data sync enabled: – ### Logging ### Enabled: ? Handler: Automattic\WooCommerce\Internal\Admin\Logging\LogHandlerFileV2 Retention period: 30 Tage Level threshold: – Log directory size: 32 kB ### WC Pages ### Shop-Basis: #503048 - /alle-ago-produkte/ Warenkorb: #72 - /warenkorb/ - Enth?lt den [woocommerce_cart]-Shortcode Kasse: #12 - /kasse/ - Enth?lt den [woocommerce_checkout]-Shortcode Ihr Konto: #70 - /mein-konto/ Allgemeine Gesch?ftsbedingungen: #688 - /allgemeine_geschaeftsbedingungen/ ### Theme ### Name: Twenty Twenty-Four Version: 1.3 Author URL: https://de.www.remarpro.com Child Theme: ? – Wenn Sie WooCommerce mit einem Theme das Sie nicht selbst entwickelt haben an eigene Bedürfnisse anpassen dann empfehlen wir die Verwendung eines Child-Themes. Siehe Wie Sie ein Child-Theme erstellen (engl.) Theme type: Block-Theme WooCommerce Support: ? Nicht deklariert ### Templates ### Overrides: /www/htdocs/w01aa96c/assets/plugins/woocommerce/templates/block-notices/error.php /www/htdocs/w01aa96c/assets/plugins/woocommerce/templates/block-notices/notice.php /www/htdocs/w01aa96c/assets/plugins/woocommerce/templates/block-notices/success.php ### Admin ### Enabled Features: activity-panels analytics product-block-editor coupons core-profiler customize-store customer-effort-score-tracks import-products-task experimental-fashion-sample-products shipping-smart-defaults shipping-setting-tour homescreen marketing mobile-app-banner onboarding onboarding-tasks pattern-toolkit-full-composability product-custom-fields remote-inbox-notifications remote-free-extensions payment-gateway-suggestions printful shipping-label-banner subscriptions store-alerts transient-notices woo-mobile-welcome wc-pay-promotion wc-pay-welcome-page launch-your-store Disabled Features: product-data-views experimental-blocks coming-soon-newsletter-template minified-js product-pre-publish-modal settings async-product-editor-category-field product-editor-template-system blueprint reactify-classic-payments-settings use-wp-horizon add-to-cart-with-options-stepper-layout Daily Cron: ? Next scheduled: 2024-12-24 10:42:20 +01:00 Options: ? Notes: 6 Onboarding: completed ### Action Scheduler ### Abgeschlossen: 510 Oldest: 2024-11-23 19:49:08 +0100 Newest: 2024-12-24 10:43:54 +0100 Fehlgeschlagen: 854 Oldest: 2022-04-02 14:42:30 +0200 Newest: 2024-10-03 18:49:58 +0200 Ausstehend: 3 Oldest: 2024-12-24 10:44:54 +0100 Newest: 2024-12-30 20:29:18 +0100 ### Status report information ### Generated at: 2024-12-24 10:44:31 +01:00
Hello cutu234,
Thank you for your reply.
Could you tell if this issue is happening on the same site you have mentioned in this thread?
I am referring to your other thread where you are facing HPOS sync issues.If it is the same site, then this slow query issue might be caused by sync issues.
Please let me know. ??
Best regards.
Yes and no. ?? While the original post was referring to the live site, my last post refers to the staging server where I disabled all plugins but Woocommerce and switched to a standard theme. I’ve just re-synced the orders on the staging server and run another order search. It still takes 25 seconds. I assume, Sync issues should not cause any problems.
Did you run some test searches? Maybe, the system is that slow. I wouldn’t know why, since searching for a customer email should be a super efficient database query with HPOS.
Hi @cutu234
Thanks for the added info, and we appreciate your thorough testing on the staging server, that helps rule out plugin conflicts and theme issues. We haven’t encountered widespread reports of search delays with HPOS, so this seems unusual. Looking at your system status report, I noticed your database is quite large. Was that one of the reasons for switching to HPOS?
Just to check are HPOS Settings set up correctly? If you can share the settings here, we’ll take a closer look. Also, in the other thread, we talked about the compatibility mode settings, are they configured the same way on this staging site?
The database is quite large because I have not yet deleted the old post tables for orders. We have around 250k orders in the database. I wouldn’t consider this an excessively large shop. The wp_wc_orders table uses only 115 MB, the wp_wc_orders_meta table is quite large at just over 1 GB. But this is how Woocommerce works.
I’ve just enabled compatibility mode for test purposes. These are my HPOS settings:
Hello cutu234,
Thank you for your reply.
As my colleague mentioned, we have not received other reports like this.
This is a unique issue and I need more information to find out what is causing the slow queries.I noticed you have the Query Monitor plugin installed. Could activate it and show me a screenshot of the Database Queries section? I want to check how many Database queries are generated at the backend.
Here is an example:Looking forward to your response. ??
Yeah, sure. Here are the two very slow queries:
The other 100 qeries are super fast, they don’t matter very much in terms of performance.
These are the queries of the staging server with nothing but Woocommerce enabled and a default Twenty theme. This should be the best performance possible.
-
This reply was modified 3 months ago by
cutu234.
Hi @cutu234,
Thank you for sharing all the details and the screenshot—it’s clear you’ve done a lot to troubleshoot this, and I really appreciate the effort you’ve put in so far!
There is an open GitHub issue for a similar issue, we recommend reporting it on the open GitHub issue here: https://github.com/woocommerce/woocommerce/issues/41317. Sharing your findings there can help the developers better understand and address the situation.
In the mean time, please try using the Filter by registered customer filter? Here’s a screenshot for reference: https://snipboard.io/RSJi2e.jpg. This method should provide a faster search experience.
Let us know if this helps or if you have further questions!
Thank you for posting the GitHub issue. I will share my findings there. But honestly, I’m not very confident that anybody will care. I posted another known and accepted (severe) bug 8 months ago. Nothing has been fixed so far which is pretty frustrating. The registered customer filter is not an option, since we allow purchasing as a guest. Many customers are not registered users.
Hi @cutu234,
Thank you for sharing your thoughts, and I completely understand your frustration. It can be disheartening when issues persist without resolution, especially when you’ve taken the time to report them.
I really appreciate your persistence in tracking the issue and providing your findings on GitHub—it’s a valuable contribution. While I can’t guarantee immediate action from the team, your feedback is important, and I hope it leads to the necessary attention in time.
If there’s anything more I can do to assist in troubleshooting or working around the issue in the meantime, please don’t hesitate to reach out. You’re not alone in this.
-
This reply was modified 3 months ago by
- You must be logged in to reply to this topic.