Hi all,
I am running into 'concurrent POST requests' issue in the application that
I would like to handle.
It's resulting in duplicate entries in database for columns with indexes.
I am thinking of adding *unique constraint* to the table columns (with
index) and handle resulting database errors in the application.
Another way is to lock the row using something like
*order.transaction do*
* order.lock!*
end
end
I would like to know your thoughts about the 2 approaches.
It will be great if you could direct me to useful links.
Thank you in advance!
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/rubyonrails-talk/5884b276-bf88-439b-af14-a43ca2efb9e6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.