Re: Best practices for using MySQL index

From: Date: Thu, 01 May 2008 07:03:32 +0000
Subject: Re: Best practices for using MySQL index
References: 1 2 3 4 5  Groups: php.general 
Request: Send a blank email to php-general+get-273755@lists.php.net to get a copy of this message
>> Point above about spread still applies, but if you >> can join index to index, the join goes a lot faster. (A primary key in >> MySQL >> is always indexed.) >> > How much is the *a lot*? Thanks. :) If it's a unique (including primary) key then orders of magnitude for millions of rows. If it's a non-unique key, it depends on how many distinct values there are. -- Postgresql & php tutorials http://www.designmagick.com/

« previous php.general (#273755) next »