I'm getting the following whenever I fire off a job,
database error: Runner error: Overflow sort stage buffered data usage of 33554495 bytes exceeds internal limit of 33554432 bytes
I know why this is, I also know how to increase that value but I'd rather use a index as suggested instead.
I've attempted to set an index but it seems to not work. All I've done is modified my POJO as such
@Indexed(direction = IndexDirection.DESCENDING)
String creationTime;
And then in my MongoItemReader
reader.setQuery(new Query().with(Sort.by(Order.desc("creationTime"))));
However that hasn't made a difference, is there more I need to do to enable that index?