Welcome Guest, Not a member yet? Register   Sign In
Slow DB queries with MS-SQL
#2

Indexes. Somewhere in your query whatever you are trying to search on is not indexed so to find the data it has to read all 17,000 rows. If you set an index on the value you are looking up, it should read much faster.

Side note, even 2 seconds is really slow so there might be another issue too, hard to know for sure without looking at the server.
Reply


Messages In This Thread
Slow DB queries with MS-SQL - by shedger - 01-31-2017, 10:29 PM
RE: Slow DB queries with MS-SQL - by burgoyn1 - 02-01-2017, 03:09 AM
RE: Slow DB queries with MS-SQL - by shedger - 02-02-2017, 02:45 PM
RE: Slow DB queries with MS-SQL - by spjonez - 02-08-2017, 07:44 AM



Theme © iAndrew 2016 - Forum software by © MyBB