Re: Queries slow down daily, optimizing helps -> why?
Posted by:
Rick James
Date: February 27, 2009 07:56PM
More details may be in the slowlog.
Your earlier attempts probably said 24K "Rows examined". This was a full scan of one table, plus probing the other table for every row in the first one.
With the new index, "Rows examined" is probably about 13K -- full scan of one table, filtering out most of the rows, then probing the other table only for the remaining rows.
I would not make a general rule on which table should be "on top" in Explain. There are a zillion things that Explain might say; I enjoy explaining one EXPLAIN at a time. You may find a dozen such postings in this forum, plus Newbie and Optimizer forums.
Subject
Views
Written By
Posted
4794
February 18, 2009 04:54AM
2417
February 18, 2009 09:04AM
2519
February 18, 2009 11:57AM
2488
February 19, 2009 01:00AM
2444
February 19, 2009 01:52AM
2463
February 19, 2009 03:32AM
1882
February 19, 2009 05:08AM
2337
February 19, 2009 12:24PM
2418
February 19, 2009 10:53PM
2534
February 20, 2009 08:34AM
2323
March 18, 2009 03:58AM
2436
February 21, 2009 06:15AM
2390
February 24, 2009 10:02AM
2644
February 26, 2009 02:30AM
2214
February 26, 2009 09:56AM
2415
February 26, 2009 08:14PM
2420
February 27, 2009 01:38AM
Re: Queries slow down daily, optimizing helps -> why?
2306
February 27, 2009 07:56PM
2320
February 28, 2009 06:20AM
2691
February 28, 2009 03:43PM
2444
February 27, 2009 04:21AM