Maintain songalbumid inside the files table

songalbumid is used a lot in queries from Remote; computing the hash for
each row is a major waste of time on big libraries and slow machines, so
let's store the hash in the table.

This brings us to schema version 7.
This commit is contained in:
Julien BLACHE
2010-03-06 17:13:56 +01:00
parent 20c57d5289
commit 748cca63be
4 changed files with 25 additions and 29 deletions

View File

@@ -117,6 +117,8 @@ struct media_file_info {
char *tv_network_name;
char *album_artist;
int64_t songalbumid;
};
#define mfi_offsetof(field) offsetof(struct media_file_info, field)
@@ -226,6 +228,7 @@ struct db_media_file_info {
char *tv_series_name;
char *tv_episode_num_str;
char *tv_network_name;
char *songalbumid;
};
#define dbmfi_offsetof(field) offsetof(struct db_media_file_info, field)