zdennis/activerecord-import
A library for bulk insertion of data into your database using ActiveRecord. observed · 2026-08-28
Health v2 · maintenance only
77/100
- Activity 99
- 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: 6018
- days_rel: n/a
- days_push: 10
- n_releases_24m: 0
Adoption not part of the score
4154 stars · 622 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded
A Ruby gem that adds bulk import capabilities to ActiveRecord, dramatically reducing the number of SQL INSERT statements needed to insert large amounts of data. It follows ActiveRecord associations to generate minimal insert statements and supports validations and on-duplicate-key updates.
Use cases
- bulk insert thousands of records into a Rails database quickly
- avoid N+1 insert statements when saving associated models
- speed up an 18-hour batch import process
- import rows from arrays of columns and values
- perform upserts with on duplicate key update
- bulk insert records with validations enabled
When to choose
- you use ActiveRecord and need to insert many rows efficiently
- you want to bulk insert records while still running validations
- you need to insert associated records without N+1 inserts
- you need upsert behavior on MySQL, SQLite, or Postgres
When to avoid
- you are not using ActiveRecord or Ruby on Rails
- you need per-record callbacks to fire on every insert
- you only insert a handful of records at a time
- you need a database-agnostic ORM-level bulk API beyond the supported adapters
Facets
library · maturity stable
database orm serialization databases backend web-development performance ruby cross-platform activerecord bulk-insert rails batch-insert sql-performance
1 source
- readme: https://github.com/zdennis/activerecord-import · fetched 2026-08-28 · e5608583a946
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| zdennis/activerecord-import | main | 77 |
For agents
markdown · JSON · MCP: product_card(name="zdennis/activerecord-import")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem