——理解适当使用每个索引对性能的影响

    Bitmap 索引 vs. B-tree 索引:如何选择以及何时使用?——1-5

    Bitmap 索引 vs. B-tree 索引:如何选择以及何时使用?——2-5

    Bitmap 索引 vs. B-tree 索引:如何选择以及何时使用?——3-5

    Bitmap 索引 vs. B-tree 索引:如何选择以及何时使用?——4-5

    Bitmap 索引 vs. B-tree 索引:如何选择以及何时使用?——5-5

     

    本文内容

      • 比较索引
      • 步骤 3A(TEST_NORMAL 表 EMPNO 列创建 Bitmap 索引,执行范围查询)
      • 步骤 3B(TEST_NORMAL 表 EMPNO 列创建 B-tree 索引,执行范围查询)
      • 步骤 4A(TEST_RANDOM 表 EMPNO 列创建 Bitmap 索引,执行范围查询)
      • 步骤 4B(TEST_RANDOM 表 EMPNO 列创建 B-tree 索引,执行范围查询)

      步骤 3A(在 TEST_NORMAL)


      该步骤创建 Bitmap 索引(同步骤 1A)。我们已经知道索引大小(28MB)及其聚类系数(等于表的行数)。现在执行一些范围谓词谓词查询。

      index normal_empno_idx;
       
      索引已删除。
       
      SQL> create Bitmap index normal_empno_bmx on test_normal(empno);
       
      索引已创建。
       
      SQL> analyze table test_normal compute statistics for table for all indexes for
      all columns;
       
      表已分析。
       
      SQL>

      相关文章:

      • 2021-06-04
      • 2021-06-08
      • 2021-09-02
      • 2021-09-19
      • 2021-12-25
      • 2021-10-30
      • 2021-12-23
      • 2021-11-24
      猜你喜欢
      • 2021-12-06
      • 2021-09-03
      • 2022-02-24
      • 2021-08-31
      • 2022-02-07
      • 2021-06-04
      相关资源
      相似解决方案