New Zenner
- Join Date:
- Apr 2007
- Posts:
- 23
- Plugin Contributions:
- 0
huge DB performance hit after upgrade from 1.26d to 1.3.7
Hi Guys, we just finished an upgrade from 1.26d to 1.3.7 and things are running very slowly, and causing problems because of it. It appears to be an issue with our mySQL database performance.
I now have slow query logging turned on. As a result i can see that using the search facility in the 'admin -> customers -> orders page' can result in a query that takes over 30 seconds to run, as opposed to the exact same query taking 10% of that time on the 1.26d database structure with the exact same date. I have a run a series of the slow executing queries on the old DB table schema and the new, and they are consistently much much slower on the new schema (again with the same data).
The problem is not overly consistent if that is a clue. Sometimes the query runs in less than 10 secs, often a lot more (on the new schema). It is causing enough problems that our office staff are getting page timeouts so much they are being seriously impeded in their efficiency, and getting plenty annoyed too.
For example, the query below takes usually about 7 seconds on the new schema, and is almost immediate on the old schema. And it's in the slow query file as having taken up to 33 secs to.
"select o.orders_id, o.customers_id, o.customers_name, o.payment_method, o.shipping_method, o.date_purchased, o.last_modified, o.currency, o.currency_value, s.orders_status_name, ot.text as order_total, o.customers_company, o.customers_email_address, o.customers_street_address, o.delivery_company, o.delivery_name, o.delivery_street_address, o.billing_company, o.billing_name, o.billing_street_address, o.payment_module_code, o.shipping_module_code, o.ip_address from <your_prefix>_orders o left join <your_prefix>_orders_total ot on (o.orders_id = ot.orders_id), <your_prefix>_orders_status s where o.orders_status = s.orders_status_id and s.language_id = '1' and ot.class = 'ot_total' order by o.orders_id DESC limit 0, 20;"
Does anyone have any idea why this is, and what i can do about it. It is causing us some serious problems.
Best regards.

