prosopite icon indicating copy to clipboard operation
prosopite copied to clipboard

How does this gem differs from Rails strict_loading?

Open aelkoussy opened this issue 1 year ago • 4 comments

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

aelkoussy avatar Mar 04 '23 09:03 aelkoussy

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

technicalpickles avatar Apr 29 '23 00:04 technicalpickles

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.

aelkoussy avatar May 20 '23 21:05 aelkoussy

Interested in hearing more about the differences as well

santib avatar Jun 29 '23 19:06 santib

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

TafadzwaD avatar Sep 20 '23 14:09 TafadzwaD