3 ms·
> LazyLoading impacts what data is retrieved from the database (or more to the point when) It impacts more than just that, it will impact the query generation
by flukus 9y ago
> LazyLoading impacts what data is retrieved from the database (or more to the point when)
It impacts more than just that, it will impact the query generation as well. If you have a property that is not lazy loaded then it will attempt to join the relation or load it very another query in the same round trip. Turning it off tells the ORM that every single time you want A it needs to go and get B as well. If you have it off universally it will attempt to load the entire database, or as may be the case here, crashing while trying to generate a query to do so.
> You likely should have asked for more information before concluding it was "user error."
Perhaps, but you've got multiple conflicting accounts of what went wrong, some comments indicate that it returned data, others say it never touched the database.