Jump to content

Prestashop 1.5 category products sql performance issue


Recommended Posts

Hi, my company is often using Prestashop for our clients eshops websites and now we really need some help from others developers to deal with this problem.

 

The website now we are building is using prestashop version 1.5.0.17.

Server data: PHP 5.3.6 / MySQL 5.0.67

 

The problem is sql performance issue when you are going to a category page which has now ~1700 products and SQL query which is generated in a Category.php class function getProducts() is performed from 5s and more.

 

First we would want to know the reasons why it is so slow and what actions we could make to make it a lot faster?

Link to comment
Share on other sites

Quite sad that i hadn't recieved any replies, but the reason for mysql executing so long one SQL was a line where selected products where beeing ordered by orderprice or name.

 

So made some small hack and now everything works in category with a lot of products quite fast, but i didn't know if it's a bug and why that SQL was so slow.

Link to comment
Share on other sites

  • 3 weeks later...
×
×
  • Create New...