如何在使用closure_tree并行操作具有层次结构上的公共属性的模型集时避免数据库死锁? 他们目前在以下口味: 当发出#append/prepend_sibling Mysql2::Error: Deadlock found when trying to get lock; try restarting transaction:
UPDATE `elements` SET `sort
我有一个自定义的CMS实现,它将内容节点存储在两个表中,如“关闭表”部分中所述,在http://www.slideshare.net/billkarwin/models-for-hierarchical-data和在Ruby on Rails 3和MySQL下使用此创业板https://github.com/mceachen/closure_tree。 现在是我实现版本历史的时候了,内容树中的任何