Re: utility of an index

At 12:43 AM 8/30/2011, mysql-plain-digest-help [at] lists.mysql.com wrote:
>Not useful to add an index for that. I also wonder why the value is null
>(meaning: unknown, not certain) for almost all records.

It depends on if you want the forest or the trees. A frequently executed
query asks for just the robots. An index is an efficient way to select
6 of 20,000. As for why the rest are null, null is just a a random
everything else value, left over from before the "is_robot" column was
added.

Is there a better way to mark a small number of "special" records in a
big data set?


--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe: http://lists.mysql.com/mysql?unsub=gcdmg-mysql-2 [at] m.gmane.org
Dave Dyer [ Di, 30 August 2011 21:57 ] [ ID #2063772 ]
Datenbanken » gmane.comp.db.mysql.general » Re: utility of an index

Vorheriges Thema: Re: utility of an index
Nächstes Thema: Exceptions not caught in UDF written in C++ in MySQL 5.5