MySQL Forums
Forum List  »  German

Re: Performance bei SELECT
Posted by: Mark Knochen
Date: January 25, 2012 04:30AM

Hallo Thomas,

ja, den Index habe ich so gesetzt ...

das Explain bezieht sich auf:

EXPLAIN SELECT items.Brand, 
       SUM(
            (SELECT SUM(its.PhysicalStock)
              FROM items_stock AS its
             WHERE its.ItemNrInt = items.ItemNrInt
           )
       ) AS stockValue
FROM items
LEFT JOIN ( SELECT ItemNrInt,MAX(OrderQty),MAX(FullPrice),MAX(OrderDate),MAX(ItemPriceNoVAT),MAX(Status)
              FROM invoicelines
             GROUP BY ItemNrInt
             ORDER BY NULL ) invoicelines
ON (invoicelines.ItemNrInt = items.ItemNrInt)
WHERE items.attr_gender = '8'
GROUP BY items.Brand;


Und natürlich sind 140sek auch deutlich schneller als 190 :) - noch nicht so ganz aber, was ich mir erhofft hatte :)





Grüße

Mark

Options: ReplyQuote


Subject
Views
Written By
Posted
2611
January 19, 2012 07:17AM
1457
January 19, 2012 12:59PM
1526
January 20, 2012 05:33AM
1741
January 20, 2012 06:10AM
1469
January 20, 2012 07:06AM
1481
January 20, 2012 12:11PM
1443
January 25, 2012 04:11AM
1309
January 25, 2012 04:24AM
Re: Performance bei SELECT
1361
January 25, 2012 04:30AM
1290
January 25, 2012 04:49AM
1124
January 25, 2012 06:05AM
1412
January 25, 2012 06:37AM
1389
January 25, 2012 07:46AM
1472
January 26, 2012 12:57AM
1368
January 25, 2012 11:11PM
1242
January 25, 2012 11:50PM
1149
January 27, 2012 08:27AM
1542
January 27, 2012 06:21AM
1382
February 02, 2012 10:06PM
1094
February 03, 2012 05:34AM
1347
February 03, 2012 02:04PM
1277
February 08, 2012 09:52PM
1322
February 09, 2012 08:41AM
1233
February 10, 2012 02:03AM
1483
February 10, 2012 02:52AM
1378
February 10, 2012 04:51AM
1345
February 09, 2012 11:58PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.