vb.net - Delay in reading from specific database -


i have application written in vb.net reads data sql server 2008 r2. @ time of login, user select 1 of many database files (available in dropdown list) , keys in username , password login. while logging in, application reads table in selected database called 'strings' , while loop put values in 25-30 variables creating working environment of application.

i have put in time tracking @ beginning , end of while loop , shows 1 of database, takes 26 seconds read values , takes 0 seconds (since not tracking @ mili-seconds level).

ironically, 'strings' table in database takes 26 seconds has 125 rows , database takes 0 seconds has 159 rows. apparently, code same, , database structure true replica (both databases generated using same script).

i have thought of possibilities not sure why there's such huge difference delays login time of user.

can please put light on how can figure out?

thanks

without specific information rather difficult find going on. return hundred records should not take more several tens of milliseconds, simple code has no performance impact. seems second server has serious performance problem.

  • try run query sql server management studio against both servers, check cpu load , free memory on slow server.
  • try check network performance (ping or measure file download time).
  • try run query directly on server.

Comments

Popular posts from this blog

SPSS keyboard combination alters encoding -

Add new record to the table by click on the button in Microsoft Access -

javascript - jQuery .height() return 0 when visible but non-0 when hidden -