exAspArk/batch-loader
:zap: Powerful tool for avoiding N+1 DB or HTTP queries observed · 2026-08-28
Health v2 · maintenance only
57/100
- Activity 56
- Release rhythm 35
- Longevity 100
Flags: no_releases
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 3320
- days_rel: n/a
- days_push: 267
- n_releases_24m: 0
Adoption not part of the score
1123 stars · 51 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
A Ruby gem providing a generic lazy batching mechanism to avoid N+1 database or HTTP queries, inspired by Facebook's DataLoader and Haskell Haxl. It batches and caches data loads lazily wherever they are needed, with thread-safe loaders.
Use cases
- avoid N+1 database queries in a Rails app
- batch HTTP requests in a RESTful API
- resolve GraphQL fields efficiently with graphql-ruby
- cache previously loaded records with an identity map
- batch-load data lazily in a multi-threaded Ruby service
When to choose
- you have N+1 query problems in Ruby code or GraphQL resolvers
- you want a generic, framework-agnostic batching utility
- you need lazy, thread-safe batch loading with automatic caching
When to avoid
- you are not working in Ruby
- your data access is already efficiently batched by your ORM or framework
- you need eager preloading rather than lazy on-demand batching
Facets
library · maturity stable
caching middleware developer-tools web-development backend databases apis performance ruby dataloader n-plus-one batching graphql lazy-loading ruby-gem
1 source
- readme: https://github.com/exAspArk/batch-loader · fetched 2026-08-28 · 550db4c84c5f
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| exAspArk/batch-loader | main | 57 |
For agents
markdown · JSON · MCP: product_card(name="exAspArk/batch-loader")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem