2013-08-01 27 views
3

我有一个模型,我需要存储在SD卡上:最好的方式来组织SD卡上的数据进行快速搜索

Artist->Album->Track 

Playlist (user adds here tracks) 

目前我储存的轨道上使用 playlistid_artistid_albumid_trackid名一级。但是下载了很多曲目之后性能下降了。什么是最好的方式来存储我的分层数据(播放列表实际上不是在层次结构 - 这是一个问题)快速搜索?

编辑:

我需要有可能性的寻找:

  • 轨道通过的TrackID,ALBUMID,artistId,playlistId

  • 专辑由artistId,playlistId

  • 艺术家按playlistId

    等等...

回答

0

我重新整理我的结构,下一个:

- Tree structure "Artist->Album->Track"` on the SD card 
- DB on the SD card that links Playlists and Tracks ids. 

它解决了我的性能问题。