Laziness

[prev] [thread] [next] [Date index for 2004/07/12]

From: Johan Lindstrom
Subject: Laziness
Date: 19:03 on 12 Jul 2004
This is about lazily populating fields from the database.

It appears from my DBI profiling and reading the docs that the default 
laziness setting is "lazy". So if I do:
__PACKAGE__->columns(All => ... );
all columns are lazy. Is this correct? (Do they end up in Others?)


I changed this to Primary + Essential:

__PACKAGE__->columns(Primary => qw{
         foo_session_id
         });
__PACKAGE__->columns(Essential => qw{
         start_time
         finish_time
         ... etc ...
         });

But I think I do something wrong because when running the tests I still see 
selects for individual columns as well as all the columns in the table. 
Should this be possible, or am I missing some other configuration?


/J
-------- ------ ---- --- -- --  --  -     -     -        -          -
Johan Lindström    Sourcerer @ Boss Casinos   johanl AT DarSerMan.com

Latest bookmark: "How will my regular expression match?"
http://www.perlmonks.org/index.pl?node_id=371722
dmoz: ...uters/Programming/Languages/Regular_Expessions/ 176

Laziness
Johan Lindstrom 19:03 on 12 Jul 2004

Re: Laziness
Tony Bowden 20:43 on 13 Jul 2004

Re: Laziness
01:54 on 14 Jul 2004

Re: Laziness
Tony Bowden 08:23 on 14 Jul 2004

Re: Laziness
11:36 on 15 Jul 2004

Re: Laziness
Tim Bunce 13:51 on 15 Jul 2004

Re: Laziness
19:39 on 15 Jul 2004

Re: Laziness
Tim Bunce 21:10 on 15 Jul 2004

Generated at 11:34 on 01 Dec 2004 by mariachi v0.52