Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Need help with slow query


discxpress

Recommended Posts

Hello,

I need advice locating this query. I have searched and I can't narrow it down. I'm not a coder so I nee help making it more efficient.

[11] => select distinct p.products_id, pd.products_name from products p, products_description pd where p.products_status = '1' and p.products_ordered > 0 and p.products_id = pd.products_id and pd.language_id = '1' order by p.products_ordered desc, pd.products_name limit 10

 

Thanks

Link to comment
Share on other sites

that looks like a bestsellers query, it lists the top 10 products ordered for the whole site

 

could be a bestsellers box, or a module on the home page

KEEP CALM AND CARRY ON

I do not use the responsive bootstrap version since i coded my responsive version earlier, but i have bought every 28d of code package to support burts effort and keep this forum alive (albeit more like on life support).

So if you are still here ? What are you waiting for ?!

 

Find the most frequent unique errors to fix:

grep "PHP" php_error_log.txt | sed "s/^.* PHP/PHP/g" |grep "line" |sort | uniq -c | sort -r > counterrors.txt

Link to comment
Share on other sites

@@imop

 

I want my shop to run as efficient as possible. At times, that query alone can take over 10 seconds to load. I have a large shop and the categories queries are already slow enough.

 

@@bruyndoncx

 

I will disable the bestsellers box to check if the page load time improves

 

Thanks to you both for replying

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...