sphildreth / roadie

Music Streaming API Server

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Move images from database to file system

sphildreth opened this issue · comments

There are several disadvantages to keeping images in the database:

  • Creates larger backups
  • Adds size to the table (potential performance concerns)
  • Not easily editable/viewable outside of the database

The goal is to be able to remove completely:

  • The "images" table
  • Any "thumbnail" property on any POCO record
  • Use files for images everywhere.

This applies to

  • Artist (folder set via Configuration.LibraryFolder)
  • Collection (folder set via Configuration.CollectionImageFolder)
  • Genre (folder set via Configuration.GenreImageFolder)
  • Label (folder set via Configuration.LabelImageFolder)
  • Playlist (folder set via Configuration.PlaylistImageFolder)
  • Release (folder set via Configuration.LibraryFolder + Artist folder)
  • Track (folder set to Release folder)
  • User (folder set via Configuration.UserImageFolder)

Created method "/admin/MigrateImages" to pull existing images from database and store in File.