发明名称 Database management delete efficiency
摘要 A method, system, and computer program product to efficiently delete data from a database is disclosed. The method, system, and computer program product may include structuring the database to have a plurality of tables having indexes to related rows and having keys with key values associated with particular rows. The method, system, and computer program product may include deleting rows in the database tables by deleting keys in indexes related to the rows in an order such that corresponding rows are deleted based on relation to the keys. The method, system, and computer program product may include ordering the rows to be deleted based on concepts such as hierarchy, spatial locality, temporal locality, frequency of access, number of rows, and value uniqueness. Comparatively closely related relationships may be prioritized to be deleted.
申请公布号 US9229960(B2) 申请公布日期 2016.01.05
申请号 US201313763971 申请日期 2013.02.11
申请人 International Business Machines Corporation 发明人 Bestgen Robert J.;Beuch Daniel E.
分类号 G06F17/30 主分类号 G06F17/30
代理机构 代理人 Berger Scott A.;Nock James R.
主权项 1. A computer-implemented method of managing a database contained in a storage facility, comprising: structuring the database to a have a plurality of tables having indexes to related rows and having keys associated with particular rows, the database including a first table and a first index for accessing the first table, the first index being organized as a search tree having a plurality of nodes, the plurality of nodes including a plurality of lower-most child nodes, each lower-most child node storing a key corresponding with a row of the first table; and deleting three or more rows in the first table by deleting keys in corresponding lower-most child nodes of the first index in a first order, the first order beginning at a first lower-most child node to be deleted, the first lower-most child node being a node closest to one side of the tree,the first order including a first subsequent node to be next deleted after the first lower-most child node, the first subsequent node being a second lower-most child node reachable from the first lower-most child node in a first number of jumps in the tree, wherein a second number of jumps from the second lower-most child node is required to reach a third lower-most child node to be deleted, wherein the first number of jumps is fewer than the second number of jumps.
地址 Armonk NY US