[Dbix-class] Scalar ref update()'s
Marc Mims
marc at questright.com
Thu May 15 21:04:47 BST 2008
* Jose Fonseca <zefonseca at gmail.com> [080515 12:30]:
> I raised the issue here as a sort of RFC on whether DBIC should
> reload-on-write from the RDBMS automatically when updated with a scalar
> ref(literal SQL command). It seems reasonable that it should, I don't think
> the returned SQL snippet is useful under any circumstance.
I don't think I'd like to see an automatic reload on update. In my own
code, the update is the last operation I perform on the object and I
wouldn't want to see it generate another round trip to the DB.
Perhaps it would be useful to automatically reload on the next access to
an object with scalarref values.
-Marc
More information about the DBIx-Class
mailing list