Rockbox mail archive
Subject: Re: Rockbox Database
From: Andreas Stemmer (groovingandi_at_gmx.de)
Björn Stenberg wrote:
> BlueChip wrote:
> > I would propose you build a key/index for each type of search you would
> > want to perform. Then it is you who gets the choice of what fields to
> > catalogue and search-by.
> You mean an abba1982 album index? And an abba1983, abba1984, abba1985...?
> While it's certainly possible, and sort of fits in the 'waste disk if you can save cpu' design philosophy, it is rather more brute force than I'd like. The reason I'm posting the question in the wiki is I would like to construct a way to do this without searching too much and without creating a zillion indices.
But it would be ok to have an index for each field, i.e. one index for
the artist and one index for the year. In my opinion, those kinds of
searches are useful but aren't needed very often. I would be completely
happy if those searches, which combine several fields are only possible
when playback is stopped. The two indices could be stored in the mpeg
buffer, then at least the heavy disc access can be avoided (if we
reserve 32 Bytes for each title string, the mpeg buffer should be big
enough for two complete indices over more than 20,000 songs, right?)
Page was last modified "Jan 10 2012" The Rockbox Crew