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

From: Robert Martin <unclebob_at_objectmentor.com>
Date: Thu, 6 Jul 2006 11:42:06 -0500
Message-ID: <2006070611420625485-unclebob_at_objectmentorcom>


On 2006-06-29 03:19:22 -0500, "Marshall" <marshall.spight_at_gmail.com> said:

> Approach 1 (aka lazy loading) can be seen to
> dramatically increase the number of queries issued,
> increase code size and complexity, increase latency,
> and reduce data freshness BUT reduce memory
> usage compared to the original state.

Marshall, lazy loading is no more, and no less, than loading data at the time you need it, and not before. There are times when preloading is beneficial and there are times when lazy loading offers some advantages. In neither case do you have to build some gawdawful generic framework that solves world hunger.

-- 
Robert C. Martin (Uncle Bob)  | email: unclebob_at_objectmentor.com
Object Mentor Inc.            | blog:  www.butunclebob.com
The Agile Transition Experts  | web:   www.objectmentor.com
800-338-6716                  |
Received on Thu Jul 06 2006 - 18:42:06 CEST

Original text of this message