The invention discloses a data synchronization method and system, and belongs to the technical field of data synchronization. The method comprises the following steps: S1: obtaining a data operation request and the query time of data to be operated; S2: according to the corresponding query time, containing the data operation request in a request batch of a corresponding time slot; and S3: in a first storage unit, inquiring to obtain a data size contained in the time slot corresponding to one request batch, judging whether the data size is greater than a preset data size or not, dividing the data to be operated into a plurality of data batches by the preset data size as a unit if the data size is greater than the preset data size, transmitting each data batch to a second storage unit, and otherwise, transmitting all data to be operated to the second storage unit. The system comprises a first storage unit, a setting unit, an acquisition unit, a division unit, a query unit, a judgment unit and a processing unit. The technical scheme has the beneficial effects that query response speed is improved, and the use experience of a user is improved.