Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Respect paginate.max even without paginate.default #2104

Copy link
Copy link
@umamialex

Description

@umamialex
Issue body actions

Ran into a situation today where I have to stop using paginate.default.

Long story short, I'm using feathers-mongodb and the Model.countDocuments call used by pagination isn't using my index for whatever reason and is killing my DB. I don't need the total on every query, so I removed paginate.default.

However, paginate.max is now not being respected:
https://github.com/feathersjs/databases/blob/master/packages/adapter-commons/src/filter-query.ts#L14-L23

I'm thinking that max should still be respected with or without default being set?

Reactions are currently unavailable

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.