4 ms·
A sql statement can return a database… if you serialize your database entities w/ lazy loaded relationships straight from an ORM to your API response
by moribvndvs 3y ago
A sql statement can return a database… if you serialize your database entities w/ lazy loaded relationships straight from an ORM to your API response
- jerrygenser 3y agoWouldn't lazy loaded relationships mean that every time you access one of the entities it lazily loads, leading to n+1 fetching behavior?
- moribvndvs 3y agoYeah. Sorry, I was being sarcastic. Was thinking of the time a junior dev json serialized an NHibernate entity and it was essentially serializing the entire database.