in Databases
680 views
0 votes
0 votes

The database can be configured to do ordered indexing on Ap or hashing on Ap. Which of the following statements is TRUE?
(A) Ordered indexing will always outperform hashing for both queries
(B) Hashing will always outperform ordered indexing for both queries
(C) Hashing will outperform ordered indexing on Q1, but not on Q2
(D) Hashing will outperform ordered indexing on Q2, but not on Q1.
 

in Databases
680 views

1 Answer

1 vote
1 vote
$A_p = C$ -Hashing would mean constant time to get the tuple from the index.

$C_1 \leq A_p \leq C_2$- We need to scan a range of values in index to determined the matching tuples.

So, C should be the answer.
by

1 comment

Sir can u plz explain why hashing can't be performed in option D ?
1
1

Related questions

2 votes
2 votes
1 answer
2