有没有办法将整个 mongodb 集合转储到操作日志中?
is there a way to dump an entire mongodb collection into the oplog?
我正在使用 mongo-connector python 工具设置一个新的 ElasticSearch 实例。该工具正在运行,但仅从 mongodb oplog 中导入了大约 100k 个条目。
但是,我的集合包含数百万条记录...有没有办法在不以任何方式修改记录的情况下通过 oplog 传递每个集合中的所有记录?
按照 Sammaye 的建议,我通过遍历集合、转换为 json 并通过 curl 将其发布到索引 API 解决了这个问题。谢谢建议!
我正在使用 mongo-connector python 工具设置一个新的 ElasticSearch 实例。该工具正在运行,但仅从 mongodb oplog 中导入了大约 100k 个条目。
但是,我的集合包含数百万条记录...有没有办法在不以任何方式修改记录的情况下通过 oplog 传递每个集合中的所有记录?
按照 Sammaye 的建议,我通过遍历集合、转换为 json 并通过 curl 将其发布到索引 API 解决了这个问题。谢谢建议!