Some frameworks are opinionated when it comes to database locking. For example, grails orm (gorm) documents state the following:
By default GORM classes are configured for optimistic locking
Source: https://grails.github.io/grails-doc/latest/guide/GORM.html#locking
I've read through some material online for django and my understanding is that django does not provide locking by default. Some examples:
- https://docs.djangoproject.com/en/1.8/ref/databases/
- Concurrency control in Django model
- Django: How can I protect against concurrent modification of database entries
(The above questions are different to this one. Those questions are asking how you manage concurrency. This question is asking what is the default concurrency control.)
What is django's default approach to database locking? It seems that database locking is not enabled by default in django?
NOTE: This is NOT a question about which approach is best, it is a question to confirm django's approach to locking.