2013-08-01 28 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. 

它解決了我的性能問題。