caosiyang / py-mongo-sync

Oplog-based data sync tool that synchronizes data from a replica set to another deployment, e.g.: standalone, replica set, and sharded cluster.
http://caosiyang.github.io/py-mongo-sync/
MIT License
108 stars 46 forks source link

fix error occured if field name has . in index key when replay oplog #27

Closed liangruifeng closed 5 years ago

liangruifeng commented 5 years ago

Set check_keys=False when insert can fix this error.

https://stackoverflow.com/questions/28664383/mongodb-not-allowing-using-in-key

caosiyang commented 5 years ago

Thanks :+1: