The invention discloses a
data processing method. The method comprises the steps of writing a date switching
record in a first log table under the condition that a
batch processing triggering request is received, wherein a log type identifier of the first log table is the same as that in a
control table; reading a
record on that day in the first log table and a file required for
batch processing; performing
batch processing on day initial data generated on the previous day and comprising a data table set generated by batch
processing on the previous day according to the
record and the file; and when an online transaction request is received, performing
online business processing according to the online transaction request and the first data table set, and writing a transaction record in the first log table, wherein a log type identifier of the first data table set is the same as that in the
control table. According to the method, different data are accessed in the batch
processing and the
online transaction processing, access data conflicts do not exist, and certain businesses of the batch processing do not need to be executed again in the
online transaction processing, so that the load of online transaction is reduced.