I would like to ask about lazy loading. I have read often that we should deny it, but why should I load data that maybe never used?
As an example for discussion let's use a Customer
:
-Id
-Title
-FormOfAddress
-FirstName
-LastName
-Picture*
-DOB
-Phone
-Mobile
-Address*/Billing Address*
-Id
-Street
-Number
-Country*
-Id
-Name
-Zipcode
-Bankdetails*
-Id
-AccountHolder
-AccountNumber
-Bank*
-Id
-Name
-BankCode
-IBAN
The *
marks the Object's which I would Lazy load according to the motto "load only what you need".
Edit
Ok it seems my question isn't clear enough, so here is maybe a better formulation of what I want to know:
I want to know why mostly people dissuade from lazy load, is it because they can't use it or does it have really bad disadvantages?