Re: The wisdom of the object mentors (Was: Searching OO Associations with RDBMS Persistence Models)

From: Robert Martin <>
Date: Wed, 28 Jun 2006 08:48:43 -0700
Message-ID: <2006062808484378840-unclebob_at_objectmentorcom>

On 2006-06-20 11:36:46 -0700, "Marshall" <> said:

> Robert Martin wrote:

>> On 2006-06-13 13:22:40 -0400, "Marshall" <> said:
>>> Can you state what the benefit of lazy loading is?

>> Yes. There are two that I can think of on the spur of the moment.
>> 1. We don't pay for what we don't use. i.e. if some very late decision
>> means that we don't need the data, we don't have to fetch it.
> This is also an attribute of simple querying. Don't need the data?
> Don't query it. Lazy loading doesn't help this at all. This is a
> non-problem.

You asked me for the benefits of lazy loading. You did not ask me to compare lazy loading with queries. Indeed, I cannot do the latter since the two are orthogonal. I can implement lazy loading with queries.

Robert C. Martin (Uncle Bob)  | email:
Object Mentor Inc.            | blog:
The Agile Transition Experts  | web:
800-338-6716                  |
Received on Wed Jun 28 2006 - 17:48:43 CEST

Original text of this message