• Index Files and B+ Tree Refinements(听课笔记)


    General characteristics of an index : An Outline

    Issue to consider in any index structure(not just B+-trees)

    • Query support : what class of queries does the index allow?
    • Choice of Search Key(Affects the queries for which we can use an index)
    • Data Entry Storage(Affects performance of the index)
    • Variable -length key tricks (Affects performance of the index)
    • Cost Model for Index vs Heap vs Stored File

    Query support

     

    Part 3 Composite Search Keys in One Dimension

    Search Key and Ordering

     

     

     

     

     

     

     

     

     Data Entry Storage Intro

    • What is the representation of data in the index?(Actual data or pointer to the data)
    • How is the data stored in the data file?(Clustered or unclustered with respect to the index)
    • Big Impact on Performance

     Three basic alternatives for data entries in any index

    • Three basic alternatives for data entries in any index
    1. Alternative 1: By Value
    2. Alternative 2: By Reference
    3. Alternative 3: By List of references

    Alternative 1 Index (B+ Tree)

    Record content are stored in the index file

    No need to follow pointers

    Alternative 2 Index

    Alternative 2: By Reference ,

    We used in slides above.

    Alternative  3 Index

    Alternative 3: By List of references ,

    Alternative 3 more compact than alternative 2

    For very large rid lists ,single data entry spans multiples blocks.

    Indexing By Reference

    Both Alternative 2 and Alternative 3 index data by reference

    By-reference is required to support multiple indexes per table

    Otherwise we would be replicating entire tuples

    Replicating data leads to complexity when we're doing updates ,so it's something we want to avoid.

     Part 5 Clustered vs Unclustered Indexes

     

     

     

     

     Part6 Variable Length Keys : Occupancy and Compression

     

     

     

     

     

     

     

     

     

     

    Lec8 Part1 Intro to Buffer Management

     

     

     

     

     

     

     

     

     

  • 相关阅读:
    th:include的使用
    C++ Qt开发:QTcpSocket网络通信组件
    java计算机毕业设计的健身房管理系统源码+mysql数据库+系统+lw文档+部署
    vue3 搭配ElementPlus做基础表单校验 自定义表单校验
    MySQL 索引详解
    基于SSM的高校运动会管理网站-计算机毕业设计源码
    贪心算法(Greedy Algorithms)
    C语言疑难进阶手册(1)
    java数据结构
    Nacos使用JavaSDK,Nacos 动态监听配置,Nacos动态发布配置,Nacos动态获取实例
  • 原文地址:https://blog.csdn.net/u011868279/article/details/127451691