On 5/23/07 1:49 PM, mla wrote:
> I noticed that omitting the override_existing does
> not raise an exception; the redefinition is just
> ignored.
> 
> Is that expected?

Yes, because you'renot overriding an existing sub.
MyApp::DB::Object::Metadata  has no existing default_update_changes_only()
subroutine.

> And BTW, why would anyone keep default_update_changes_only
> false? Are there some cases where updating only the
> modified columns would miss changes or something?

The Perl overhead needed to repeatedly construct the appropriate INSERT or
UPDATE statement often dwarfs the db overhead of setting the whole row every
time (using a pre-constructed and cached SQL statement--and often a cached
$sth statement handle too).

-John



-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Rose-db-object mailing list
Rose-db-object@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rose-db-object

Reply via email to