- Local time
- Tomorrow, 01:27
- Joined
- Jan 20, 2009
- Messages
- 12,895
Has anyone tested the performance of querying from an indexed field holding date-time values compared to date-only values? (Academic perspectives also welcome.)
My current BE has two separate fields for date and time with an index on the date. I am restructuring the database and considering combining these fields. However almost all the queries rely on the date values and I am concerend that combining the date and time might impact performance by affecting the structure of the index.
My table has up to 25,000 records per day. The times are in hh:mm (without seconds) from 8:00 AM to 5:00 PM. So instead of the date index with one value in the index for an entire day there could potentially be up to 540 unique index values per day for the date-time field.
The new table will actually be in MS SQL Server with an Access front end using ODBC linked tables but I assume the question would also be relevant to JET/ACE.
Performance is important. The Access table has up to ten million records but I intend to let it go much further on the server (SQL Server 2005 Standard).
My current BE has two separate fields for date and time with an index on the date. I am restructuring the database and considering combining these fields. However almost all the queries rely on the date values and I am concerend that combining the date and time might impact performance by affecting the structure of the index.
My table has up to 25,000 records per day. The times are in hh:mm (without seconds) from 8:00 AM to 5:00 PM. So instead of the date index with one value in the index for an entire day there could potentially be up to 540 unique index values per day for the date-time field.
The new table will actually be in MS SQL Server with an Access front end using ODBC linked tables but I assume the question would also be relevant to JET/ACE.
Performance is important. The Access table has up to ten million records but I intend to let it go much further on the server (SQL Server 2005 Standard).