Skip to content

0x726f6f6b6965/go-dataloader

Repository files navigation

Go-Dataloader

GoDoc Go Report Card codecov

A generic Go implementation of the DataLoader utility originally developed by Facebook.

Overview

This dataloader implementation efficiently loads data in batches, reducing the number of requests to your database or service. It supports:

  • Generic types for keys and values
  • Batching of requests
  • Caching results
  • Customizable options
  • Built-in tracing for observability

How does dataloader work

DataLoader operates by grouping multiple requests within a short time window into a single request to resolve the N+1 problem.

pic

Cache

The default cache is not functional. You can implement your own cache, but it must be thread-safe, like golang-lru, otherwise, it will panic.

About

No description or website provided.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •