rails中手动开关connection ( close /open connections in Rails)

访问量: 1312

for details, please refer to : http://blog.daniel-azuma.com/archives/216

connection = User.connection
obj = User.find(1)
connection = obj.connection

User.clear_active_connections!

$ show  processlist; 

订阅/RSS Feed

Subscribe

分类/category