
After a fair bit of digging around and shouting at the screen, I realised something. This page calls getProducts() in the product model. The first query (line 335) unnecessarily selects the description column from the _product_descriptions table.
For stores with small product counts or products with short descriptions this is not an issue, but in my case the customer has descriptions that exceed 10kb per product some times. To fix this I wrote the following solution:
On line 335 (OC version 1.5.6.1)
Code: Select all
$sql = "SELECT * FROM " . DB_PREFIX . "product p LEFT JOIN " ...
Code: Select all
$sql = "SELECT p.*, pd.name FROM " . DB_PREFIX . "product p LEFT JOIN " ...
Thanks, and happy coding!
Steve