Transaction playback method and device
Embodiments of the invention provide a transaction playback method and apparatus. The transaction playback method comprises the steps of obtaining a to-be-played-back transaction and a start timestamp of the to-be-played-back transaction; determining a to-be-inserted first target queue of the to-be-...
Gespeichert in:
Hauptverfasser: | , , , , |
---|---|
Format: | Patent |
Sprache: | chi ; eng |
Schlagworte: | |
Online-Zugang: | Volltext bestellen |
Tags: |
Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
|
Zusammenfassung: | Embodiments of the invention provide a transaction playback method and apparatus. The transaction playback method comprises the steps of obtaining a to-be-played-back transaction and a start timestamp of the to-be-played-back transaction; determining a to-be-inserted first target queue of the to-be-played-back transaction; under the condition that the start timestamp of the to-be-played-back transaction is not larger than the appointed submission timestamp of the second target queue, the to-be-played-back transaction is inserted into the first target queue to be played back, and the second target queue and the first target queue record the played-back transaction and the submission timestamp of the transaction respectively; transactions between the second target queue and the first target queue are played back in parallel. According to the scheme, the transaction playback efficiency can be improved.
本说明书实施例提供事务回放方法以及装置,其中事务回放方法包括:获取待回放事务、以及待回放事务的开始时间戳;确定待回放事务待插入的第一目标队列;在待回放事务的开始时间戳不大于第二目标队列的指定提交时间戳的情况下,将待回放事务 |
---|