# US 2025/0148114 A1 · Database management engine for a database management system

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2025/0148114 A1
- Document ID: US20250148114A1
- Status: Published application
- Kind: A1
- Application number: 19/012,307
- Filed: 2025-01-07
- Published: 2025-05-08
- Earliest claimed: 2021-12-31
- Assignees: Microsoft Technology Licensing, LLC
- Applicants: Microsoft Technology Licensing, LLC
- Inventors: Oron GOLAN; Aviram FIREBERGER; Aviad PINES; Adir ATIAS; Evgeny LUTSKY
- Web page: https://patentgrep.com/patent/US20250148114A1

## CPC

- G06F 21/6218: {to a system of files or objects, e.g. local or distributed file system or database}
- G06F 21/6245: {Protecting personal data, e.g. for financial or medical purposes}
- G06F 11/1469: {Backup restoration techniques}
- G06F 2201/84: Using snapshots, i.e. a logical point-in-time copy of the data
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Methods, systems, and computer storage media provide a privacy compliance notification indicating a database's level of compliance with a privacy policy after restoring the database to the database's backup copy. The database is associated with a database management engine. The database supports privacy-based first-class data entities. The privacy-based first-class data entities are database entities having privacy system-level metadata properties associated with data operations in a database language syntax. The privacy compliance notification may be generated based on determining whether a privacy database operation associated with a database journal and a privacy journal has been executed on a database since the database was restored to a backup copy of the database. The database transaction journal includes a transaction log of database operations executed against the database, and the privacy journal includes the database operations logged as privacy database operations associated with the plurality of privacy-based first-class data entities.

## Claims

### Claim 1

A computerized system comprising:
one or more computer processors; and
computer memory storing computer-useable instructions that, when used by the one or more computer processors, cause the computerized system to perform operations comprising:
receiving a database restore indication that a database was restored to a prior version of the database at a first timestamp;
at a second timestamp after the first timestamp, accessing a privacy journal comprising at least one privacy operation indicator of a privacy operation associated with the restored database;
determining that the at least one privacy operation indicator is missing from a database transaction journal comprising at least one non-privacy operation indicator of a non-privacy operation associated with the restored database; and
based on determining that the at least one privacy operation indicator is missing from the database transaction journal, causing a security mitigation action to be performed.

### Claim 2 (depends on 1)

The computerized system of claim 1, wherein the privacy operation is associated with a data structure having a privacy system-level metadata property, and the privacy operation comprises at least one of: a data definition language (DDL) command, a data control language (DCL) command, a transition control language (TCL) command, a command specifying a relational database entity, or a command specifying a value for the privacy system-level metadata property of the at least one privacy operation indicator.

### Claim 3 (depends on 1)

The computerized system of claim 1, wherein the privacy operation is missing from the database transaction journal because the privacy operation has not been executed on the restored database since the first timestamp.

### Claim 4 (depends on 1)

The computerized system of claim 1, wherein causing the security mitigation action to be performed comprises generating a privacy compliance notification indicating that the database is not compliant because the privacy operation has not been executed on the restored database.

### Claim 5 (depends on 1)

The computerized system of claim 1, wherein the causing the security mitigation action to be performed comprises generating a privacy compliance notification specifying that the database is noncompliant.

### Claim 6 (depends on 1)

The computerized system of claim 1, wherein the operations further comprise:
receiving an indication indicative of execution of the privacy operation against the database at the first timestamp;
based on executing the privacy operation against the database, recording, in the privacy journal and the database transaction journal, the at least one privacy operation indicator; and
performing a backup operation on the database restoring the database to a backup copy of the database having the first timestamp earlier than the second timestamp.

### Claim 7 (depends on 6)

The computerized system of claim 6, wherein performing the backup operation reverts the database transaction journal to a prior version corresponding to a state of the database transaction journal at the first timestamp.

### Claim 8 (depends on 1)

The computerized system of claim 1, wherein the operations further comprise determining that the privacy operation not having been executed on the restored database is noncompliant with a privacy policy, wherein the security mitigation action is performed based on the noncompliance with the privacy policy.

### Claim 9

One or more computer-storage media having computer-executable instructions embodied thereon that, when executed by a computing system having a processor and memory, cause the computing system to:
receive a database restore indication that a database was restored to a prior version of the database at a first timestamp;
at a second timestamp after the first timestamp, access a privacy journal comprising at least one privacy operation indicator of a privacy operation associated with the restored database, wherein the privacy operation is associated with a data structure having a privacy system-level metadata property, and the privacy operation comprises at least one of: a data definition language (DDL) command, a data control language (DCL) command, a transition control language (TCL) command, a command specifying a relational database entity, or a command specifying a value for the privacy system-level metadata property of the at least one privacy operation indicator,
determine that the at least one privacy operation indicator is missing from a database transaction journal comprising at least one non-privacy operation indicator of a non-privacy operation associated with the restored database; and
based on determining that the at least one privacy operation indicator is missing from the database transaction journal, cause a security mitigation action to be performed.

### Claim 10 (depends on 9)

The one or more computer-storage media of claim 9, wherein performing the security mitigation action comprises at least one of:
aggregating data associated with the privacy operation that has been determined to be missing from the database transaction journal;
generating instructions to cause the privacy operation to be performed on the database; or
performing the privacy operation.

### Claim 11 (depends on 9)

The one or more computer-storage media of claim 9, wherein the data structure having the privacy system-level metadata property comprises at least one of:
a first privacy-based first-class data entity that is a privacy type associated with privacy management operations defined in a privacy policy, or
a second privacy-based first-class data entity that tracks the privacy system-level metadata property, wherein the privacy system-level metadata property is stored with a corresponding privacy operation in the privacy journal.

### Claim 12 (depends on 9)

The one or more computer-storage media of claim 9, wherein the data structure comprises:
a first privacy-based first-class data entity having a privacy type associated with privacy management operations defined in a privacy policy; and
a second privacy-based first-class data entity that tracks privacy metadata associated with privacy operations, wherein the privacy metadata is stored with a corresponding privacy operation in the privacy journal.

### Claim 13 (depends on 9)

The one or more computer-storage media of claim 9, wherein the computer-executable instructions cause the computing system to record the privacy operation in the privacy journal, wherein recording the privacy operation in the privacy journal comprises recording a pointer in the privacy journal, the pointer pointing to an entry in the database transaction journal that corresponds to the privacy operation.

### Claim 14 (depends on 9)

The one or more computer-storage media of claim 9, wherein determining that the at least one privacy operation indicator is missing from the database transaction journal comprises:
playing-back privacy operations of database transaction journal that were executed after the first timestamp;
detecting an error in playing-back the privacy operations;
comparing un-played privacy operations in the database transaction journal to a plurality of privacy operations in the privacy journal; and
identifying the privacy operation in the privacy journal based on the privacy operation matching an un-played privacy operation in the database transaction journal.

### Claim 15

A computer-implemented method, comprising:
receiving a database restore indication that a database was restored to a prior version of the database at a first timestamp;
at a second timestamp after the first timestamp, accessing a privacy journal comprising at least one privacy operation indicator of a privacy operation associated with the restored database,
determining that the at least one privacy operation indicator is missing from a database transaction journal comprising at least one non-privacy operation indicator of a non-privacy operation associated with the restored database; and
based on determining that the at least one privacy operation indicator is missing from the database transaction journal, causing a security mitigation action to be performed.

### Claim 16 (depends on 15)

The computer-implemented method of claim 15, wherein the privacy operation is associated with a data structure having a privacy system-level metadata property, wherein the privacy operation comprises at least one of: a data definition language (DDL) command, a data control language (DCL) command, a transition control language (TCL) command, a command specifying a relational database entity, or a command specifying a value for the privacy system-level metadata property of the at least one privacy operation indicator, and wherein the privacy operation is formatted in DDL, structured query language (SQL), DLC, or TLC.

### Claim 17 (depends on 15)

The computer-implemented method of claim 15, wherein the privacy journal comprises a subset of database operations in the database transaction journal.

### Claim 18 (depends on 15)

The computer-implemented method of claim 15, further comprising:
determining that there are no privacy operations in the privacy journal that have not been executed on the restored database since the first timestamp; and
based on determining that there are no privacy operations that have not been executed on the restored database since the first timestamp, generating a compliance notification that indicates that the restored database is compliant because that are no privacy operations that have not been executed on the restored database since the first timestamp.

### Claim 19 (depends on 15)

The computer-implemented method of claim 15, further comprising:
determining that a respective privacy operation has not been executed on the restored database since the first timestamp; and
based on determining that the respective privacy operation has not been executed on the restored database since the first timestamp, generating a compliance notification that indicates that the restored database is not compliant because the respective privacy operation has not been executed on the restored database since the first timestamp.

### Claim 20 (depends on 15)

The computer-implemented method of claim 15, wherein identifying the privacy operation that has not been executed on the database since the restore is based on detecting an error in playing-back privacy operations in a database transaction journal of the database.
