Jump to content

Find extreme long query on ps 1.7.6.X SELECT COUNT ( DISTINCTROW `id_product` ) FROM


Matteo

Recommended Posts

Hi, i'm tring to find where this parts of a query is used in the prestashop core, with no luck. This is the most resource consuming query our database run every day, there is someone that can help me undestood where this query is called and why?

 

i've only a truncated parts of the query in my sql log:

 

SELECT

  COUNT ( DISTINCTROW `id_product` )

FROM

  `ps_specific_price`

WHERE

  `id_product` != ?

LIMIT

  ?

 

image.png.b4d3c4653c73386425ec9d2dbffaa455.png

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...