On May 7, 1:50 pm, Tom Z Meinlschmidt <[email protected]> wrote:
>
> > ActiveRecord::Base.connection.execute('LOCK TABLES tablename WRITE')
> > ActiveRecord::Base.connection.execute('UNLOCK TABLES')
>
> imagine you lock the tables.. and then you will be disconnected from the
> session for some reason... tables are still locked, no way to work with
> them. That's the point dbs have transations...

actually mysql releases table locks held by a client if connection to
that client dies (I suppose it might take a while for it to notice
though). Table locks are generally not a very good thing generally.

Fred

>
> ...
>
> tom
>
> --
> =========================================================================== 
> ====
> Tomas Meinlschmidt, MS {MCT, MCP+I, MCSE, AER}, NetApp Filer/NetCache
>
> www.meinlschmidt.com www.maxwellrender.cz www.lightgems.cz
> =========================================================================== 
> ====
--~--~---------~--~----~------------~-------~--~----~
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