发明名称 REDUCING THE COST OF UPDATE, DELETE, AND APPEND-ONLY INSERT OPERATIONS IN A DATABASE
摘要 A first request may be received to update a first set of values. The first set of values may be stored at a first location within a first data page of a database. The first location may be read-only. In response to the receiving of the first request, a first set of records may be inserted into a second data page. The first set of records may include the update of the first set of values. In response to the inserting, a forward pointer may be stored in the first data page that points to the first set of records on the second data page. One or more committed values may be identified on the second data page. In response to the identifying, the one or more committed values may be merged from the second data page to a third data page.
申请公布号 US2017075950(A1) 申请公布日期 2017.03.16
申请号 US201615366562 申请日期 2016.12.01
申请人 International Business Machines Corporation 发明人 Barber Ronald J.;Bhattacharjee Bishwaranjan;Lohman Guy M.;Mohan Chandrasekaran;Raman Vijayshankar;Sadoghi Hamedani Mohammad;Sidle Richard S.;Storm Adam J.;Xue Xun
分类号 G06F17/30 主分类号 G06F17/30
代理机构 代理人
主权项 1. A system comprising: a computing device having a processor; and a computer readable storage medium having program instructions embodied therewith, the program instructions readable/executable by the processor to cause the system to perform a method, the method comprising: receiving, by a computing device, a first request to update a first set of values, the first set of values stored at a first location within a first data page of a database, wherein the first location is read-only;in response to at least the receiving of the first request, inserting, by the computing device, a first set of records into a second data page, wherein the first set of records include the update of the first set of values, and wherein the second data page is an append-only data page, and wherein the first data page includes a first start time column and the second data page includes a second start time column, the first start time column specifying a commit time of a first transaction that originally wrote the first set of values to the first data page, the second start time column including a transaction id indicating when a second transaction associated with the first request began, and wherein the first data page includes a first tuplestate column and the second data page includes a second tuplestate column, the first tuplestate column and the second tuplestate column storing information about which column values have been updated;in response to the inserting, storing, by the computing device, a forward pointer in the first data page that points to the first set of records on the second data page;identifying, by the computing device, one or more committed values on the second data page, wherein the one or more committed values are values that are part of one or more transactions that are complete;in response to the identifying, merging, by the computing device, the one or more committed values from the second data page to a third data page;receiving, by the computing device, a second request to update a second set of values at the first location within the first data page at substantially a same time as the merging;in response to the receiving of the second request, inserting, by the computing device, a second set of records into the second data page, wherein the merging is not blocking the second request; andcompressing, in response to the merging, the second data page by consolidating data values within a plurality of records of the second data page into a single record.
地址 Armonk NY US