发明名称 Mechanism for updates in a database engine
摘要 A method for database processing includes allocating primary, secondary and tertiary data structures for each column. Columnar content is written into the primary data structure. Updated values are written into the tertiary data structure. Storage keys indicate correspondence to the primary data structure. Query responses involve first reading updated values from the tertiary data structure, sorting by storage keys, storing into the secondary data structure, and clearing the tertiary data structure. Then the primary and secondary data structures are consulted to respond to the query, reading the value for each row from the secondary data structure where present, otherwise from the primary data structure. A commit phase produces a new version of the primary data structure by merging the secondary data structure and an old version of the primary data structure, consulting them in a similar manner.
申请公布号 US9171023(B2) 申请公布日期 2015.10.27
申请号 US201214346723 申请日期 2012.09.21
申请人 RETAIL LOGISTICS EXCELLENCE—RELEX OY 发明人 Nikula Marko
分类号 G06F17/30 主分类号 G06F17/30
代理机构 Birch, Stewart, Kolasch & Birch, LLP 代理人 Birch, Stewart, Kolasch & Birch, LLP
主权项 1. A method for operating an electronic database, the method comprising:performing following acts by a server computer for each of one or more columns in each of one or more tables:in a database set-up phase: allocating at least one primary data structure, at least one secondary data structure, and at least one tertiary data structure;in a database write phase: writing columnar content in a compressed format into the at least one primary data structure;in a database update phase: writing an updated value for each column of each updated row into the at least one tertiary data structure of the respective column, along with a storage key that indicates a corresponding row in the at least one primary data structure;in a database query phase: reading the updated values and the storage keys from the at least one tertiary data structure, sorting the updated values by their storage keys and storing the sorted values and the storage keys in the sorted order into the at least one secondary data structure, and clearing the at least one tertiary data structure; responding to a database query by consulting the at least one primary data structure and the at least one secondary data structure;in a database commit phase: producing a new version of the at least one primary data structure by merging the at least one secondary data structure and an old version of the at least one primary data structure;wherein the consulting and merging comprise reading a value for a storage key from the at least one secondary data structure if the value exists and otherwise from the at least one primary data structure.
地址 Helsinki FI