The application discloses a
database bidirectional
data synchronization method, an electronic device and a
computer program product, and belongs to the technical field of databases. The method comprises the following steps: generating target hash data based on change data of a first
database, and storing the target hash data into a target sending thread of the first
database; the target sending thread is any one of a plurality of sending threads in the first database; the target sending thread sends the target hash data to a target receiving thread of a second database; the target receiving thread is a receiving thread corresponding to the target sending thread in a plurality of receiving threads in the second database; the target receiving thread traverses each sending thread in the second database based on the target hash data, checks whether there is a same hash value as the target hash data, and obtains a check result; and performing
data synchronization on the second database based on the change data of the first database according to the check result.