像 WinAmp 这样的媒体库是如何实现的?
我想知道,因为访问时间很短,即使对于复杂的表达式 ((playcount = "0" OR lastplay <[1 年前]) AND rating != "1" AND rating != "2" AND filename不是“Midis & Modules”AND type =“0”
),所以基本上它的行为就像从所有内容到文件名的映射,对吧?使用什么样的数据结构来获得如此快速的访问?
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 NOTHAS "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?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
像 SQLite 这样的关系数据库,在流行字段上有明确定义的索引,可以轻松处理它。
Relational database like SQLite, with well-defined indexes on popular fields will handle it easily.