# flyerhzm/bullet

help to kill N+1 queries and unused eager loading

Repository: https://github.com/flyerhzm/bullet
Canonical: https://ross.abutalabs.com/products/bullet
Language: Ruby
License: MIT
License Family: permissive
Last push: 2026-08-02T02:27:33+00:00

## Health v2 (maintenance only)
Score: 75/100 (v2, computed 2026-09-03T02:39:23.370411+00:00)
- activity 95, release rhythm 35, longevity 100
- inputs: {"age_days": 6229, "days_push": 32, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 7335, forks 455 (observed 2026-08-28T04:09:58.297184+00:00)

## What it is
A Ruby gem that detects N+1 queries, unused eager loading, and missing counter caches in ActiveRecord and Mongoid applications during development. It notifies developers through alerts, logs, and error-tracking integrations so they can optimize database query performance.

## Use cases
- detect N+1 queries in a Rails app
- find unused eager loading
- identify where to add counter caches
- improve ActiveRecord query performance
- catch slow database queries during development
- add query performance checks to the test suite

## When to choose
- you maintain a Rails or Mongoid application and want to eliminate N+1 query problems
- you want automated detection of unnecessary eager loading during development or testing
- you want query-performance alerts integrated with tools like Sentry, Honeybadger, or Rollbar

## When to avoid
- your application does not use ActiveRecord or Mongoid
- you need production APM-style query monitoring rather than development-time detection
- you are not working in a Ruby/Rails stack

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

## Member repositories
- flyerhzm/bullet (main) score 75

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:09:58.297184+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-29T17:38:29.130683+00:00, confidence not recorded.
  - readme: https://github.com/flyerhzm/bullet (fetched 2026-08-28T04:09:58.297184+00:00, sha 365584741aa3)
- Data as of 2026-08-30T08:39:29.467469+00:00.
