MayOneUS / pledgeservice

pledge.mayday.us
pledge.mayday.us
Apache License 2.0
11 stars 11 forks source link

Implement sharding counter scheme for computing the total donations. #40

Closed hjfreyer closed 10 years ago

hjfreyer commented 10 years ago

https://developers.google.com/appengine/articles/sharding_counters

This change increments the counters, and stores all the pledges with model_version=2 for tracking. We don't actually use the counters yet. Once this is live and no more pledges are coming in without model_version>=2, we'll count the total donations for pledges not included in the counters, and manually add that.

jtolio commented 10 years ago

LGTM!

brad commented 10 years ago

Yeah, very nice. I love that it uses a task queue too.