Skip to content

DataLoader arbitrary queries? #2

Open
@lorensr

Description

@lorensr

We could combine queries with an $or like in @pcorey's article:

http://www.petecorey.com/blog/2017/08/21/advanced-mongodb-query-batching-with-dataloader-and-sift/

How useful is that? We'd have fewer network requests to the server, but I imagine the bulk of the work is the query itself, which I don't imagine is actually getting simpler/faster. And memoization is great, but how likely is a repeat arbitrary query? In the case of findById it's clearly a common occurrence.

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions