citizensandtech / CivilServant

CivilServant supports communities on reddit to conduct your own A/B tests on the effects of moderation practices, and share those results to an open repository of moderation experiments.
http://civilservant.io
MIT License
23 stars 5 forks source link

Amend CommentController.archive_last_thousand_comments to limit API calls #27

Closed natematias closed 8 years ago

natematias commented 8 years ago

At present, it always calls the last thousand. We can optimize this dramatically by stopping the query once we've reached an ID we've seen before.

Doing this will require tweaking the comment fixtures to offer a hundred at a time.

natematias commented 8 years ago

Resolved with 25ae6b30f67f0fe3c26f0aa4ee1b41a3864b0275