发明名称 Selection of rows and values from indexes with updates
摘要 Methods and apparatus, including computer program products, for selection of rows and values from indexes with updates. In general, rows of an index may be associated with validity flags that indicate whether a row has been updated with an update inserted in a delta index; one scheme for value identifiers may be used for an index and another scheme for one or more delta indexes where all of the indexes are, to at least some extent, compressed according to dictionary-based compression; and multiple delta indexes may be used in alternation such that one delta index may accept updates while another is being updated. The delta indexes may also have validity flags and all updates, such as modifications of values, deletion of records, and inserting of new records may be handled as updates accepted by one or more delta indexes.
申请公布号 US9122738(B2) 申请公布日期 2015.09.01
申请号 US201313862288 申请日期 2013.04.12
申请人 SAP SE 发明人 Renkes Frank;Peh Thomas;Ross Andrew;Schwedes Holger;Stephan Wolfgang
分类号 G06F17/30 主分类号 G06F17/30
代理机构 Mintz Levin Cohn Ferris Glovsky and Popeo, P.C. 代理人 Mintz Levin Cohn Ferris Glovsky and Popeo, P.C.
主权项 1. A computer program product comprising a non-transient computer-readable storage medium tangibly storing instructions that, when executed by a data processing apparatus that comprises a programmable processor, cause the data processing apparatus to perform operations comprising: determining, in response to a request for a change to a record in a database, that a copy of the record exists in one or more of a main index, a first delta index, and a second delta index of the database; invalidating the copy of the record; generating a delta dictionary record reflecting the requested change the generating occurring in the first delta index when the first delta index is not being merged with the main index and in the second delta index when the first delta index is being merged with the main index; determining, in response to a request for a search, in one or more of the main index, the first delta index, and the second delta index of a database, if the record from the main index, the first delta index, or the second delta index, is valid; generating, based on the first record being valid, an association of a first value identifier of the first record and a value identifier for a value in the main index; translating the first value identifier into a first corresponding value identifier of the main index; generating, based on the second record being valid, an association of a second value identifier of the second record and the value identifier for the value in the main index; translating the second value identifier into a second corresponding value identifier of the main index; adding, to a result set and based on the determining in response to the request for the search, the record from the main index, the first delta index, or the second delta index; determining additional rows in the main index, the first delta index, or the second delta index that need to be searched; incrementing a row identifier based on the determination that the additional rows need to be searched; and returning the result set in response to the request for the search.
地址 Walldorf DE