This link has been bookmarked by 20 people . It was first bookmarked on 03 Sep 2006, by Navneet Kumar.
-
15 Jan 12
-
05 Jul 11
-
15 May 09
-
09 May 09
-
25 Jul 08
-
25 Apr 08
-
07 Apr 08
Navneet Kumarindex optimizations in innodb
Covering indexes-
The InnoDB storage engine creates a clustered index for every table.
-
Once a query navigates to the leaf node of a secondary index, it knows two things: the values it used to navigate the index, and the primary key values of that row in the table.
-
covering index
-
f the
Extracolumn includes the text “Using index,” the optimization is being used. -
put the columns in the
WHEREclause first in the index, then add the columns named in theSELECTclause at the end, unless they are included in the primary key. -
If you only select the columns you need, your query might be able to use one of the optimizations
-
you select every column and the query uses a secondary index, there’s no way to do that, and the query will have to wander around indexes finding the rows it needs, then do other operations to get the actual values from the rows.
-
InnoDB secondary indexes already contain all columns from the primary key
-
-
04 Apr 07
Matti NarkiaI’ve written a lot recently about MySQL index and table structure, primary keys, surrogate keys, and related optimizations. In this article I’ll explain how MySQL’s index structures enable an extremely important query optimization, and how that diff
Howto how-to exploit MySQL index optimizations optimization query database indexes guide tutorial imported delicious
-
15 Mar 07
-
05 Mar 07
-
06 Jul 06
Would you like to comment?
Join Diigo for a free account, or sign in if you are already a member.