• M
    Implement limit & offset for ourselves · 04309aee
    Matthew Draper 提交于
    We know the query will return exactly one row for each entry in the
    `ids` array, so we can do all the limit/offset calculations on that
    array, in advance.
    
    I also split our new ordered-ids behaviour out of the existing
    `find_some` method: especially with this change, the conditionals were
    overwhelming the actual logic.
    04309aee
finder_test.rb 43.8 KB