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

Make Subreddit and Reddit-wide page queries more storage efficient #32

Closed natematias closed 7 years ago

natematias commented 8 years ago

Reduce how much we store in the json field -- probably:

natematias commented 8 years ago

Make a data migration to prune past json_dict fields to be more storage efficient in this way.

mmou commented 8 years ago
          pruned_post = {
            'id': new_post['id'],
            'author': new_post['author'],
            'num_comments': new_post['num_comments'],
            'downs': new_post['downs'],
            'ups': new_post['ups'], 
            'score': new_post['score']                                             
            }