# salsify/goldiloader

Just the right amount of Rails eager loading

Repository: https://github.com/salsify/goldiloader
Canonical: https://ross.abutalabs.com/products/goldiloader
Language: Ruby
License: MIT
License Family: permissive
Topics: eager-loading, ruby-on-rails, activerecord, performance, hacktoberfest, gem
Last push: 2026-03-19T14:22:43+00:00

## Health v2 (maintenance only)
Score: 61/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 73, release rhythm 23, longevity 100
- inputs: {"age_days": 4465, "days_push": 167, "days_rel": 301, "gap_med": 210.5, "n_releases_24m": 3}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1672, forks 53 (observed 2026-08-28T04:05:20.175138+00:00)

## What it is
Goldiloader is a Ruby gem that automatically eager loads ActiveRecord associations to eliminate N+1 queries. It batches association loads across models in a query result into a single database query without requiring explicit includes or preload calls.

## Use cases
- fix N+1 query problems in Rails apps
- automatically eager load ActiveRecord associations
- reduce database query count in Rails controllers
- optimize Rails ORM performance without manual includes
- batch load nested associations in ActiveRecord
- speed up slow Rails pages caused by per-record queries

## When to choose
- you have a Rails app suffering from N+1 queries
- you want eager loading to happen automatically without auditing every code path
- you access associations uniformly across loaded records
- you want a drop-in gem with minimal configuration

## When to avoid
- you are not using Ruby on Rails or ActiveRecord
- your code accesses associations non-uniformly, causing over-fetching of unused data
- you need fine-grained control over which queries are batched
- you are on Rails older than the supported versions without using a legacy release branch

## Facets
- artifact type: library
- maturity: active
- function: orm, database, caching
- domain: web-development, databases, performance, developer-tools
- platform: ruby
- tags: activerecord, eager-loading, n-plus-one, ruby-on-rails, gem, query-optimization, web-server

## Member repositories
- salsify/goldiloader (main) score 61

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:05:20.175138+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T03:42:39.048609+00:00, confidence not recorded.
  - readme: https://github.com/salsify/goldiloader (fetched 2026-08-28T04:05:20.175138+00:00, sha 0b3abf853a17)
- Data as of 2026-08-30T08:39:29.467469+00:00.
