Updating bitmapped indexes
    32.
    发明授权
    Updating bitmapped indexes 失效
    更新位图索引

    公开(公告)号:US5884307A

    公开(公告)日:1999-03-16

    申请号:US808585

    申请日:1997-02-28

    IPC分类号: G06F17/30

    摘要: A method and apparatus for updating a segmented bitmapped index to reflect a change made to data upon which the segmented index is based. Change records specifying changes to bitmap segments contained in the segmented bitmapped index are sorted by key value (bitmap segment) and row ID (bit) before being applied to the segmented bitmapped index. When the change records are being applied to the bitmap segment contained in the segmented bitmapped index, the index entry containing the bitmap segment to be updated is locked. If a new bitmap segment must be generated, the index entry covering a row in the data having a row ID less than the row ID of the change is first locked. Then a new index entry is generated, stored in the segmented bitmapped index, and the locked index entry unlocked. If the segmented bitmapped index does not contain an index entry covering a row in the data having a row ID less than the row ID of the change, then a dummy index entry is generated, stored in the segmented bitmapped index, and locked. A new index entry is then generated and stored in the segmented bitmapped index, after which the dummy index entry is unlocked and deleted.

    摘要翻译: 一种用于更新分段位图索引以反映对分段索引所依据的数据所做的改变的方法和装置。 包含在分段位图索引中的位图段的更改的更改记录在应用于分段位图索引之前按键值(位图段)和行ID(位)进行排序。 当更改记录被应用于包含在分段位图索引中的位图片段时,包含要更新的位图片段的索引条目被锁定。 如果必须生成新的位图段,则首先锁定具有小于更改行ID的行ID的数据中包含行的索引条目。 然后生成新的索引条目,存储在分段位图索引中,并锁定索引条目。 如果分段位图索引不包含覆盖具有小于该变化的行ID的行ID的数据中的行的索引条目,则生成虚拟索引条目,存储在分段位图索引中并被锁定。 然后生成新的索引条目并将其存储在分段位图索引中,之后解锁和删除虚拟索引条目。

    Group by and distinct sort elimination using cost-based optimization
    33.
    发明授权
    Group by and distinct sort elimination using cost-based optimization 失效
    使用基于成本优化的分组排序和排序

    公开(公告)号:US5822748A

    公开(公告)日:1998-10-13

    申请号:US808097

    申请日:1997-02-28

    IPC分类号: G06F17/30

    摘要: Sort plus operations such as "group by" and "distinct" generally require sorting of the retrieved data before performing the sort plus operation. A method and apparatus is disclosed for executing a query specifying a sort plus operation without performing the sorting operation. A cost-based optimizer determines at least one execution path where the data is retrieved from a sorted source and the data is processed to satisfy the query without sorting. Execution costs are determined for the respective execution paths, and the execution path having the lowest overall execution cost is selected to process the query.

    摘要翻译: 分组加操作,例如“分组”和“不同”通常需要在执行排序加运算之前对检索的数据进行排序。 公开了一种用于在不执行排序操作的情况下执行指定排序加操作的查询的方法和装置。 基于成本的优化器确定至少一个执行路径,其中从排序的源检索数据,并且处理数据以满足查询而不进行排序。 对于各个执行路径确定执行成本,并且选择具有最低总执行成本的执行路径来处理该查询。