Dan Sully Wrote: > > The data doesn't change without a rescan / adding new music via Browse > Music Folder. > > However - we have dynamic views on that data. If a user doesn't want to > display any Composers in their artist list, that's a setting that can be > changed. The Artist count number will now need to go down. > > Same thing for the new Various Artists albums - that's all dynamic > against the database. >
BUT: All this is clearly defined. You need to recalculate the counts (with its 10 second impact) only on two occasions: 1. After scanning the music archive. 2. When changing settings (at least "various artists" and "contributor" settings as you wrote). But not on: 3. Every time the start page is shown. If you add columns for songs_count and album_count to the table "metainformation" and write those entries only when needed, you can simply retrieve that (static) info in Pages.pm when you build the start HTML page. Voila. Several seconds saved on every web page access. -- meyergru _______________________________________________ Discuss mailing list [email protected] http://lists.slimdevices.com/lists/listinfo/discuss
