QQ登录

只需一步,快速开始

Briefly explain the three main alternatives for storing information in a data...

[复制链接]
admin 发表于 2022-4-7 17:02:56 [显示全部楼层] 回帖奖励 倒序浏览 阅读模式 0 983
a. Briefly explain the three main alternatives for storing information in a data entry of an index. b. Define clustered index, and discuss the relation between the three alternatives and clustered/unclustered indexes.


Ans a.
The three main alternatives for storing information in a data entry of an index are:
  • The first alternative can be a data entry k* which is an actual data record with search key value k.
  • The second alternative is a data record that is a {k,rid} pair where rid is actually the record id of a data record with search key value k.
  • The third alternative is a data record that is a {k,rid-list} pair where rid-list  is actually list of record ids of a data records with search key value k.
Ans b. Clustered Index: "A clustered index is a type of index where the table records are re-ordered physically to match the index. So, the tables data can only be sorted in one way. Therefore,there can only be one clustered index in one particular table."
If the index contains data records as "data entries" that means the index is using alternative one. Alternative one is generally clustered while the alternative 2 and 3 are generally unclustered.

回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

官方微博
官方微博
模板大全
模板大全
意见
反馈