我遇到了各种各样的情况,我想以一种便于查询的方式存储一些格式化的数据。
例如
$ 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?
发布于 2010-09-18 19:45:37
你发布的代码看起来像json。如果这是您主要保存数据的格式,那么可能像couchdb这样的东西对您来说是理想的吗?我非常喜欢它,所以我有偏见:)
否则,“只支持我的轻型数据库”的传统答案是SQLite。
https://stackoverflow.com/questions/3743219
复制相似问题