METHOD FOR PROCESSING DATABASE TRANSACTION, CLIENT AND SERVER
The present application provides a database transaction processing method, a client, and a server. The method includes: receiving, by a server, a database access request that is used to request target data and that is sent by a client; sending a first version of the target data to the client, where...
Gespeichert in:
1. Verfasser: | |
---|---|
Format: | Patent |
Sprache: | eng ; fre ; ger |
Schlagworte: | |
Online-Zugang: | Volltext bestellen |
Tags: |
Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
|
Zusammenfassung: | The present application provides a database transaction processing method, a client, and a server. The method includes: receiving, by a server, a database access request that is used to request target data and that is sent by a client; sending a first version of the target data to the client, where the first version is a version of the target data that is currently stored in the server, and the server stores only a last committed updated version of the target data; receiving a transaction committing request sent by the client after the client executes a first transaction based on the first version, where the transaction committing request includes a log used to record a data operation of the first transaction; and modifying, according to the log and the data operation of the first transaction when it is determined that there is no data conflict between the data operation of the first transaction and the version of the target data that is currently stored in the server, the version of the target data that is currently stored in the server, and obtaining a committed updated version of the target data. In the present application, a lock-free transaction mechanism is implemented, and database storage management complexity is reduced. |
---|