开发者

How is a media library like WinAmp's implemented?

开发者 https://www.devze.com 2023-02-19 06:13 出处:网络
I wonder because the access times are quite short, even for complex expressions ((playcount = \"0\" OR lastplay < [1 year ago]) AND rating != \"1\" AND rating != \"2\" AND filename N开发者_开发问答

I wonder because the access times are quite short, even for complex expressions ((playcount = "0" OR lastplay < [1 year ago]) AND rating != "1" AND rating != "2" AND filename N开发者_开发问答OTHAS "Midis & Modules" AND type = "0") so basically it behaves like a map from everything to filename, right? What kind of data structure is utilized to get such a fast access?


Relational database like SQLite, with well-defined indexes on popular fields will handle it easily.

0

精彩评论

暂无评论...
验证码 换一张
取 消