May 24, 2010 at 11:15 pm
Hi All,
I have an Stored procedure to schedule the users for an test,If i want to schedule 40000 users i will pass their user Ids(an input parameter) in comma separated values like '677,8899,999.......n'
Problem is:
For first 2000 users its taking around 3 mins
and for next 2000 users its taking 8 mins
and its taking more time as it precedes
and i checked whether its of logical reads or scan count
but i found with that statistics for first 2000 users and last 2000 users resulted the same
Can anyone resolve/suggest for this issue
Thanks in Advance
May 25, 2010 at 1:09 am
Post your SP and table definations
May 25, 2010 at 2:50 am
Sorry ,I dont have privilage for doing that.
but i can say there are table variables and temporary tables
May 25, 2010 at 2:58 am
Without seeing the code, it's very, very hard to give any useful advice.
Watch out for the lack of statistics on table variables. you're probably getting bad execution plans as a result.
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
May 25, 2010 at 2:01 pm
If you're using a c.u.r.s.o.r. within your sproc to process the data then this might be a possible cause, too...
May 25, 2010 at 2:11 pm
Is there a reason you can't post the code? I can understand data being a problem, but scheduling code?
Viewing 6 posts - 1 through 5 (of 5 total)
You must be logged in to reply to this topic. Login to reply