Skip to content

Question: caching query results (memory, redis, etc.) #5414

Open
@loris

Description

@loris

Quick question: how do you guys cache your mongoose query results?
I know mongodb is supposed to be fast et al, but some heavy queries (like aggregate) in some use-cases benefit a lot from in-memory or redis result caching.
There are some existing npm packages to do that, but they are all failing to do the job correctly. And they are all obscure 12 stars, not updated since 2014, monkey-patching codebase.

Caching is such an important matter in software engineering, that I'm wondering why there is no "official" way to do that in mongoose.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions