UGC NET Paper 2 (Computer Science)Very hard

Relations R (1000 blocks) and S (500 blocks) are joined with block nested-loop join, R as the outer relation, using 12 buffer blocks in total (10 for buffering R, 1 for S, 1 for output). The number of block transfers is approximately:

  1. A. 51,000
  2. B. 500,000
  3. C. 1,500
  4. D. 11,000

Correct answer: A. 51,000

R is read in ceil(1000/10) = 100 chunks; for each chunk all of S (500 blocks) is scanned, giving 100 x 500 = 50,000, plus the 1000 blocks to read R once, totalling 51,000.

More UGC NET Computer Science and Applications questions

Exams that ask this topic