On Thu, Feb 07, 2002 at 11:21:06AM -0500, darren chamberlain wrote:
> This is the key, in my mind.  Objects that lazy load their data
> can be a big win in these cases; with a data structure, you have
> to do all that fetching, etc in advance.  When you have objects
> that lazy load other (lazy-loaded) objects, you can (potentially)
> save a lot of up-front time when you instantiate your objects.

Yes; this is a big win with Class::DBI in a lot of cases. The next
release of Class::DBI also comes with iterators to make some of that
loading even lazier ;)

It's actually reasonably smart too. You can group various columns together
that are usually used together, such that when you fetch one from the
database it will also fetch the others in that group...

Tony



Reply via email to