Performance fix for the main episode list.
commit6ddb4b5441e938ed2e5cdf10994506faff167251
authorJustin Forest <justin.forest@gmail.com>
Thu, 2 Oct 2008 18:40:46 +0000 (2 22:40 +0400)
committerThomas Perl <thp@perli.net>
Tue, 14 Oct 2008 16:39:15 +0000 (14 18:39 +0200)
treea3b0287f71db282952f3d825d98533b618045d3a
parent024094559be5d8493ac0fc01b9428717864bac0f
Performance fix for the main episode list.

When the list of episodes for a channel was displayed, all episodes
were loaded with a single query, then loaded separately by one
inside podcastItem.iter_set_downloading_columns().  This patch
fixes this problem, the TreeModel is built with only one SQL query.

On the same machine a TreeModel for 50 episodes was displayed in
1.915531 seconds, with this patch: 0.236303 (8 times faster).
src/gpodder/libpodcasts.py