mirror of
https://github.com/owntone/owntone-server.git
synced 2025-11-25 12:06:12 -05:00
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:
3
src/db.h
3
src/db.h
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user