[Dbix-class] Issue with DBIx::Class::ResultSet::find_or_create():

Pedro Melo melo at simplicidade.org
Sun Jul 29 09:23:22 GMT 2007


On Jul 28, 2007, at 9:40 AM, Matt S Trout wrote:
> (3) 1, but don't bother with the initial select call, try the  
> insert and then
>     find if it fails
>     - would this actually be faster?

When I was writing DBI directly this is what I used to do. IMHO, it  
is the safest and fastest option.

Best regards,
-- 
Pedro Melo
Blog: http://www.simplicidade.org/notes/
XMPP ID: melo at simplicidade.org
Use XMPP!





More information about the Dbix-class mailing list