graph-gophers/dataloader
Implementation of Facebook's DataLoader in Golang observed · 2026-10-15
Health v2 · maintenance only
73/100
- Activity 76
- Release rhythm 54
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-10-21. Adoption (stars, forks) is never an input.
- gap_med: 129.5
- age_days: 3618
- days_rel: 146
- days_push: 146
- n_releases_24m: 3
Adoption not part of the score
1309 stars · 79 forks observed · 2026-10-15
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
A Go implementation of Facebook's DataLoader pattern for batching and caching data fetches, commonly used to avoid N+1 query problems in GraphQL servers. It provides batched loading with thunks and a pluggable, request-scoped in-memory cache.
Use cases
- batch database queries to avoid N+1 problems in a GraphQL API
- deduplicate and cache per-request data lookups in Go
- batch fetch users by IDs in a single round trip
- implement Facebook's DataLoader pattern in a Go backend
- reduce load on a backend service by coalescing concurrent key lookups
When to choose
- you're building a GraphQL server in Go and need batching/caching of resolvers' data fetches
- you have many concurrent lookups by key that can be coalesced into batched calls
- you want a request-scoped loader with a pluggable cache interface
When to avoid
- you need a long-lived process-wide cache - the built-in cache is intended only for short-lived loaders
- your project isn't in Go
- you don't have N+1 or duplicate-fetch problems and batching adds unnecessary complexity
Facets
library · maturity active
caching middleware databases web-development developer-tools go dataloader batching graphql request-scoped-cache thunk
1 source
- readme: https://github.com/graph-gophers/dataloader · fetched 2026-10-15 · 8c211fcd13a6
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| graph-gophers/dataloader | main | 73 |
For agents
markdown · JSON · MCP: product_card(name="graph-gophers/dataloader")
Data as of 2026-10-19T08:05:51.212177+00:00 · Report a problem