sdispater / orator

The Orator ORM provides a simple yet beautiful ActiveRecord implementation.

Home Page:https://orator-orm.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

When lock_for_update() is used, write connection is not used.

okojoalg opened this issue · comments

When lock_for_update() is used, read connection is used.
The solution is to use write connection if you explicitly use use_write_connection().
In practice, shouldn't we always use write connection when using lock_for_update()?