Hi all.
My application is having timeout problem due to the length of time to execute a DB2 Select statement. It is going against a table, averaging about 18 million records with 22 columns. This sql statement has one WHERE condition, a date field which is NOT part of any index. I have asked our DBA if building an index based on this date field would improve the performance and he said no because of its DATE data type. My questions are :
1) Is an index on a DATE column NOT as efficient as an index based on a CHAR or NUMERIC field ?
2) Can you recommend another solution ?
Thank you so much.
My application is having timeout problem due to the length of time to execute a DB2 Select statement. It is going against a table, averaging about 18 million records with 22 columns. This sql statement has one WHERE condition, a date field which is NOT part of any index. I have asked our DBA if building an index based on this date field would improve the performance and he said no because of its DATE data type. My questions are :
1) Is an index on a DATE column NOT as efficient as an index based on a CHAR or NUMERIC field ?
2) Can you recommend another solution ?
Thank you so much.