rails/arel — pull request #174 by eduardordm (2013-03-15 19:43:00+00:00)
Title: Revert fixes involving issue #99 (which makes Arel unusable in large datasets)

There are two commits involving issue #99 which should be reverted.

First, #99 is not an issue in Arel at all. Second, the fix provides pretty much destroys the purpose of pagination by causing full table scans.

The original code (it seems I can't simply revert the commits) is 900 times slower than this one.

You can find the explain plans and times here:

https://gist.github.com/eduardordm/5172519

/cc @tenderlove @rsim

With love,
Eduardo