1/26
Looks like no tags are added yet.
Name | Mastery | Learn | Test | Matching | Spaced |
---|
No study sessions yet.
Create index on Orders table with key CustomerID and fill factor 75
create nonclustered index Orders_Customers_link on Orders(CustomerID) with (fillfactor=75) go
r
number of records
R
record size/length (for a table record)
RÂi
index record size/length
bx
number of blocks needed to store index records
where x = the level of the index (1 = first, 2 = second, etc.)
P
block pointer size
PR
record pointer size
b
number of blocks needed to store table records
ex
number of index entries for an index level,
where x = the level of the index (1 = first, 2 = second, etc.)
bfr
blocking factor
bfri
index blocking factor
May see bfris and bfrid – These help differentiate between sparse and dense bfrs
V
size of the ordering key field
t
number of levels needed on multi-level index
tb
total number of blocks needed to support multi-level index
bfr =
floor(B/R)
b =
ceil(r/bfr)
Ri = (primary, sparse)
V + P
Ri = (secondary, dense)
V + PR
bfri =
floor(B/Ri)
ex =
bx-1
e1 = (sparse)
b
e1 = (dense)
r
b1 = (sparse)
ceil(e1/brfis)
b1 = (dense)
ceil(e1/brfid)
bx =
ceil(ex/bfris) (for x > 1)