diff options
author | Matthew Draper <matthew@trebex.net> | 2015-12-18 15:54:04 +1030 |
---|---|---|
committer | Matthew Draper <matthew@trebex.net> | 2015-12-18 15:54:04 +1030 |
commit | 04309aee82468fa4c4b3d92a533e84a96533f236 (patch) | |
tree | 4381dd87ac4d9b465d6fc18d812176889c2aceb4 /RAILS_VERSION | |
parent | eaefe87c5ed33b9581906a4848163a6c32a1ee24 (diff) | |
download | rails-04309aee82468fa4c4b3d92a533e84a96533f236.tar.gz rails-04309aee82468fa4c4b3d92a533e84a96533f236.tar.bz2 rails-04309aee82468fa4c4b3d92a533e84a96533f236.zip |
Implement limit & offset for ourselves
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.
Diffstat (limited to 'RAILS_VERSION')
0 files changed, 0 insertions, 0 deletions