我遇到过各种各样的情况,我希望以一种可以轻松查询的方式存储一些格式化的数据。
例如
$ cat so.txt
"question_id": 58640,
"tags": ["polls", "fun", "quotes"],
"title": "Great programming quotes"
"question_id": 184618,
"tags": ["polls", "fun", "comment"],
"title": "What is the best comment in source code you have ever encountered?"
"question_id": 3734102,
"tags": ["c++", "linux", "exit-code"],
"title": "Why cant' I return bigger values from main function ?"
"question_id": 2349378,
"tags": ["communication", "terminology", "vocabulary"],
"title": "New programming jargon you coined?"
"question_id": 3723817,
"tags": ["open-source", "project-management", "failure", "fail"],
"title": "How to make an open source project fail"
"question_id": 3699150,
"tags": ["testing", "interview-questions", "job-interview"],
"title": "Interview question please help"
$
一个简单的查询可以用标签“C ++”显示问题的标题。
这些是要求
您为此目的建议使用什么DBMS?
答案 0 :(得分:1)
您发布的代码看起来像json。如果这是您主要保存数据的格式,那么像couchdb这样的东西可能适合您吗?我很喜欢它,所以我有偏见:)
否则,“仅支持我的轻型数据库”的传统答案是SQLite。