On Mon, 1 Aug 2005, Jay Blanchard wrote:

CREATE TABLE bvolset (
   id int(11) NOT NULL auto_increment,
   bdate datetime default NULL,
   level int(11) NOT NULL default '0',
   PRIMARY KEY  (id),
   UNIQUE KEY bdate (bdate),
   KEY level (level)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
[/snip]

Proper indexing will solve your problem. Index bdate and level, that
should speed things up considerably.


do you mean as above:

PRIMARY KEY  (id),
UNIQUE KEY bdate (bdate),
KEY level (level)

or

index (bdate,level) ?



--
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
-                                                               -
- Jason Pyeron                      PD Inc. http://www.pdinc.us -
- Partner & Sr. Manager             7 West 24th Street #100     -
- +1 (443) 921-0381                 Baltimore, Maryland 21218   -
-                                                               -
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

This message is for the designated recipient only and may contain privileged, proprietary, or otherwise private information. If you have received it in error, purge the message from your system and notify the sender immediately. Any other use of the email by you is prohibited.

--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:    http://lists.mysql.com/[EMAIL PROTECTED]

Reply via email to