larvalabs/pullup — pull request #236 by treygriffith (2014-02-19 22:03:18+00:00)
Title: Score-based Pagination

This PR addresses the issue raised in #223 and paginates based on score for "Top News". There is a maximum of 30 pages that are sorted this way, after which it becomes a completely date-based sorting of news items as a sort of "Archive". That way, we only load a maximum of 900 news items from the database at any one time.

The discussion in #223 was that this was a good alternative to either storing the score in the database or loading all of the items in the database.

This PR also adds pagination to news items based on the source (`sourceNews`).