Laziness
[prev]
[thread]
[next]
[Date index for 2004/07/12]
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
|