发明名称 Enforcing temporal uniqueness of index keys utilizing key-valued locking in the presence of pseudo-deleted keys
摘要 Techniques are described for identifying conflicts between a prospective temporal key and an index of temporal keys, the index sorted based on a time value associated with each of the temporal keys. Embodiments determine whether a first temporal key within the index of temporal keys conflicts with the prospective temporal key. Here, the keys within the index may be sorted based upon a respective time value associated with each of the keys. Upon determining that the first temporal key conflicts with the prospective temporal key, the prospective temporal key is designated as conflicting with at least one existing temporal key in the index of temporal keys.
申请公布号 US8898111(B2) 申请公布日期 2014.11.25
申请号 US201313792625 申请日期 2013.03.11
申请人 International Business Machines Corporation 发明人 Lyle Robert W.;Wang Ping
分类号 G06F17/30 主分类号 G06F17/30
代理机构 Patterson & Sheridan, LLP 代理人 Patterson & Sheridan, LLP
主权项 1. A method for identifying conflicts between an index of temporal keys and a prospective temporal key to be inserted into the index, wherein the temporal keys in the index are sorted based at least in part on a time value associated with each of the temporal keys, comprising: determining whether a first range of time specified by a first temporal key within the index of temporal keys overlaps with a prospective range of time specified by the prospective temporal key; and determining whether the prospective temporal key conflicts with any temporal keys in the index of temporal keys, wherein the prospective temporal key conflicts with the first temporal key if the first range of time overlaps with the prospective range of time and the first temporal key is not a pseudo-deleted key, and further comprising: scanning the index of temporal keys to identify a next temporal key that potentially conflicts with the prospective temporal key; anddetermining whether the prospective temporal key conflicts with the next key, based on whether the prospective range of time conflicts with a next range of time specified by the next temporal key and whether the next temporal key is a pseudo-deleted key,wherein the scanning and determining are repeated until (i) a first temporal key with a different principal key value from the prospective temporal key is found, (ii) a non-overlapping temporal key that is not pseudo-deleted is found, or (iii) no potentially conflicting keys remain in the index.
地址 Armonk NY US