Database query processing
First Claim
1. A system for managing a relational database organized according to a schema, the system comprising:
- a computer-readable medium, the computer-readable medium comprising a first file, wherein the first file stores a relational database table described by the schema, the first file comprises a sequence of row entries, each row entry in the sequence of row entries corresponds to a row of the table, and each row entry in the sequence of row entries comprises a sequence of data items in the row corresponding to the row entry; and
at least one processor in communication with the computer-readable medium and programmed to;
receive a command to modify a value of a first data item of the relational database table, wherein the command indicates a modified value for the first data item;
responsive to receiving the command and without modifying the schema, write a first change entry to the first file prior to the sequence of row entries, wherein the first change entry comprises the modified value for the first data item, and an indicator of a column corresponding to the first data item;
identify from the sequence of row entries a first row entry comprising the first data item; and
without modifying the schema, write to the first row entry, at a position corresponding to the first data item, a pointer to the first change entry that associates the first change entry to the first row entry without updating the first row entry with the modified value for the first data item during a response to the command to modify.
1 Assignment
0 Petitions
Accused Products
Abstract
Various examples are directed to systems and methods for managing a database organized according to a schema. The database may comprise a database file corresponding to a table described by the schema. The database file may comprise a first row entry corresponding to a first row of the table. The first row entry may comprise at least one data item. A command may be received. The command may modify a first data item in the first row of the table. An indication of the modified value for the first data item may be written to a change location at the first file. The first entry may be modified to include a pointer to the indication of the modified value for the first data item.
16 Citations
20 Claims
-
1. A system for managing a relational database organized according to a schema, the system comprising:
-
a computer-readable medium, the computer-readable medium comprising a first file, wherein the first file stores a relational database table described by the schema, the first file comprises a sequence of row entries, each row entry in the sequence of row entries corresponds to a row of the table, and each row entry in the sequence of row entries comprises a sequence of data items in the row corresponding to the row entry; and at least one processor in communication with the computer-readable medium and programmed to; receive a command to modify a value of a first data item of the relational database table, wherein the command indicates a modified value for the first data item; responsive to receiving the command and without modifying the schema, write a first change entry to the first file prior to the sequence of row entries, wherein the first change entry comprises the modified value for the first data item, and an indicator of a column corresponding to the first data item; identify from the sequence of row entries a first row entry comprising the first data item; and without modifying the schema, write to the first row entry, at a position corresponding to the first data item, a pointer to the first change entry that associates the first change entry to the first row entry without updating the first row entry with the modified value for the first data item during a response to the command to modify. - View Dependent Claims (2, 3)
-
-
4. A system for managing a relational database organized according to a schema, the system comprising:
-
a computer-readable medium, the computer-readable medium comprising a first file storing a relational database table described by the schema, wherein the first file comprises a first row entry, the first row entry corresponds to a first row of the table, and the first row entry comprises at least one data item; and at least one processor in communication with the computer-readable medium and programmed to; receive a command to modify a value of a first data item in the first row of the table, wherein the command indicates a modified value for the first data item; responsive to receiving the command and without modifying the schema, write an indication of the modified value for the first data item to a change location at the first file; identify the first row entry from the first file; and without modifying the schema, write to the first row entry a pointer to the indication of the modified value for the first data item that associates the modified value to the first row entry and the first data item without updating the first row entry with the modified value for the first data item during a response to the command to modify. - View Dependent Claims (5, 6, 7, 8, 9, 10, 11, 12, 13, 14)
-
-
15. A system for managing a relational database organized according to a schema, the system comprising:
-
a computer-readable medium, the computer-readable medium comprising a first file storing a relational database table described by the schema, wherein the first file comprises; a first change entry comprising a modified value for a first data item, wherein the first change entry is written to a change location of the first file without a modification to the schema; and a first row entry, wherein the first row entry corresponds to a first row of the table, the first row entry lacks the modified value, and wherein the first row entry comprises at a position corresponding to the first data item, a pointer to the first change entry that associates the first change entry to the first row entry; and at least one processor in communication with the computer-readable medium and programmed to; receive from a client a query for the first data item; responsive to receiving the query, determine that the client has not previously received a result for the query; load from the first file a plurality of row entries, the plurality of row entries comprising the first row entry; modify the loaded first row entry to replace the pointer with the modified value for the first data item; and return to the client a result of the query, wherein the result of the query comprises the modified value for the first data item. - View Dependent Claims (16, 17, 18, 19, 20)
-
Specification