Not sure if this should be placed here or in the 'General Database Discussion'. So let's start here.
I've been pulled in to analyze our production database and help look for potential problems. I've been able to come up with some very interesting findings (much different from the analysis side of the fence), but now I’m faced with a little problem. As I'm looking at queries running against large tables (1 mil rows and above) I see allot of table and index scans. I'm making notes to present to management, when one of the developers come and say “if I was you I would put to much time in to those scans”. He stated that 99% of these queries run in under 2 sec or less; which they do. I do know that when I send this report to management this might mean extra work for the development team, so I can see were his concern is coming from. I've always been trained to believe that if a scan is being performed on a large table regardless of execution time, this is a bad thing in terms of performance. So my question is, should I report the queries running quickly or only focus on the queries taking a longer time to execute.
Thanks
Well Done is better than well said
- Ben Franklin
I've been pulled in to analyze our production database and help look for potential problems. I've been able to come up with some very interesting findings (much different from the analysis side of the fence), but now I’m faced with a little problem. As I'm looking at queries running against large tables (1 mil rows and above) I see allot of table and index scans. I'm making notes to present to management, when one of the developers come and say “if I was you I would put to much time in to those scans”. He stated that 99% of these queries run in under 2 sec or less; which they do. I do know that when I send this report to management this might mean extra work for the development team, so I can see were his concern is coming from. I've always been trained to believe that if a scan is being performed on a large table regardless of execution time, this is a bad thing in terms of performance. So my question is, should I report the queries running quickly or only focus on the queries taking a longer time to execute.
Thanks
Well Done is better than well said
- Ben Franklin