SQL_CALC_FOUND_ROWS
-
Upon reviewing the database with a query monitor, we found that there are
slow queries coming from the woocommerce-ajax-filters plugin. The plugin
is attempting to calculate dynamic pricing rules for every single item in
the WordPress loop.Additionally, the query running from the woocommerce-ajax-filters plugin
starts with a SELECT SQL_CALC_FOUND_ROWS statement. This forces
pagination when running the query, as it must find and count every single
matching product before serving the first 40 results. Combined with heavy
JOIN queries, this is heavily impacting the performance of the website.
You can see a screenshot of all the rules the database queries are
running at the following link:The page I need help with: [log in to see the link]
You must be logged in to reply to this topic.