IPC분류정보
국가/구분 |
United States(US) Patent
등록
|
국제특허분류(IPC7판) |
|
출원번호 |
US-0869747
(2010-08-27)
|
등록번호 |
US-8732143
(2014-05-20)
|
발명자
/ 주소 |
- Falkebo, Jesper Lau
- Hejlsberg, Thomas
|
출원인 / 주소 |
|
대리인 / 주소 |
|
인용정보 |
피인용 횟수 :
2 인용 특허 :
4 |
초록
▼
Concepts and technologies are described herein for reducing locking during database transactions without using a cache. In accordance with the concepts and technologies disclosed herein, a server application generates a changeset in response to receiving an operation for modifying base data stored i
Concepts and technologies are described herein for reducing locking during database transactions without using a cache. In accordance with the concepts and technologies disclosed herein, a server application generates a changeset in response to receiving an operation for modifying base data stored in a database. The changeset is stored as a set of tables that are stored at the database with the base data, and include a first table reflecting records in the base data that have been created and/or modified by the operations. The changeset further can include a second table reflecting records in the base data that have been deleted by the operations.
대표청구항
▼
1. A computer-implemented method for updating base data in a database, the computer-implemented method comprising performing computer-implemented operations for: receiving, at a server executing a server application, a plurality of operations from a plurality of corresponding devices, each of the op
1. A computer-implemented method for updating base data in a database, the computer-implemented method comprising performing computer-implemented operations for: receiving, at a server executing a server application, a plurality of operations from a plurality of corresponding devices, each of the operations comprising information for modifying the base data in the database;generating, by the server, a changeset for each particular corresponding device being private to and visible only to a respective corresponding device based upon each of the plurality of operations, the changeset indicating changes to be made to the base data in the database, wherein the changeset comprises two tables including a changed record table and a deleted record table, at least one of the two tables storing data indicating at least one of a record of the base data changed by one of the plurality of operations or a record of the base data deleted by one of the plurality of operations;storing, by the server, the changeset in the database;before updating the base data according to changes indicated in the changeset, receiving a query from at least one requesting device of the plurality of devices, the query comprising a request to read the base data from the database;generating, by the server, a modified query comprising the query and a changeset query for reading the data stored in at least one of the changed record table or the deleted record table, the changeset query including a select statement for data from the base data of the query and one or more statements for data from the changeset;returning, by the server, results satisfying the modified query to the at least one requesting device of the plurality of devices; andupdating, by the server, the base data according to the changes indicated in the changeset, in response to determining that a transaction between the device and the server computer has ended. 2. The method of claim 1, wherein the changeset comprises a changed record table storing data indicating a record of the base data changed by one of the plurality of operations. 3. The method of claim 2, wherein the record of the base data changed by one of the plurality of operations comprises a record deleted by one of the plurality of operations. 4. The method of claim 2, wherein updating the base data comprises modifying the record of the base data indicated by the data stored in the changed record table. 5. The method of claim 2, wherein a layout of the changed data table is the same as a layout of a base data table storing the base data. 6. The method of claim 1, further comprising executing the query and the changeset query to obtain the results satisfying the modified query. 7. The method of claim 1, wherein updating the base data comprises at least one of changing the record of the base data according to the data stored in the changed record table, ordeleting the record of the base data according to the data stored in the deleted record table. 8. The method of claim 1, wherein updating the base data comprises: locking the base data for updating; andupdating the base data in accordance with the changeset while the base data is locked for updating. 9. The method of claim 8, wherein updating the base data further comprises: upon completing updating of the base data, unlocking the base data; anddiscarding the changeset. 10. A computer-readable storage medium having computer readable instructions stored thereupon that, when executed by a computer, cause the computer to: receive a plurality of operations from a plurality of corresponding devices, each of the operations comprising information for modifying the base data in the database;generate a changeset for each particular corresponding device being private to and visible only to a respective corresponding device based upon each of the plurality of operations, the changeset indicating changes to be made to the base data in the database, wherein the changeset comprises two tables including a changed record table and a deleted record table, at least one of the two tables storing data indicating at least one of a record of the base data changed by one of the plurality of operations or a record of the base data deleted by one of the plurality of operations;store the changeset in the database;before updating the base data according to changes indicated in the changeset, receive a query from at least one requesting device of the plurality of devices, the query comprising a request to read the base data from the database;generate a modified query comprising the query and a changeset query for reading the data stored in at least one of the changed record table or the deleted record table, the changeset query including a select statement for data from the base data of the query and one or more statements for data from the changeset;return results satisfying the modified query to the at least one requesting device of the plurality of devices; andupdate the base data according to the changes indicated in the changeset, in response to determining that a transaction between the device and the computer has ended. 11. The computer-readable storage medium of claim 10, further comprising instructions that, when executed by the computer, cause the computer to: execute the query and the changeset query to obtain the results satisfying the modified query. 12. The computer-readable storage medium of claim 11, wherein updating the base data comprises at least one of changing the record of the base data according to the data stored in the changed record table, ordeleting the record of the base data according to the data stored in the deleted record table. 13. The computer-readable storage medium of claim 11, wherein updating the base data comprises: locking the base data for updating;updating the base data in accordance the changeset while the base data is locked for updating;upon completing updating of the base data, unlocking the base data; anddiscarding the changeset. 14. A computer-implemented method for updating base data in a database, the computer-implemented method comprising performing computer-implemented operations for: receiving, at a server executing a server application, a plurality of operations from a plurality of corresponding devices at a server computer, each of the operations comprising information for modifying the base data in the database;generating, by the server, a changeset for each particular corresponding device being private to and visible only to a respective corresponding device based upon each of the plurality of operations, the changeset comprising two tables including a changed record table and a deleted record table, at least one of the two tables storing data indicating at least one of a record of the base data changed by one of the plurality of operations or a record of the base data deleted by one of the plurality of operations;storing, by the server, the changeset in the database;receiving, by the server, a query from the device, the query comprising a request to read the base data from the database;generating, by the server, a modified query comprising the query and a changeset query for reading the data stored in at least one of the changed record table or the deleted record table;executing, by the server, the query and the changeset query to obtain results satisfying the query;determining, by the server, if the transaction between the device and the server computer has ended; andupdating, by the server, the base data according to the changes indicated in the changeset, in response to determining that a transaction between the device and the server computer has ended. 15. The method of claim 1, wherein each of the multiple changesets is stored as a global temporary table to enable viewing of the base data as modified by one or more of the multiple changesets.
※ AI-Helper는 부적절한 답변을 할 수 있습니다.