spring-data-mongodb icon indicating copy to clipboard operation
spring-data-mongodb copied to clipboard

Kindly add skipOutput functionality to @Meta for use with @Aggregation

Open diptanil-das opened this issue 3 years ago • 1 comments

Trying to run an Aggregation which has $out at the end. $out put outputs millions of records, the repository tires to map it and fails with a heap error. I don't need the output at all

diptanil-das avatar Jun 17 '22 21:06 diptanil-das

We could determine the skipOutput flag from the method declaration in combination with whether the last stage is a $out stage. We don't need to update the @Meta annotation in consequence.

mp911de avatar Jun 20 '22 14:06 mp911de