Take the 2-minute tour ×
Database Administrators Stack Exchange is a question and answer site for database professionals who wish to improve their database skills and learn from others in the community. It's 100% free, no registration required.

I have very large table with 17,044,833 Rows and 6.4 GB in size. I am running the simple query below and it takes like 5 seconds. Any ideas what optimizations can I do to improve the speed of this query?

FROM `dfp_stats` WHERE 
`stat_date` >= '2014-02-01' 
`stat_date` <= '2014-02-28'

MySQL Config:

key_buffer              = 16M
max_allowed_packet      = 16M
thread_stack            = 192K
thread_cache_size       = 8
innodb_buffer_pool_size = 10G


Memory: 48GB     
Disk: 480GB
share|improve this question
Please add at least the output of the following commands: "SHOW CREATE TABLE dip_stats" and "EXPLAIN SELECT..." (rest of your query). –  jynus Mar 19 at 20:19

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.