• Jan Provaznik's avatar
    Optimize rebalancing of relative positioning · afbe0b61
    Jan Provaznik authored
    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.19 KB