leftouterjoins / podsumer

A privacy focused, self-hosted podcatcher.
MIT License
35 stars 1 forks source link

Issue #11: Improve performance when importing large feed #13

Closed leftouterjoins closed 11 months ago

leftouterjoins commented 11 months ago

Re: #11

Current versions import a custom image for every item in a feed. Some feeds (e.g. The Daily) have 1k+ items and a good number of them have a custom image URL on them. This resulted in an HTTP request for each of those one thousand images which is slow. This change makes it so

Secondarily, I am piggy-backing a change to how SQL errors are handled. They are now output to the log, and the query method returns false. Lastly, die() calls were added to the controller after the heade redirects to cutoff any additional output.