Skip to content

Why are my Morphia Cursors stacking up ? #3113

@tariqanas

Description

@tariqanas

Hello,

I work in a large project , for migrating Morphia from 1.6 to 2.4.11 .
I updated all the DAO to the new versions, but while looking at Grafana , i see that the number of cursors used by this version is greater than the number used by morphia 1.6
I understand that in morphia 1.6 the cursors were handled internally, which is not the case in 2.4.11

Is it a normal behaviour ? we've been analysing this change of numbers but couldn't find an explanation. Is it a normal behaviour ?
We put all the morphia cursors inside a try-with-resource, but we keep seeing them stacking up

Any help or guidance would be much appreciated.

Server Version: 5.0
Driver Version: 4.11
Morphia Version: 2.4

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions