我正在使用pymongo运行一个大型数据更新。为了运行更新,使用collection.find_one(unique criteria)查找单个记录,进行更改,对更新进行批处理,最后使用db.collection.save([long list ofAutoReconnect("could not find master/primary")
pymongo.errors.AutoReconnect: could not find master/pr
我使用pymongo库向MongoDB (版本2.6)提交了一个非常简单的查询:logging.info("Querying the DB")docs.sort("timestamp", pymongo.ASCENDING)
logging.info("Done sorting the results我在{"timestamp": 1
我已经在版本5.6 (Tikanga)上安装了pymongo-2.2-py2.7- Linux -i686鸡蛋和mongodb-2.0.5。我需要更新pymongo和mongodb,因为在这些版本中,我不能使用聚合框架,我将mongodb更新为mongodb i 686-2.4.5,但是仍然不能使用聚合框架,看起来我需要更新pymongo。如何更新pymongo,我不能使用pip,容易安装,apt -get等,不要问