[Boulder Ruby Group] ar validations licking the balls
Tony Arcieri
tony at clickcaster.com
Fri Nov 9 18:42:59 EST 2007
On Nov 9, 2007 3:45 PM, Greg Edwards <gedwards1 at eyetools.com> wrote:
> Is this a problem just with AR or would all of the ORMs (Sequel,
> Datamapper, etc) have the same problem?
>
I think the problem stems largely from the ActiveRecord connection adapter
API. It provides no mechanism for acquiring or releasing table level locks.
If you could get a table level lock, then checking the uniqueness of a value
before performing an insert/update could be an atomic, as well as performing
a find_or_create_by type operation
--
Tony Arcieri
ClickCaster, Inc.
tony at clickcaster.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/bdrg-members/attachments/20071109/ffd1e613/attachment.html
More information about the Bdrg-members
mailing list