• J
    Optimize rebalancing of relative positioning · afbe0b61
    Jan Provaznik 提交于
    Moving of neighbour items was done recursively - this
    was extremely expensive when multiple items had to be moved.
    
    This change optimizes the code to find nearest possible gap where
    items can be moved and moves all of them with single update query.
    afbe0b61
relative_positioning.rb 8.2 KB