A method for writing a transaction log into a log file on a magnetic disk, wherein the method comprises: receiving a structured query language, SQL, request; modifying, according to the SQL request, a data page corresponding to the SQL request; generating a corresponding transaction log for the modifying; wherein the transaction log comprises a plurality of records for recording the modifying, and each of the record comprises a file number, a page number, and a position on a page; characterized by determining a type of the transaction log; wherein the type of the transaction log comprises a parallel execution log and a preferential execution log; wherein the parallel execution log refers to a transaction log that comprises records for recording a modifying during which a sequence does not need to be ensured; the preferential execution log refers to a transaction log that comprises records for recording a modifying during which a sequence needs to be ensured; if the type of the transaction log is the parallel execution log, partitioning the transaction log to obtain the plurality of log segments, writing the plurality of log segments into a plurality of parallel execution cache queues; and writing the log segments in the plurality of cache queues into a plurality of parallel execution log files in parallel; if the type of the transaction log is a preferential execution log, writing the transaction log into a preferential execution cache queue; and writing the transaction log in the preferential execution cache queue into a preferential execution log file; wherein the partitioning the transaction log to obtain the plurality of log segments, and writing the plurality of log segments into a plurality of parallel execution cache queues comprises: determining, according to a file number, a page number, and a position on a page of each record in the transaction log and according to a preset rule, a parallel execution cache queue corresponding to each record; and writing each record into the corresponding cache queue in parallel; wherein the preset rule is that records related to a same data page correspond to a same parallel execution cache queue. receiving a structured query language, SQL, request; modifying, according to the SQL request, a data page corresponding to the SQL request; generating a corresponding transaction log for the modifying; wherein the transaction log comprises a plurality of records for recording the modifying, and each of the record comprises a file number, a page number, and a position on a page; characterized by determining a type of the transaction log; wherein the type of the transaction log comprises a parallel execution log and a preferential execution log; wherein the parallel execution log refers to a transaction log that comprises records for recording a modifying during which a sequence does not need to be ensured; the preferential execution log refers to a transaction log that comprises records for recording a modifying during which a sequence needs to be ensured; if the type of the transaction log is the parallel execution log, partitioning the transaction log to obtain the plurality of log segments, writing the plurality of log segments into a plurality of parallel execution cache queues; and writing the log segments in the plurality of cache queues into a plurality of parallel execution log files in parallel; if the type of the transaction log is a preferential execution log, writing the transaction log into a preferential execution cache queue; and writing the transaction log in the preferential execution cache queue into a preferential execution log file; wherein the partitioning the transaction log to obtain the plurality of log segments, and writing the plurality of log segments into a plurality of parallel execution cache queues comprises: determining, according to a file number, a page number, and a position on a page of each record in the transaction log and according to a preset rule, a parallel execution cache queue corresponding to each record; and writing each record into the corresponding cache queue in parallel; wherein the preset rule is that records related to a same data page correspond to a same parallel execution cache queue. determining, according to a file number, a page number, and a position on a page of each record in the transaction log and according to a preset rule, a parallel execution cache queue corresponding to each record; and writing each record into the corresponding cache queue in parallel; wherein the preset rule is that records related to a same data page correspond to a same parallel execution cache queue.