数据迁移:
根据用户ID来迁移数据,分页查询,根据创建时间排序。
发现10W+的数据同步之后只有7.2w多条,并且几乎每一个10w左右的数据量的用户都存在这样的问题,查找日志发现mongoDB有错误如下:
Caused by: com.mongodb.MongoQueryException: Query failed with error code 96 and error message 'Executor error during find command: OperationFailed: Sort operation used more than the maximum 33554432 bytes of RAM. Add an index, or specify a smaller limit.' on server XX.XX.XXX.XX:xxxx
at com.mongodb.operation.FindOperation$1.call(FindOperation.java:706)
at com.mongodb.operation