Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 SQL Server Development (2000)
 Speed Up App

Author  Topic 

kaus
Posting Yak Master

179 Posts

Posted - 2001-08-08 : 18:20:58
I have an app that hits SQL 2000 from ASP page -- Its a 3 table join with 2 where clause paramters. Table 1 has approx 500,000 recs, T2 approx 10,000, T3 approx 2,0000. Joins and where clause params are all indexed. The where clause params are an in () clause of numeric field -- can be from 1 to 500 in the list and a date between clause -- between 1900 and present. The result can take anywhere from almost instantaneous to maybe 35 seconds -- Id like to improve the performance.

I've tried
1) indexes on where clause and joins
2) using Select Top -- then the user can choose to download all the results if they want

I'm wondering if
a) stored procedure would help -- It would have to be dynamic SQL so I dont know how much more performance I'd get

b) create temp table of the codes in the in () clause

c) I cant really reduce the number of codes selected

Would appreciate any thoughts -- When I made this thing I knew just enough to get it working -- would be nice to have it faster -- It doesnt experience a high volume of use by any means

Thanks

   

- Advertisement -