什么是“Using Covering Indexes”

 Using Covering Indexes
As mentioned earlier, when you insert or update a record, any data in a column that is included in
an index is stored not only in the table, but also in the indexes for nonclustered indexes. From finding
an entry in an index, SSE then moves to the table to locate and retrieve the record. However, if
the necessary information is held within the index, there is no need to go to the table and retrieve
the record, providing much speedier data access.
For example, consider the ShareDetails.Shares table in the ApressFinancial database. Suppose
that you wanted to find out the description, current price, and ticker ID of a share. If an index
was placed on the ShareId column, knowing that this is an identifier column and therefore unique,
you would ask SSE to find a record using the ID supplied. It would then take the details from the
index of where the data is located and move to that data area. If, however, there was an index with
all of the columns defined, SSE will be able to retrieve the description ticker and price details in the
index action. It will not be necessary to move to the data area. This is called a covered index, since
the index covers every column in the table for data retrieval.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值