摘要 |
A database operating method and device. The method comprises: in a process of executing a target transaction of an application server, acquiring sequentially database operation instructions in the target transaction executed by the application server (301); performing a speculative execution of the database operation instructions and returning the result of the speculative execution to the application server for the application server to determine a next database operation instruction to execute, and locally recording the database operation instruction and speculative execution data generated by the speculative execution (302); and when a transaction commit instruction in the target transaction is acquired, controlling a database corresponding to the application server to actually execute the target transaction according to the database operation instruction and the speculative execution data stored in a memory library (303). The method and device can increase the efficiency of transaction execution and the transaction throughput. |