↧
Answer by user140142 for MySQL query taking too long
Normalize your database. The fact that one order is "self sustaining" and hence has a very simple insertion (you just let the web application copy data from the previous orders) has a negative effect...
View ArticleAnswer by Rick James for MySQL query taking too long
To do the filtering sooner, change the subquery to( SELECT email, COUNT(*) AS email_ct FROM oc_order GROUP BY email HAVING COUNT(*) > 3 ) AS xxxThen remove xxx.`Orders Count` >3 as being...
View ArticleMySQL query taking too long
SELECT DATE_FORMAT( o.date_added, '%m/%d/%Y' ) AS 'Date', o.order_id as 'Order Number', CONCAT_WS( "", `firstname` , `lastname` ) AS `Name`, o.email as 'Email', o.total as 'Amount', ot.value as...
View Article