I have a table with millions of rows where one of the columns is TIMESTAMP and against which I often choose for date ranges. Will it improve the performance of anyone to index this column, or will it not provide any noticeable improvements?
EDIT:
So, I indexed the TIMESTAMP column. Next request
select count(*) from interactions where date(interaction_time) between date('2013-10-10') and date(now())
Takes 3.1 seconds.
The interaction table contains more than 3 million records.
The above query gives the result ~ 976k
Does this seem like a reasonable amount of time to complete this task?
source
share