WPIntell

Source evidence

Slow query

Whols – Wholesale Prices and B2B Store Solution for WooCommerce · support · 2022-10-12T10:14:00+00:00

mixedsentiment
mediumseverity
0.84relevance
6replies
Evidence linked to opportunitycommercial context

Proof Health

Open evidence

Commercial opportunities need traceable source links before they are treated as build-worthy.

3 / 22 rows with source links

13.6% of this page's analysis has direct source links.

0 build-decision rows missing links

0 rows here require auditable proof before promotion.

19 rows with no attached evidence

0 rows have source counts but still need direct links.

Conversation

support
Christos Chatzaras resolved
Hello, This query takes 3.2535 sec: https://dpaste.com/C2CR33ZNB If you replace wp_posts.post_date with wp_posts.id then it takes 0.0386 sec: https://dpaste.com/CA5Z8XPU5 Result is the same. Can you please make this change to the next version? Thank you. Hello @cybercr33p Thanks for contacting us and taking your valuable time to investigate the issue. We have taken it into consideration and will hopefully implement it in the next update. Best Regards, Support Team Hi @cybercr33p We have checked that, the slow queries are not happening from us also the queries are not same as like you provided above. There might be other plugins are modifying your query. We have tried to reproduced the issue but unfortunately we are not abled to do that. Would you please tell us from where did you get the SQL query? Have you used the “Query Monitor” plugin to check the slow SQL queries. If you would provide us a little more information with a instruction to reproduce the issue would be very beneficial to solve the issue. If you have any questions, please let us know. Thanks! I found the query using mysqladmin processlist status while visiting the page. As it took ~3 seconds for the page to load, I was able to see the query. And I identified your plugin because the query containts _whols_mark_this_product_as_wholesale_only Hi @cybercr33p Thanks for your reply. We have checked that the ORDER_BY is not post_date from our side. Please check this https://dpaste.com/EW75YLMYP While we were checking the Woocommerce & Whols plugins were only activated other plugins were disabled. The default ORDER_BY value is the menu_order which is displaying correctly from our side. There might be 3rd party plugins OR your custom coding may affected your query. We will recommend you to check after deactivating other plugin except “Woocommerce & Whols” and also use a Default theme. Anyway, if you don’t want to do the above. You can use the snippet below to change the order by “ID” manually. add_filter( 'woocommerce_default_catalog_orderby', 'hasthemes_change_orderby', 9999 ); function hasthemes_change_orderby( $sort_by ) { return 'id'; } If you have any questions, please let us know. Thanks! Thank you. It solve the issue. Glad to know that!

Comments

6 shown
HT Plugins 2022-10-13T03:52:00+00:00

Hello @cybercr33p Thanks for contacting us and taking your valuable time to investigate the issue. We have taken it into consideration and will hopefully implement it in the next update. Best Regards, Support Team

Alberuni Azad. 2022-10-18T06:41:00+00:00

Hi @cybercr33p We have checked that, the slow queries are not happening from us also the queries are not same as like you provided above. There might be other plugins are modifying your query. We have tried to reproduced the issue but unfortunately we are not abled to do that. Would you please tell us from where did you get the SQL query? Have you used the “Query Monitor” plugin to check the slow SQL queries. If you would provide us a little more information with a instruction to reproduce the issue would be very beneficial to solve the issue. If you have any questions, please let us know. Thanks!

Christos Chatzaras 2022-10-18T08:51:00+00:00

I found the query using mysqladmin processlist status while visiting the page. As it took ~3 seconds for the page to load, I was able to see the query. And I identified your plugin because the query containts _whols_mark_this_product_as_wholesale_only

HasThemes 2022-10-19T07:01:00+00:00

Hi @cybercr33p Thanks for your reply. We have checked that the ORDER_BY is not post_date from our side. Please check this https://dpaste.com/EW75YLMYP While we were checking the Woocommerce & Whols plugins were only activated other plugins were disabled. The default ORDER_BY value is the menu_order which is displaying correctly from our side. There might be 3rd party plugins OR your custom coding may affected your query. We will recommend you to check after deactivating other plugin except “Woocommerce & Whols” and also use a Default theme. Anyway, if you don’t want to do the above. You can use the snippet below to change the order by “ID” manually. add_filter( 'woocommerce_default_catalog_orderby', 'hasthemes_change_orderby', 9999 ); function hasthemes_change_orderby( $sort_by ) { return 'id'; } If you have any questions, please let us know. Thanks!

Christos Chatzaras 2022-10-19T07:58:00+00:00

Thank you. It solve the issue.

HasThemes 2022-10-19T08:06:00+00:00

Glad to know that!