Skip to content

Cursors are slow #8310

@simllll

Description

@simllll

Do you want to request a feature or report a bug?
Bug

What is the current behavior?
I think the original issue #8235 is solved, but somehow my executions take now way longer... e.g. I iterate over a big collection without any conditions ({}) and I "only" get arround 250 entries/seconds. With mongoose 5.6 I got around 2000-3000 per second. I tried playing around with batchSize, but it seems it does not make any difference. Unsure how to dbeug this correclty, but could it be that batchSize does not apply anymore?

What is the expected behavior?
Faster query results.

What are the versions of Node.js, Mongoose and MongoDB you are using? Note that "latest" is not a version.

tested with v12.13.0
mongoose: v5.7.6
mongodb: 4.2.1

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions