Skip to content

Aggregation allowDiskUse should not be false by default #4664

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;
...
}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions