Home » Performance » MySQL » How to improve the speed of mysql query using count(*)
How to improve the speed of mysql query using count(*) [message #1134] Mon, 23 April 2007 06:32 Go to previous message
julian  is currently offline julian
Messages: 13
Registered: March 2007
Junior Member
Hi

I'm using this kind of queries in mysql in InnoDB engine



Select count(*) from marking1 where persondate between '2007-04-23 00:00:00.000' and '2007-04-23 23:59:59.999' and PersonName='aaa'




While executing these queries from front end VB, It takes above 5 secs with 50 thousand records.


How can I improve speed for this kind of queries. Is there any alternation for this command.


Any one knows , Explain

thanks

Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic:Block user connections
Next Topic:Lost connection to MySQL server during query
Goto Forum:

  


Current Time: Fri Jul 10 00:48:04 EDT 2009

Total time taken to generate the page: 0.02098 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 2.7.7.
Copyright ©2001-2007 FUD Forum Bulletin Board Software

MySQL is a trademark of Sun Microsystems.
InnoDB is a trademark of Oracle Corp.

Percona Performance Forums are a service of Percona, Inc.
Not affiliated with Sun Microsystems or Oracle Corp.