All Exams Test series for 1 year @ ₹349 only
Question

In the traditional classification of ordered-file indexes as primary, clustering and secondary indexes, a clustering index is defined on a field that is:

The correct answer is

non-key and ordering

In this classification, a primary index uses an ordering key field, whereas a clustering index uses an ordering non-key field. Records with the same non-key value are grouped together, and an index entry locates the corresponding group. Therefore the field is non-key and ordering.

Was this answer helpful?

Important Questions from Indexing - Teaching

  1. Suppose you have a Linux file system where the block size is 2K bytes, a disk address is 32 bits, and an i-node contains the disk addresses of the first 12 direct blocks of file, a single indirect block, and a double indirect block. Approximately, what is the largest file that can be represented by an i-node?  

    Use binary units: 1 Kbyte = 1024 bytes and 1 Mbyte = \(2^{20}\) bytes.

  2. Suppose a B +tree is used for indexing a database file. Consider the following information :

    size of the search key field = 10 bytes, block size = 1024 bytes, size of the record pointer = 9 bytes, size of the block pointer = 8 bytes.

    Let K be the order of internal node and L be the order of leaf node of B +tree, then (K, L) = ______.

  3. The order of a leaf node in a B+ tree is the maximum number of (value, data record pointer) pairs it can hold. Given that the block size is 1K bytes, data record pointer is 7 bytes long, the value field is 9 bytes long and a block pointer is 6 bytes long, what is the order of the leaf node?

Need Expert Advice?

Start Your Preparation with Prepp Mobile App

Download the app from Google Play & App Store
Download the app from Google Play & App Store
Prepp Mobile App