From: Dan Nelson Date: September 7 2006 5:18am Subject: Re: problem with InnoDB List-Archive: http://lists.mysql.com/mysql/201699 Message-Id: <20060907051840.GA67738@dan.emsphone.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii In the last episode (Sep 07), prasad.ramisetti@stripped said: > Hi Dan, > > Thanks for yur response. Does it makes sense to create an index on a > primary key ..as that is my smallest field ? It might, because in an InnoDB table, your primary index also holds your row data. So it's actually your largest index. A full scan of a secondary index on your primary key may very well run faster than a scan of the primary index itself, for the purposes of "SELECT COUNT(*)". Best way to find out is to try it :) -- Dan Nelson dnelson@stripped