Hi
I have a performance issue with a stored proc on SQL 2000
I run a dynamic search query across 3 DBs with couple thousands of records in one DB (about 19,000). When I run this query I am getting SQL Server CPU spike to 100% and average of 60/70% and it's for one user only. The box I am running this query is production strength dual CPU hips of memory good hardware etc (I work in a bank) so I don't think there is a problem with hardware.
I reviewed the query and made sure it uses indexes etc and my suspicion is that I am getting high CPU usage just because of high volume of data.
As I said before it is a dynamic query and if I don't select certain criteria I am not crossing over to DB with 19,000 records and I am getting respectable CPU usage of 3-5%
So my question is, is 19,000 records too much for SQL 2000 ? I thought it should handle much more without any performance problems.
I have a performance issue with a stored proc on SQL 2000
I run a dynamic search query across 3 DBs with couple thousands of records in one DB (about 19,000). When I run this query I am getting SQL Server CPU spike to 100% and average of 60/70% and it's for one user only. The box I am running this query is production strength dual CPU hips of memory good hardware etc (I work in a bank) so I don't think there is a problem with hardware.
I reviewed the query and made sure it uses indexes etc and my suspicion is that I am getting high CPU usage just because of high volume of data.
As I said before it is a dynamic query and if I don't select certain criteria I am not crossing over to DB with 19,000 records and I am getting respectable CPU usage of 3-5%
So my question is, is 19,000 records too much for SQL 2000 ? I thought it should handle much more without any performance problems.