In MongodbReader, data is obtained through dbCursor = col.find(filter).iterator();, but the amount of data obtained in each batch is not set, which will cause memory overflow.
Need to be modified like this:
dbCursor = col.find(filter).batchSize(1000).iterator();
In MongodbReader, data is obtained through dbCursor = col.find(filter).iterator();, but the amount of data obtained in each batch is not set, which will cause memory overflow. Need to be modified like this: dbCursor = col.find(filter).batchSize(1000).iterator();