I have a table with the following field in my DB .
Date/Time , Device ID , Sensor 1 Value , Sensor 2 Value .
This is part of a IOT project where e sensor will send data to the DB every second for data analytics purposes
We initialy set Device ID as an index foreseeing client will use the data from some sensor only.
However, we found that our client mainly requested data based on date (e.g. Data for whole of 2013).
Due to the size of e records , it take days to just run the Select * filtered by datetime query for 1 year of data (Estimated 10 Million Entries).
My question is , does it make sense to index date/time to speed up query since date time field is sorted during insertion?
If so, any suggestion to speed up such a query ?
Thank you.