[Dbix-class] update_or_create feature required

Yuval Kogman nothingmuch at woobling.org
Mon Apr 10 09:24:24 CEST 2006


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 <nothingmuch at woobling.org>
http://nothingmuch.woobling.org  0xEBD27418

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 191 bytes
Desc: not available
Url : http://lists.rawmode.org/pipermail/dbix-class/attachments/20060410/d2c21c6e/attachment.pgp 


More information about the Dbix-class mailing list