BSON
来源:互联网 发布:数据库方面的面试题 编辑:程序博客网 时间:2024/06/05 11:45
BSON [bee · sahn], short for BinaryJSON, is a binary-encoded serialization of JSON-like documents. Like JSON, BSON supports the embedding of documents and arrays within other documents and arrays. BSON also contains extensions that allow representation of data types that are not part of the JSON spec. For example, BSON has a Date type and a BinData type.
BSON can be compared to binary interchange formats, like Protocol Buffers. BSON is more "schema-less" than Protocol Buffers, which can give it an advantage in flexibility but also a slight disadvantage in space efficiency (BSON has overhead for field names within the serialized data).
BSON was designed to have the following three characteristics:
Lightweight
Keeping spatial overhead to a minimum is important for any data representation format, especially when used over the network.
Traversable
BSON is designed to be traversed easily. This is a vital property in its role as the primary data representation forMongoDB.
Efficient
Encoding data to BSON and decoding from BSON can be performed very quickly in most languages due to the use of C data types.
What is the point of BSON when it is no smaller than JSON in many cases?
BSON is designed to be efficient in space, but in many cases is not much more efficient than JSON. In some cases BSON uses even more space than JSON. The reason for this is another of the BSON design goals: traversability. BSON adds some "extra" information to documents, like length prefixes, that make it easy and fast to traverse.
BSON is also designed to be fast to encode and decode. For example, integers are stored as 32 (or 64) bit integers, so they don't need to be parsed to and from text. This uses more space than JSON for small integers, but is much faster to parse.
http://bsonspec.org/
- bson
- BSON
- BSON
- BSON
- Bson
- BSON是什么
- BSON规范
- BSON入门
- BSON简介
- BSON TYPE
- BSON结构
- BSON能走多远
- BSON和MongoDB
- BSON格式解释
- JSON到BSON
- Mongodb 数据结构-BSON
- MongDB 导入BSON文件
- BSON格式解释
- url传值出现中文乱码的另类解决办法
- 基于MCP2515的Linux CAN总线驱动程序设计(一)
- scanf()的缓存问题
- sgu 403
- 计算机视觉的一些测试数据集和源码站点
- BSON
- Word 2010 自定义首行缩进的快捷键
- Linux 与 CONE NAT 和 Symmetric NAT .
- 移动互联网,拿什么追赶百度、腾讯?
- 润乾报表的返回按钮
- aix系统内部各种文件类型(后缀)
- 影响Flash文件大小的因素
- JSP usebean的问题
- 学点设计模式-工厂方法模式