discxpress Posted July 25, 2013 Posted July 25, 2013 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
Guest Posted July 25, 2013 Posted July 25, 2013 Hi, What exactly you want to do with it? What is the problem with it? What are you trying to get in the result?
♥bruyndoncx Posted July 25, 2013 Posted July 25, 2013 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
discxpress Posted July 25, 2013 Author Posted July 25, 2013 @@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
Recommended Posts
Archived
This topic is now archived and is closed to further replies.