From: Johan De Meersman Date: March 31 2011 4:06pm Subject: Re: A common request List-Archive: http://lists.mysql.com/mysql/224735 Message-Id: <7c9640d2-c1a7-4fe7-be3a-5dc213f51e2f@zimbra> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit ----- Original Message ----- > From: "Gregory Magarshak" > I am guessing that the MySQL indexes map indexed fields (fb_uid) to the > primary key (id) so I wouldn't have to touch the disk. Am I right > about that? Correct for InnoDB, but MyISAM maps every index straight onto records. That's why secondary indices are slightly more performant on MyISAM tables - InnoDB needs to do the extra primary key lookup - which it of course is bloody good at :-) -- Bier met grenadyn Is als mosterd by den wyn Sy die't drinkt, is eene kwezel Hy die't drinkt, is ras een ezel