On 2006-06-22 21:22:51 -0700, Mark Hedges wrote: > I see from ResultSet.pm that it does try to find the row first, and > then it decides whether to update or create. > > So in a multi-connection (possibly multi-server) environment, > update_or_create cannot be used reliably.
Would a transaction help here? > This is just food for though I guess, whether it's worth it or not > to attempt to extend vendor-specific statements to that level of the > DBIC code. My understanding from Matt was that Storage-specific hooks for update_or_create are a good idea, but I don't think anyone has done the work yet. -- Daniel Westermann-Clark _______________________________________________ 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/ Searchable Archive: http://www.mail-archive.com/dbix-class@lists.rawmode.org/