Change-protected database system

US11334539B2 · US · B2

Patent metadata
FieldValue
Publication numberUS-11334539-B2
Application numberUS-201916526334-A
CountryUS
Kind codeB2
Filing dateJul 30, 2019
Priority dateJul 30, 2019
Publication dateMay 17, 2022
Grant dateMay 17, 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 plurality of database access requests are received at a database system within a designated database access scope. The plurality of database access requests may include a first request to read from a first database table and a second request to write to a second database table. The second request may occur during or after the receipt of the first request. A database access dependency rule linking the first database table and the second database table may be created. The database access dependency rule may impose a protected database access framework when executing a subsequent write request to the second database table when the first database table is updated. The protected database access framework may store one or more values associated with the subsequent write request in a staging table that are capable of being used to undo the subsequent write request.

First claim

Opening claim text (preview).

The invention claimed is: 1. A method comprising: receiving a plurality of database access requests at a database system within a designated database access scope, the plurality of database access requests including a first request to read from a first database table and a second request to write to a second database table, the second request occurring during or after the receipt of the first request; creating a database access dependency rule linking the first database table and the second database table, the database access dependency rule imposing a protected database access framework when executing a subsequent write request to the second database table when the first database table is updated, the protected database access framework storing one or more values associated with the subsequent write request in a staging table, the staging table values capable of being used to undo the subsequent write request, wherein executing the subsequent write request comprises receiving a third request to update an original data value in a first row in the second database table, writing an updated data value corresponding with the original data value to a second row in the staging table, and replacing the original data value in the second database table with a corresponding replacement value determined based on a value replacement update function that takes as input the updated data value, the first and second rows each including the database table key; receiving a second request to reverse the update to the second database table; determining a restored data value for the first row by applying a value replacement restore function; and replacing the updated data value in the database table with the restored data value. 2. The method recited in claim 1 , wherein the database access scope is defined as a database transaction that includes one or more database scripts. 3. The method recited in claim 1 , wherein the database access scope is defined as a database transaction that includes one or more application procedure interface (API) calls. 4. The method recited in claim 1 , wherein the database access scope is defined as a period of time. 5. The method recited in claim 1 , wherein the staging table is implemented as a temporal database that stores values associated with a succession of changes to the second database table. 6. The method recited in claim 1 , wherein the database system includes a data definition repository, the data definition repository storing the database access dependency rule, the data definition repository also storing a table definition for the staging table. 7. The method recited in claim 1 , wherein the value replacement restore function is an inverse of the value replacement update function. 8. The method recited in claim 1 , wherein the first and second database tables are configured as multitenant database tables. 9. A database system including memory and one or more processors, the database system configured to perform a method comprising: receiving a plurality of database access requests at a database system within a designated database access scope, the plurality of database access requests including a first request to read from a first database table and a second request to write to a second database table the second request occurring during or after the receipt of the first request; creating a database access dependency rule linking the first database table and the second database table, the database access dependency rule imposing a protected database access framework when executing a subsequent write request to the second database table when the first database table is updated, the protected database access framework storing one or more values associated with the subsequent write request in a staging table, the staging table values capable of being used to undo the subsequent write request, wherein executing the subsequent write request comprises receiving a third request to update an original data value in a first row in the second database table, writing an updated data value corresponding with the original data value to a second row in the staging table, and replacing the original data value in the second database table with a corresponding replacement value determined based on a value replacement update function that takes as input the updated data value, the first and second rows each including the database table key; receiving a second request to reverse the update to the second database table; determining a restored data value for the first row by applying a value replacement restore function; and replacing the updated data value in the database table with the restored data value. 10. The database system recited in claim 9 , wherein the database access scope is defined as a database transaction that includes one or more database scripts. 11. The database system recited in claim 9 , wherein the database access scope is defined as a database transaction that includes one or more application procedure interface (API) calls. 12. The database system recited in claim 9 , wherein the database access scope is defined as a period of time. 13. The database system recited in claim 9 , wherein the staging table is implemented as a temporal database that stores values associated with a succession of changes to the second database table. 14. The database system recited in claim 9 , wherein the database system includes a data definition repository, the data definition repository storing the database access dependency rule, the data definition repository also storing a table definition for the staging table. 15. One or more non-transitory computer readable media having instructions stored thereon for performing a method, the method comprising: receiving a plurality of database access requests at a database system within a designated database access scope, the plurality of database access requests including a first request to read from a first database table and a second request to write to a second database table the second request occurring during or after the receipt of the first request; creating a database access dependency rule linking the first database table and the second database table the database access dependency rule imposing a protected database access framework when executing a subsequent write request to the second database table when the first database table is updated, the protected database access framework storing one or more values associated with the subsequent write request in a staging table, the staging table values capable of being used to undo the subsequent write request, wherein executing the subsequent write request comprises receiving a third request to update an original data value in a first row in the second database table, writing an updated data value corresponding with the original data value to a second row in the staging table, and replacing the original data value in the second database table with a corresponding replacement value determined based on a value replacement update function that takes as input the updated data value, the first and second rows each including the database table key; receiving a second request to reverse the update to the second database table; determining a restored data value for the first ow by applying a value replacement restore function; and replacing the updated data value in the database table with the restored data value.

Assignees

Inventors

Classifications

  • using file system or storage system metadata · CPC title

  • G06F16/219Primary

    Managing data history or versioning (querying versioned data G06F16/2474; querying temporal data G06F16/2477) · CPC title

  • Change logging, detection, and notification (replication G06F16/27) · CPC title

  • Ensuring data consistency and integrity · CPC title

  • Tablespace storage structures; Management thereof · 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 US11334539B2 cover?
A plurality of database access requests are received at a database system within a designated database access scope. The plurality of database access requests may include a first request to read from a first database table and a second request to write to a second database table. The second request may occur during or after the receipt of the first request. A database access dependency rule lin…
Who is the assignee on this patent?
Salesforce Com Inc
What technology area does this patent fall under?
Primary CPC classification G06F16/219. Mapped technology areas include Physics.
When was this patent published?
Publication date Tue May 17 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 12 related publications on this page (citations in our corpus or others sharing the same primary CPC).