3,086 views
2 2 votes
Consider a relation R with 2000 records and relation S with 500 records. Size of each record is 5 Byte and block size is 100 Byte, then minimum number of block access that are needed block nested loop join.

I think its answer should be 2525.

2 Answers

0 0 votes

watch this video for concept https://www.youtube.com/watch?v=rT4eI3p3tVk

Here, S is outer relation and R is inner relation. For a minimum number of block accesses, outer relation should be smaller.

Number of records in each block =  (Size of Block)/(Size of Record) = 100B/5B = 20

NR = Total Number of records in R = 2000

BR = Number of blocks in R = 2000/20 = 100

NS = 500

BS = 500/20 =25

Number of total block accesses = BS + BS*BR (for Block nested loop join) = 25 + 25*100 = 2525

Position:
Show:

Related questions

1 1 vote
0 0 answers
1.3k
1.3k views
Pawan Kumar 2 asked Jan 2, 2018
1,346 views
Are block transfers and block access same ?
1 1 vote
0 0 answers
725
725 views
raviyogi asked Nov 10, 2017
725 views
please cjheck this
1 1 vote
1 answers 1 answer
2.6k
2.6k views
GateAspirant999 asked Oct 30, 2016
2,630 views
If- relation r has br blocks and nr records,- relation s has bs blocks and ns records,- memory can hold exactly one block of r and one block of s at any point in time,the...
1 1 vote
1 1 answer
689
689 views
Aditya Bahuguna asked Jan 4, 2018
689 views