标签: java mongodb jongo
我正在使用Jongo驱动程序连接Mongo数据库
MongoCursor<T> cursorCollection = collection.find(query).sort({fileAccessKey:1}").as(type); while (cursorCollection.hasNext()) { collectionsAsList.add(cursorCollection.next()); }
迭代光标需要30秒,记录了1,77,000条记录
谢谢