On Mon, Apr 10, 2006 at 08:11:38 +0000, fayland wrote: > when calling update_or_create, I want to know it's "create" or "update" > since I want to do different thing according to different type. such as > not + 1 if it's an "update" and +1 if it's a "create".
I actually like the opaqueness of updaate_or_create, since theoretically it could one day be compiled into a server side function on e.g. MySQL, Oracle, etc, and thus reduce the latency by not having to run two SQL statements with a round trip. But then again, this is just mental masturbation. Nothing to see here, move along please ;-) -- Yuval Kogman <[EMAIL PROTECTED]> http://nothingmuch.woobling.org 0xEBD27418
pgpmjXBZziYxZ.pgp
Description: PGP signature
_______________________________________________ List: http://lists.rawmode.org/cgi-bin/mailman/listinfo/dbix-class Wiki: http://dbix-class.shadowcatsystems.co.uk/ IRC: irc.perl.org#dbix-class SVN: http://dev.catalyst.perl.org/repos/bast/trunk/DBIx-Class/
