Cost of JOIN with indices

81 views Asked by At

Given the following:

blocksize = 4K
relation students(S#, Sname, Age,....)
relation taken(S#, C#, Grade)
Number of student records = 10,000
Number of taken records = 50,000
Size of student records = 200 bytes
Size of taken records = 50 bytes

If there's a B-Tree index on taken's S#, and "students JOIN taken" is done using that index, how much would it cost to perform the JOIN?

Assuming each B-Tree node contains up to 4K data (= blocksize).

0

There are 0 answers