DEV Community

Koji Toyota
Koji Toyota

Posted on

How to get innodb_lock_wait_timeout with Ruby on Rails

[Session]
ActiveRecord::Base.connection.select_all(“SELECT @@SESSION.innodb_lock_wait_timeout”).to_hash

[Global]
ActiveRecord::Base.connection.select_all(“SELECT @@GLOBAL.innodb_lock_wait_timeout”).to_hash

Top comments (0)