Sql server query takes 1 second when run in query analyzer with single user. I started stress tool written by Adam Machanic with same query and run that for 200 users and in parrallel I ran the same query in query analyzer it takes more than when 20 second.
How to find which join or where clause is creating problem in a stress test situation. What is taking so long?
Thanks,
Ron
It’s likely going to be locking and blocking. A starting point is reading this article on the MSDN that gives a sproc you can run (and the output of which is very verbose). Indexes may be one way to sort it out, but without any more information (schema, query, volumes of data, etc) it’s unlikely we can provide more.