Describe the bug
Refreshing large podcasts can be very slow.
To Reproduce
Steps to reproduce the behavior:
Refresh any podcast that contains a significant number of episodes.
Expected behavior
The refresh to not take so long.
Additional context
The issue is a result of all episodes in the feed being saved during a refresh, regardless of whether they have changed or not. This is causing unnecessary write overhead and is very noticeable on low end devices. This is a big issue when enabling background refresh for podcasts.
When saving an updated Feed, only new or changed episodes should be saved. Also need to check that expired episodes are removed.
Describe the bug Refreshing large podcasts can be very slow.
To Reproduce Steps to reproduce the behavior:
Expected behavior The refresh to not take so long.
Additional context The issue is a result of all episodes in the feed being saved during a refresh, regardless of whether they have changed or not. This is causing unnecessary write overhead and is very noticeable on low end devices. This is a big issue when enabling background refresh for podcasts.
When saving an updated Feed, only new or changed episodes should be saved. Also need to check that expired episodes are removed.