Skip to content

Add lean when returning data to save up memory #94

@Abhishek-kumar09

Description

@Abhishek-kumar09

Lean mongoose doc: https://mongoosejs.com/docs/tutorials/lean.html

Currently we are returning the whole document even if the model doesn't need any further processes. Using lean with the models can be 10x more memory efficient.

Metadata

Metadata

Assignees

No one assigned

    Labels

    good first issueGood for newcomersmongoRelated to mongo and mongoose

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions