[Episodes] optimize keeping Podcast.episode_count up-to-date
commit0194f707cab12843d78918b85b5310509009801c
authorStefan Kögl <stefan@skoegl.net>
Tue, 17 Mar 2015 18:41:26 +0000 (17 19:41 +0100)
committerStefan Kögl <stefan@skoegl.net>
Tue, 17 Mar 2015 18:44:14 +0000 (17 19:44 +0100)
tree00336b0bf5312b52d99676c18741546c16d4cac3
parenta8651269ece0adda294f1d1474398db4519b9d78
[Episodes] optimize keeping Podcast.episode_count up-to-date

Previously Episode.episode_count was updated when the podcast itself was
updated from the feed. As counting episodes can be very slow for large
podcasts, the field is now incremented whenever an episode is created.
mygpo/data/feeddownloader.py
mygpo/podcasts/models.py
mygpo/podcasts/tests.py
mygpo/web/tests.py