Click here to Skip to main content
15,888,113 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi,

I have a MSSQL table where Id field is incremental.
Now id value is 985300.

But actual count of records is 64000.Reason is i have deleted the rows in between.

so when i am executing select statement will it reduce any perfomance?.

What I have tried:

i have tested not facing any signifcant diffrence.
wanted to know as data grows is there any Problem
Posted
Updated 17-Mar-16 3:48am
Comments
Tomas Takac 17-Mar-16 3:16am    
On the contrary, less data = better performance. But maybe you want to rebuild your indexes.
Herman<T>.Instance 17-Mar-16 3:49am    
Is the ID the Primary Key Field?
Member 10535790 17-Mar-16 8:15am    
yes i have two table one is master table and other one is Transaction table
both i am joining
Herman<T>.Instance 17-Mar-16 8:32am    
that's not a clear answer to my question. but....
if the ID filed is Primary Key in one table and Foreign Key in other table. Create an index on that foreign key too

1 solution

As Tomas mentioned, no it is not a problem. You should have a regular maintenance sql job plan running and part of that should be rebuilding indexes so there should be no issue.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900