edited by
32,003 views
67 67 votes

Consider a join (relation algebra) between relations $r(R)$ and $s(S)$ using the nested loop method. There are $3$ buffers each of size equal to disk block size, out of which one buffer is reserved for intermediate results. Assuming $\text{size}(r(R))<\text{size}(s(S)),$ the join will have fewer number of disk block accesses if

  1. relation $r(R)$ is in the outer loop.
  2. relation $s(S)$ is in the outer loop.
  3. join selection factor between $r(R)$ and $s(S)$ is more than $0.5$.
  4. join selection factor between $r(R)$ and $s(S)$ is less than $0.5$.

7 Answers

–1 –1 vote

(D) join selection factor between $r(R)$ and $s(S)$ is less than 0.5.

it does not matter if 10 x 20 or 20 x 10 answer is still the same. If the jon selection factor is less that means we will fewer record in the result relation

 

Answer:
Position:
Show:

Related questions

123 123 votes
8 8 answers
30.5k
30.5k views
go_editor asked Sep 28, 2014
30,549 views
SQL allows duplicate tuples in relations, and correspondingly defines the multiplicity of tuples in the result of joins. Which one of the following queries always gives t...
88 88 votes
4 answers 4 answers
45.1k
45.1k views
go_editor asked Sep 28, 2014
45,077 views
Consider the following schedule S of transactions $T1, T2, T3, T4:$$${\begin{array}{|l|l|l|l|}\hline\textbf{T1}& \textbf{T2}& \textbf{T3}& \textbf{T4} \\\hline& \...
121 121 votes
9 answers 9 answers
47.7k
47.7k views
go_editor asked Sep 28, 2014
47,667 views
Consider the main memory system that consists of $8$ memory modules attached to the system bus, which is one word wide. When a write request is made, the bus is occupied ...
41 41 votes
6 answers 6 answers
15.1k
15.1k views
go_editor asked Sep 28, 2014
15,103 views
Which one of the following Boolean expressions is NOT a tautology?$((\,a\,\to\,b\,)\,\wedge\,(\,b\,\to\,c))\,\to\,(\,a\,\to\,c)$$(\,a\,\to\,c\,)\,\to\,(\,\sim b\,\to\,(a\...