Cached metadata/tags

Got an idea? Missing something? Post your feature request here.

Moderator: moderators

Cached metadata/tags

Postby nibato » Fri Feb 25, 2011 5:34 am

I've not had time yet this week to scan through the code and see if it already caches meta data. So I apologize if this feature is already implemented, but I figure it wouldn't hurt to share my thoughts.

I've noticed subsonic can be very very slow opening large directories. This is particularly noticeable for anyone using an app/client with the REST api. I can only assume it's because its loading the metadata (id3 tags, etc) from each file every time you browse the folder.

Caching the metadata into a database would be a great way to alleviate the problem. Simply check to see if the file size, path, and last-modified timestamp match the entry in the cache. If it does, then pull the metadata from the cache instead of parsing the data from each and every song every time you browse the folder. Every day or so (could be user specified), you could optimize the database based on which entries are accessed the most, and purge entries that havn't been accessed in a while (could also be a user specified value).

Maybe it could be possible to also have it prefetch the metadata when the server isn't particularly busy.

Edit: From what i gathered from staring at the code this morning, this feature is already implemented, ignore this post :P
Last edited by nibato on Sun Feb 27, 2011 1:48 pm, edited 2 times in total.
Image
User avatar
nibato
 
Posts: 9
Joined: Sun Feb 13, 2011 12:33 am

Postby donpearson » Fri Feb 25, 2011 2:54 pm

+1 :D
Facebook Group:
http://www.facebook.com/groups/subsonic.group/

Image
donpearson
 
Posts: 361
Joined: Wed Oct 15, 2008 3:53 pm
Location: UK


Return to Feature Requests

Who is online

Users browsing this forum: No registered users and 9 guests