Deleting rows from tables in a database without an index

US11403266B2 · US · B2

Patent metadata
FieldValue
Publication numberUS-11403266-B2
Application numberUS-201916430642-A
CountryUS
Kind codeB2
Filing dateJun 4, 2019
Priority dateSep 11, 2015
Publication dateAug 2, 2022
Grant dateAug 2, 2022

How to read this patent

A practical reading order for non-experts. Skip the full description unless you need deep technical detail.

  1. Title

    What the patent document calls the invention.

  2. Abstract

    A short plain-language summary of the technical disclosure.

  3. Assignees and inventors

    Who owns or filed the patent and who is credited as inventor.

  4. Key dates

    Filing, priority, publication, and grant dates set the timeline.

  5. First independent claim

    The legal scope of protection — read this for what is actually claimed.

  6. CPC / IPC classifications

    Technology tags used to group this patent with similar filings.

  7. Citations and related patents

    Prior art links and similar publications in this corpus.

Abstract

Official abstract text for this publication.

A method for deleting a row from a table in a database system comprises logically deleting the row in the first table in the database system by inserting a key of the row into a corresponding row of a dedicated table in the database system; querying the dedicated table during a query against the first table to identify the corresponding row in the dedicated table; and in response to identifying the corresponding row in the dedicated table, deleting the row from the first table and the corresponding row from the dedicated table as part of query processing during a subsequent query.

First claim

Opening claim text (preview).

What is claimed is: 1. A database system comprising: a memory configured to store: a first table comprising a plurality of rows and that is an indexless table; and a dedicated table; and a processing unit coupled to the memory and configured to: responsive to a request to delete a selected row in the first table, logically mark for deletion a selected row in the first table by inserting a key of the selected row into a corresponding row of the dedicated table that corresponds to the selected row to be deleted, wherein each row in the dedicated table corresponds to a respective selected row that has been logically marked for deletion in the first table; query the dedicated table while executing a query against the first table to identify the corresponding row in the dedicated table; and in response to identifying the corresponding row in the dedicated table, delete the selected row from the first table and the corresponding row from the dedicated table as part of query processing during a subsequent query; wherein: each row in the first table, as well as each row in the dedicated table, comprises a create timestamp attribute and a delete timestamp attribute; the delete timestamp attribute of the corresponding row in the dedicated table is set to a value not permitted under normal operation such that the selected row in the first table is not read under normal operation of the database system; and the key of the selected row is a unique primary key. 2. The database system of claim 1 , wherein the delete timestamp attribute of the corresponding row in the dedicated table is set to a value of −1. 3. The database system of claim 1 , wherein the processing unit is further configured to insert a modified version of the selected row in the first table when logically deleting the selected row. 4. The database system of claim 1 , wherein the processing unit is configured to establish a correspondence between rows in the dedicated table and rows in the first table by using all rows in the first table in which the create timestamp value is smaller than the create timestamp value in rows of the corresponding dedicated table. 5. The database system of claim 1 , wherein the processing unit is further configured to perform a query of the first table during a reorganization of the first table. 6. A program product comprising a computer readable storage medium having program instructions embodied thereon, wherein the program instructions are configured, when executed by at least one programmable processor, to cause the at least one programmable processor to, responsive to a request to delete a selected row in a first table comprising a plurality of rows and that is an indexless table: logically mark for deletion a selected row in a first table in a database system by inserting a key of the selected row into a corresponding row of a dedicated table that corresponds to the selected row to be deleted in the database system, wherein each row in the dedicated table corresponds to a respective selected row that has been logically marked for deletion in the first table; query the dedicated table during a query against the first table to identify the corresponding row in the dedicated table; and in response to identifying the corresponding row in the dedicated table, delete the selected row from the first table and the corresponding row from the dedicated table as part of query processing during a subsequent query; wherein: each row in the first table, as well as each row in the dedicated table, comprises a create timestamp attribute and a delete timestamp attribute; the program instructions are further configured to cause the at least one programmable processor to delete the selected row in the first table and the corresponding row in the dedicated table by setting the delete timestamp value of the corresponding row of the dedicated table to a value not permitted under normal operation such that the selected row in the first table is not read under normal operation of the database system; and the key of the selected row is a unique primary key. 7. The program product of claim 6 , wherein the program instructions are further configured to cause the at least one programmable processor to insert a modified version of the selected row in the first table when logically deleting the selected row. 8. The program product of claim 6 , wherein the delete timestamp attribute of the corresponding row in the dedicated table is set to a value of −1. 9. The program product of claim 6 , wherein the program instructions are further configured to cause the at least one programmable processor to establish a correspondence between rows in the dedicated table and rows in the first table by using all rows in the first table in which the create timestamp value is smaller than the create timestamp value in rows of the corresponding dedicated table. 10. The program product of claim 6 , wherein the program instructions are further configured to cause the at least one programmable processor to perform a query of the first table during a reorganization of the first table. 11. A computer-implemented method comprising: responsive to a request to delete a selected row in a first table comprising a plurality of rows and that is an indexless table: logically deleting a selected row in a first table in a database system by inserting a key of the selected row into a corresponding row of a dedicated table that corresponds to the selected row to be deleted in the database system, wherein each row in the dedicated table corresponds to a respective selected row that has been logically marked for deletion in the first table; querying the dedicated table during a query against the first table to identify the corresponding row in the dedicated table; and in response to identifying the corresponding row in the dedicated table, marking for deletion the selected row from the first table and the corresponding row from the dedicated table as part of query processing during a subsequent query; wherein: each row in the first table, as well as each row in the dedicated table, comprises a create timestamp attribute and a delete timestamp attribute; logically deleting the selected row of the first table comprises setting the delete timestamp attribute of the corresponding row in the dedicated table to a value not permitted under normal operation such that the selected row in the first table is not read under normal operation of the database system; and the key of the selected row is a unique primary key. 12. The method of claim 11 , wherein setting the delete timestamp attribute of the corresponding row in the dedicated table to a value not permitted under normal operation comprises setting the delete timestamp attribute of the corresponding row in the dedicated table to a value of −1. 13. The method of claim 11 , wherein logically deleting the selected row further comprises inserting a modified version of the selected row in the first table. 14. The method of claim 11 , further comprising establishing a correspondence between rows in the dedicated table and rows in the first table by using all rows in the first table in which the create timestamp value is smaller than the create timestamp value in rows of the corresponding dedicated table. 15. The method of claim 11 , further comprising performing a query of the first table during a reorganization of the first table.

Assignees

Inventors

Classifications

  • G06F16/215Primary

    Improving data quality; Data cleansing, e.g. de-duplication, removing invalid entries or correcting typographical errors · CPC title

  • Delete operations (erasing in storage systems G06F3/0652) · CPC title

  • Ensuring data consistency and integrity · CPC title

  • Update request formulation · CPC title

  • Query execution · CPC title

Patent family

Related publications grouped by family.

External sources

Frequently asked questions

Answers are generated from the same data shown on this page.

What does patent US11403266B2 cover?
A method for deleting a row from a table in a database system comprises logically deleting the row in the first table in the database system by inserting a key of the row into a corresponding row of a dedicated table in the database system; querying the dedicated table during a query against the first table to identify the corresponding row in the dedicated table; and in response to identifying…
Who is the assignee on this patent?
IBM
What technology area does this patent fall under?
Primary CPC classification G06F16/215. Mapped technology areas include Physics.
When was this patent published?
Publication date Tue Aug 02 2022 00:00:00 GMT+0000 (Coordinated Universal Time) (B2). Legal status and post-grant events are not shown on this page.
What related patents are in patentsdb?
We list 4 related publications on this page (citations in our corpus or others sharing the same primary CPC).