12spokes/acts_as_restful_list — Issue #6: Limit Size of List
Author: mediavine
Created: 2012-02-20 01:12:23+00:00
State: open

Would you accept a pull request if I wrote an optional ability to set a limit on how large of a list a model keeps track of? As in, if you have 50,000 records and set a limit of 100, it only tracks the order of the first 100.

The reason I ask is because I actually do have a table with over 50,000 records and don't care about anything more than the ordering of the first 10 really. Unfortunately, acts_as_restful_list is much too slow with that many records.

Thoughts?