摘要 |
Disclosed are a data processing method and apparatus. A processing device reads data blocks from a read data block queue; generates confirmation objects that are in a one-to-one association relationship with the data blocks, the confirmation objects being used for recording confirmation states of the data blocks having the association relationship; and establishes a confirmation queue comprising N confirmation objects, and executes persistent operations on the read and confirmed data blocks according to the confirmation states of the confirmation objects in the confirmation queue. Accordingly, the processing device determines, according to the confirmation states of the confirmation objects in the confirmation queue and the arrangement order of the confirmation queue, a previous data block of a data block whose confirmation state is unconfirmed and that is early read by the processing device, and it is not required to perform persistent operations on each data block that is read and confirmed, thereby reducing the processing pressure of persistent services in the case in which the data read precision is ensured. |