On Mar 2, 2:59 pm, Vetrivel Vetrivel <rails-mailing-l...@andreas-
s.net> wrote:

> I have a two tables  a and b . At first I am fetching one records from
> a.Then I have to use table lock to lock that table. Then I will do some
> operatins,Then I  insert a record in b table.Then I will remove the
> lock.Untill such times other rails application should not read the data
> from a table.How to do this using ActiveRecord::Base class , Say Sql
> Query to do that.

Like i said before, depends on your database (and in general table
locks are a bad idea and will hurt you as your number of users
increases)

Fred
>
> thanks,
> --
> Posted viahttp://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: 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/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to