The present application discloses a method for writing transaction data into a blockchain, comprising: obtaining a plurality of pieces of transaction data to be written into a blockchain; determining transaction subsets to which the transaction data belongs according to transaction types and/or data change ranges of the transaction data, wherein there is no transaction dependency relationship among transaction data belonging to different transaction subsets; and executing the transaction subsets in parallel, and writing an execution result into the blockchain. The present application further discloses an apparatus for writing transaction data into a blockchain and a method for determining a transaction subset. The present application may achieve parallel execution of transaction data without a transaction dependency relationship, thereby reducing the cost required for improving the execution efficiency of data processing and improving expandability.
展开▼