is database locking enabled by default in rails? -
some frameworks opinionated when comes database locking. example, grails orm (gorm) documents state following:
by default gorm classes configured optimistic locking
source: https://grails.github.io/grails-doc/latest/guide/gorm.html#locking
i've read through material online rails , understanding rails not provide locking default.
what rails default approach locking?
note: not question approach best, question confirm rails's approach locking.
by default, i'm pretty sure database locking turned off in rails. if want use locking, have @ ruby on rails docs:
http://api.rubyonrails.org/classes/activerecord/locking/pessimistic.html
Comments
Post a Comment