Custom Admin Filter Specification

Source article: Custom Admin Filter Specification Let’s say we have a model Project with age groups as boolean fields: class Project(models.Model): # … age_group_0_5 = models.BooleanField(u”From 0 to 5 years”) age_group_6_12 = models.BooleanField(u”From 6 to 12 years”) age_group_13_18 = models.BooleanField(u”From 13 to 18 years”) age_group_19_27 = models.BooleanField(u”Fron 19 to 27 years”) # … In order […]

Scaling Schema Changes

Source article: Scaling Schema Changes I frequently get asked how Disqus deals with schema changes. It’s a fair question, since we operate a fairly large amount of servers, but I also tend to think the answer is somewhat obvious. So let’s start with the problem of schema changes at scale (in PostgreSQL). Generally you have […]

Scaling Schema Changes

Source article: Scaling Schema Changes I frequently get asked how Disqus deals with schema changes. It’s a fair question, since we operate a fairly large amount of servers, but I also tend to think the answer is somewhat obvious. So let’s start with the problem of schema changes at scale (in PostgreSQL). Generally you have […]