# Prosopite

> Rails N+1 queries auto-detection with zero false positives / false negatives

Source: https://talira.ai/catalog/prosopite-x9rmtzwr
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Library
- Categories: [developer tools / performance / n plus one queries](https://talira.ai/categories/developer-tools/performance/n-plus-one-queries), [languages / ruby / rails](https://talira.ai/categories/languages/ruby/rails)
- Licence: Apache-2.0[^1]
- Pricing: Free and open source[^1]
- Free tier: yes[^1]
- Self-hostable: yes[^2]
- API: yes[^2]
- Creator: Mpampis Kostas (charkost)

Prosopite finds N+1 queries in Rails apps by watching the SQL itself rather than association loading: in a scan (a request, a job, a test or any block) it reports queries that run more than once from the same call stack with the same fingerprint. That catches the cases association-tracking tools miss, such as records created in tests, lookups by ID in a loop, `first`, `last` and `pluck` on collections, and records changed with `becomes`. Reports show the repeated queries, the call stack and a suggested fix, and can raise in tests, log in development or go to structured notifications in production. pg_query makes fingerprints more precise on [PostgreSQL](https://talira.ai/catalog/postgresql-cm55wcnd.md) but is optional.

## Links

- GitHub: https://github.com/charkost/prosopite

## Problems it solves

- find N+1 queries in my Rails tests and fail the build when a new one appears
- bullet keeps flagging things that aren't real problems and misses real ones
- a page runs the same query 200 times in a loop and nobody noticed
- detect repeated queries that don't come from associations, like find by id in a loop
- tell me which line to add includes to when there's an N+1
- catch N+1 queries in background jobs, not only in web requests
- monitor N+1 queries in production without slowing everything down
- my tests create records and then load them one by one, and nothing warns me
- a slow Rails page is making hundreds of SQL queries

## Features

- detection from SQL fingerprints and call stacks
- scans of requests, jobs, tests or any block
- raises in tests
- fix suggestions with the line to add includes
- loggers and structured notifications
- per-database counting (shards don't mix)
- optional pg_query fingerprints on PostgreSQL
- an install generator

## Capabilities

- Has an API: plan not known

## Trust

Overall: 0.64 out of 1.
Signals: maintenance 1.00, adoption 0.66, momentum 0.44, community 0.60, backing 0.20, extensibility 0.20.

- last commit 28 days ago
- 63 commits in the last 90 days
- latest release 2.5.0 28 days ago
- 1.9k GitHub stars
- 30 contributors
- created by Mpampis Kostas (charkost)

## Alternatives

- [Bullet](https://talira.ai/catalog/bullet-1h5ge3bv.md): Help to kill N+1 queries and unused eager loading
- [Goldiloader](https://talira.ai/catalog/goldiloader-h53tw30y.md): Just the right amount of Rails eager loading

## Sources

[^1]: https://github.com/charkost/prosopite/blob/main/LICENSE.txt (checked 17 Nov 2026)
[^2]: https://github.com/charkost/prosopite (checked 17 Nov 2026)
