Jeremy, That was my original approach. I was asking on the ramaze list if that was "normal" way to do it and it was suggested that it might work better just to do it and catch the exception. This causes only a single call to the database rather than two. I'm thinking of going back that way as it seems like it might be more clear and the overhead (particularly in this case) only marginal.
Scott On Tue, Apr 14, 2009 at 4:37 PM, Clive Crous <[email protected]> wrote: > > 2009/4/14 Scott LaBounty <[email protected]>: > > guess I'm not sure which. May be easiest to just try > > it and see. > > Just a thought though: have you considered simply checking if the > account already exists yourself before calling create? > > Which adapter are you using though, as long as their transactions are > ACID you can check as much as you like beforehand ;) > > > > -- Scott http://steamcode.blogspot.com/ --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "sequel-talk" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/sequel-talk?hl=en -~----------~----~----~----~------~----~------~--~---
