in reply to checking for dirtyness in DBix::Class
You're doing too much work, I expect. DBIx::Class::Row->update contains-
my %to_update = $self->get_dirty_columns or return $self;
So update is already no-op if nothing has changed (it can be forced to update individual columns anyway with make_column_dirty). If you really want to know if something/anything has changed there is also the method is_changed (and is_column_changed to boot).
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: checking for dirtyness in DBix::Class
by morgon (Priest) on Dec 27, 2010 at 15:57 UTC |