Skip to content

Commit

Permalink
chore: update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
taobojlen authored Jul 22, 2024
1 parent 2ce3d28 commit 5a7e0c4
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -203,13 +203,14 @@ ZEAL_ALLOWLIST = [

## Comparison to nplusone

zeal borrows heavily from [`nplusone`](https://github.com/jmcarp/nplusone), but has some differences:
zeal borrows heavily from [nplusone](https://github.com/jmcarp/nplusone), but has some differences:
- zeal also detects N+1 caused by using `.only()` and `.defer()`
- it lets you configure your own threshold for what constitutes an N+1
- it has slightly more helpful error messages that tell you where the N+1 occurred
- `nplusone` patches the Django ORM even in production when it's not enabled. zeal does not!
- `nplusone` appears to be abandoned at this point.
- however, zeal only works with Django, whereas `nplusone` can also be used with SQLAlchemy.
- nplusone patches the Django ORM even in production when it's not enabled. zeal does not!
- nplusone appears to be abandoned at this point.
- however, zeal only works with Django, whereas nplusone can also be used with SQLAlchemy.
- zeal does not (yet) detect unused prefetches, but nplusone does.

## Contributing

Expand Down

0 comments on commit 5a7e0c4

Please sign in to comment.