Skip to content

Aggregation allowDiskUse should not be false by default #4664

Closed
@a-mountain

Description

@a-mountain

Starting from version 6, Mongo has server parameter allowDiskUseByDefault which is true by default. In Spring allowDiskUse for aggregation pipelines is false by default (because of using boolean) which means Spring always implicitly overrides Mongo default beheviour. Queries have no such issue. I think Spring should not set any parameters silently overriding Mongo default behaviour

public class AggregationOptions implements ReadConcernAware, ReadPreferenceAware {
...
private final boolean allowDiskUse;
...
}

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions