Quantcast
Channel: Transact-SQL forum
Viewing all articles
Browse latest Browse all 23857

Can balance tree go un balance in following condition. ( b-tree of primarykey)

$
0
0

Hi,


Please tel me how b-tree of clustered index will look like if i have

1,2,3,4 then there is gap 6,7,8,9 then gain there is gap 40 ,41,42,then it goes continuasly to 300.

Q1) I want to ask the question more specificaly, it is balance tree so , will it keep the balance or it will become unbalanced

initially after root.

Q2) Or having gaps in primarykey can slow the performance of search (not for the insertion or deletion becuase
they will take their time , with that i would like to say,  we are inserting id from pool so table will get greater Ids)?


Q3) is there any way to see the b-tree of the PK or get an idea of its structure?
yours sincerely




Viewing all articles
Browse latest Browse all 23857

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>