Resource efficient schema object creation system
Abstract
System, method, and various embodiments for a resource efficient schema object creation system are described herein. An embodiment operates by receiving a schema-change request at a first node of a cluster of computing nodes. The first node creates and populates a schema object in a shared storage, based on the schema-change request. An entry is generated in a reverse transaction log, the entry corresponding to the schema object stored in the shared storage device. A coordinator node is configured to read the entry from the reverse transaction log, update a schema, and generate an entry in a forward transaction log. The first node executes the entry in the forward transaction log, wherein the executing comprises updating a catalog of the first node to include the schema object stored in the shared storage, wherein upon a completion of the updating, the schema object is accessible by the first node.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 4 · Forward citations: 0.
Claims (20 — 3 Independent, 17 Dependent)
- Claim 1Independent Claim
A computer-implemented method comprising: receiving a schema-change request at a first node of a cluster of computing nodes, wherein the cluster of computing nodes comprises a coordinator node and a plurality of write nodes, including the first node; creating, by the first node, a schema object in a shared storage, based on the schema-change request; populating the schema object with data stored in the shared storage; generating an entry in a reverse transaction log, the entry corresponding to the schema object stored in the shared storage, wherein the coordinator node is configured to read the entry from the reverse transaction log, update a schema, and generate an entry in a forward transaction log corresponding to the schema object stored in the shared storage; and executing, at the first node, the entry in the forward transaction log, wherein the executing comprises updating a catalog of the first node to include the schema object stored in the shared storage, wherein upon a completion of the updating, the schema object is accessible for read and/or write commands by the first node.
- Claim 2Depends on #1
The computer-implemented method of claim 1, wherein the schema-change request comprises a request to create an index, and the schema object comprises the index.
- Claim 3Depends on #1
The computer-implemented method of claim 1, wherein the coordinator node is configured to coordinate write operations performed by the plurality of write nodes to ensure data consistency in the shared storage.
- Claim 4Depends on #1
The computer-implemented method of claim 1, wherein each of the plurality of write nodes are configured with greater computing resources relative to the coordinator node.
- Claim 5Depends on #1
The computer-implemented method of claim 1, wherein each of the plurality of write nodes maintains its own catalog of data storage in the shared storage.
- Claim 6Depends on #5
The computer-implemented method of claim 5, wherein each of the plurality of write nodes executes the entry in the forward transaction log, and updates its own catalog to include the schema object stored in the shared storage.
- Claim 7Depends on #1
The computer-implemented method of claim 1, wherein the generating the entry in the reverse transaction log comprises including a pointer to the schema object stored in the shared storage.
- Claim 8Depends on #7
The computer-implemented method of claim 7, wherein the pointer to the schema object stored in the shared storage is provided with the entry in the forward transaction log.
- Claim 9Depends on #1
The computer-implemented method of claim 1, further comprising: creating the schema object in the catalog of the first node prior to creating the schema object in the shared storage.
- Claim 10Depends on #9
The computer-implemented method of claim 9, further comprising: rolling back any changes made at the first node, including removing the schema object from the catalog of the first node, prior to performing the executing.
- Claim 11Independent Claim
A system comprising: a memory; and at least one processor coupled to the memory and configured to perform operations comprising: receiving a schema-change request at a first node of a cluster of computing nodes, wherein the cluster of computing nodes comprises a coordinator node and a plurality of write nodes, including the first node; creating, by the first node, a schema object in a shared storage, based on the schema-change request; populating the schema object with data stored in the shared storage; generating an entry in a reverse transaction log, the entry corresponding to the schema object stored in the shared storage, wherein the coordinator node is configured to read the entry from the reverse transaction log, update a schema, and generate an entry in a forward transaction log corresponding to the schema object stored in the shared storage; and executing, at the first node, the entry in the forward transaction log, wherein the executing comprises updating a catalog of the first node to include the schema object stored in the shared storage, wherein upon a completion of the updating, the schema object is accessible for read and/or write commands by the first node.
- Claim 12Depends on #11
The system of claim 11, wherein the schema-change request comprises a request to create an index, and the schema object comprises the index.
- Claim 13Depends on #11
The system of claim 11, wherein the coordinator node is configured to coordinate write operations performed by the plurality of write nodes to ensure data consistency in the shared storage.
- Claim 14Depends on #11
The system of claim 11, wherein each of the plurality of write nodes are configured with greater computing resources relative to the coordinator node.
- Claim 15Depends on #11
The system of claim 11, wherein each of the plurality of write nodes maintains its own catalog of data storage in the shared storage.
- Claim 16Depends on #15
The system of claim 15, wherein each of the plurality of write nodes executes the entry in the forward transaction log, and updates its own catalog to include the schema object stored in the shared storage.
- Claim 17Depends on #11
The system of claim 11, wherein the generating the entry in the reverse transaction log comprises including a pointer to the schema object stored in the shared storage.
- Claim 18Depends on #17
The system of claim 17, wherein the pointer to the schema object stored in the shared storage is provided with the entry in the forward transaction log.
- Claim 19Depends on #11
The system of claim 11, the operations further comprising: creating the schema object in the catalog of the first node prior to creating the schema object in the shared storage; and rolling back any changes made at the first node, including removing the schema object from the catalog of the first node, prior to performing the executing.
- Claim 20Independent Claim
A non-transitory computer-readable medium having instructions stored thereon that, when executed by at least one computing device, cause the at least one computing device to perform operations comprising: receiving a schema-change request at a first node of a cluster of computing nodes, wherein the cluster of computing nodes comprises a coordinator node and a plurality of write nodes, including the first node; creating, by the first node, a schema object in a shared storage, based on the schema-change request; populating the schema object with data stored in the shared storage; generating an entry in a reverse transaction log, the entry corresponding to the schema object stored in the shared storage, wherein the coordinator node is configured to read the entry from the reverse transaction log, update a schema, and generate an entry in a forward transaction log corresponding to the schema object stored in the shared storage; and executing, at the first node, the entry in the forward transaction log, wherein the executing comprises updating a catalog of the first node to include the schema object stored in the shared storage, wherein upon a completion of the updating, the schema object is accessible for read and/or write commands by the first node.
Technical Overview & Description
BACKGROUND A data definition language (DDL) statement is used to modify the schema of a database, while a data manipulation language (DML) statement is used to modify the data stored in the database. DML operations are often more computationally intensive than DDL operations. As such, to optimize resource consumption, oftentimes a first resource-light computing device will be set up to perform DDL operations, while a second more resource-rich computing device will be set up to perform DML operations. However, computational bottlenecks, starvation, and other issues may arise when DDL operations include DML operations and are performed by the first resource-light computing device. BRIEF DESCRIPTION OF THE DRAWINGS The accompanying drawings are incorporated herein and form a part of the specification. FIG. 1 is a block diagram illustrating example functionality for a schema object creation system (SCS), according to some embodiments. FIG. 2 illustrates an example flow of operations without enhanced DDL processing, according to some embodiments. FIG. 3 illustrates an example flow of operations of a schema object creation system (SCS) with enhanced DDL processing, according to some embodiments. FIG. 4 is a flowchart illustrating example operations for providing a schema object creation system (SCS), according to some embodiments. FIG. 5 is example computer system useful for implementing various embodiments. In the drawings, like reference numbers generally indicate identical or similar elements. Additionally, generally, the left-most digit(s) of a reference number identifies the drawing in which the reference number first appears. DETAILED DESCRIPTION Provided herein are system, apparatus, device, method and/or computer program product embodiments, and/or combinations and sub-combinations thereof, for providing a resource efficient schema object creation system. A data definition language (DDL) statement is used to modify the schema of a database, while a data manipulati
Cited By — Indexed Forward Citations (0 of 0 total)
No indexed citing patents in this generation yet. Ingest USPTO/PatentsView bulk citation tables via patents-ingest to expand the local forward citation graph.
References Cited — Backward Prior Art (4)
| Patent | Title | Year | Citations |
|---|