mirror of
https://github.com/kristoferssolo/Databases-II-Cheatsheet.git
synced 2025-10-21 18:20:35 +00:00
fix seeks
This commit is contained in:
parent
5f19876f7a
commit
226bf240d6
5
main.typ
5
main.typ
@ -90,8 +90,9 @@ for each tuple tr in r: (for each tuple ts in s: test pair (tr, ts))
|
|||||||
```
|
```
|
||||||
|
|
||||||
Block transfer cost: $n_r ∗ b_s + b_r$ block transfers would be required,
|
Block transfer cost: $n_r ∗ b_s + b_r$ block transfers would be required,
|
||||||
where $b_r$ -- blocks in relation $r$, same for $s$. Seek count depends
|
where $b_r$ -- blocks in relation $r$, same for $s$. Each scan of the inner
|
||||||
on how many buffers are available.
|
relation requires one seek, and the scan of the outer relation requires one
|
||||||
|
seek per block, leading to a total of $2 ∗b_r$ seeks.
|
||||||
|
|
||||||
== Block-nested join
|
== Block-nested join
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user