winbiz
asked on
Intelligent Date Time Search in Mysql
Scenario:
We have created an audit table to records certain relevant actions taken by users of our application. The table has a primary key as well as a date/time stamp field to store when an action is taken. The interface that we use to view the audit table allows the user to select a date range. Say All Results between March 28 - 29 , 2007.
Question:
Will Mysql search the entire table to find values with those dates or is it smart enough to look only between the dates selected? Or is there a way to make it look at the entries between the dates selected?
Can someone point me in the right direction to allow me to gain a better understanding of how Msql works in relation to a date/time search.
Thanks
We have created an audit table to records certain relevant actions taken by users of our application. The table has a primary key as well as a date/time stamp field to store when an action is taken. The interface that we use to view the audit table allows the user to select a date range. Say All Results between March 28 - 29 , 2007.
Question:
Will Mysql search the entire table to find values with those dates or is it smart enough to look only between the dates selected? Or is there a way to make it look at the entries between the dates selected?
Can someone point me in the right direction to allow me to gain a better understanding of how Msql works in relation to a date/time search.
Thanks
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
You can check http://mysql.com for documentaion of how date indexes work if you want
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.