charkost / prosopite

:mag: Rails N+1 queries auto-detection with zero false positives / false negatives
Apache License 2.0
1.48k stars 45 forks source link

How does this gem differs from Rails strict_loading? #60

Open aelkoussy opened 1 year ago

aelkoussy commented 1 year ago

Thanks for the great work on this gem. Can we compare more in depth why would this gem be useful given that Rails strict_loading exists? (and maybe we can add it to the Readme)

For me, I understand that strict_loading prevents all kinds of lazy loading, which includes n+1 issues but also includes other things, it is very hard for me to pinpoint how those 2 cases diverge

In other words: what are lazy loading cases that will throw exception in strict_loading but are NOT N+1 issues? Plus, any other points you think are handled better in Prosopite

Thanks

technicalpickles commented 1 year ago

If you are like me, and weren't familiar with strict_loading, it was added in Rails 6.1

aelkoussy commented 1 year ago

Thanks, I know about strict_loading and many resources cover it well, but I hope the author of the gem (or someone) can explain how Prosopite is different than Rails strict_loading and what are the benefits of using it instead.

santib commented 1 year ago

Interested in hearing more about the differences as well

TafadzwaD commented 11 months ago

@aelkoussy I came across this https://github.com/learningtapestry/lcms-engine/issues/151#issuecomment-765330664 , hope it helps