使用 JSON 作为存储/传输格式的数据库

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/853265/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-03 17:15:24  来源:igfitidea点击:

Databases using JSON as storage/transport format

jsonmongodbcouchdbdbslayerdatabase

提问by Ionu? G. Stan

How many database systems there are that use JSON for storage or transport? I know of:

有多少数据库系统使用 JSON 进行存储或传输?我知道:

I remember I saw yet another vendor in a SO user's profile. That systems was using what they called binary JSON, but I can't remember the name of the product.

我记得我在 SO 用户的个人资料中看到了另一个供应商。那个系统使用的是他们所谓的二进制 JSON,但我不记得产品的名称。

Lately, it appears that more and more DB projects are looking towards JSON for persistence storage. Some of them are even embracing HTTP as a transport layer.

最近,似乎越来越多的 DB 项目将 JSON 用于持久性存储。他们中的一些人甚至将 HTTP 作为传输层。

采纳答案by Sam Corder

MongoDb is the one that uses a binary JSON storage format. I don't know if there is another that is document oriented. Most of the others are key value stores and can only retrieve an object based on one key.

MongoDb 是使用二进制 JSON 存储格式的一种。我不知道是否还有另一个面向文档的。其他大多数是键值存储,只能基于一个键检索对象。

回答by Jason

Persevere is another DB that is loaded up with JSON:

Persevere 是另一个加载了 JSON 的数据库:

http://www.persvr.org/

http://www.persvr.org/

Primary transport is JSON HTTP/REST

主要传输是 JSON HTTP/REST

Data is stored as JSON

数据存储为 JSON

It has a native JS/JSON client for running directly from the browser.

它有一个原生的 JS/JSON 客户端,可以直接从浏览器运行。

If you want a schema then it is defined using JSON

如果你想要一个模式,那么它是使用 JSON 定义的

回答by alzclarke

postgresql recently added a json datatype

postgresql 最近添加了一个 json 数据类型

postgre json datatype

postgre json 数据类型

回答by nairboon

MongoDB does not use JSON but BSON.

MongoDB 不使用 JSON,而是使用 BSON。

RethinkDBis a document oriented database with a JSON data model, which supports sharding and replication

RethinkDB是一个面向文档的数据库,采用 JSON 数据模型,支持分片和复制

回答by Syd

Take a look at Basho's Riak. It has a number of things in common with CouchDB: Erlang-based, Javascript MapReduce API, HTTP transport, JSON document format and multi-master replication. It doesn't aim to be quite as simple as CouchDB (CouchDB is more "opinionated"), but they give you a lot of options for adjusting CAP parameters to meet the needs of your application, per-write.

看看芭蕉的 Riak。它与 CouchDB 有很多共同点:基于 Erlang、Javascript MapReduce API、HTTP 传输、JSON 文档格式和多主复制。它的目标并不像 CouchDB 那样简单(CouchDB 更“自以为是”),但它们为您提供了许多选项来调整 CAP 参数以满足您的应用程序的需求,每次写入。

回答by sosandstrom

If you want to store your JSON document in AppEngine's Datastore, you can have a look at Ubud-db, https://bitbucket.org/f94os/ubud-db/wikiUbud-db is a Document store on AppEngine with a REST-JSON API.

如果您想将 JSON 文档存储在 AppEngine 的数据存储中,您可以查看 Ubud-db,https://bitbucket.org/f94os/ubud-db/wiki Ubud-db 是 AppEngine 上带有 REST-的文档存储- JSON API。