Skip to content

Use a global dataloader for the batch load functionΒ #4

@scf4

Description

@scf4

In my personal fork of redis-dataloader I use a final dataloader instance to coalesce redis mget calls. It's super helpful, saving ~3-4 round trips per request.

https://github.com/scf4/ioredis-dataloader/blob/master/index.js

Side note, if you'd be interested I'd like to merge my code into yours by adding node-redis support and passing tests, and then I could help with maintenance of the project.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions