문제

when should I use BSON instead JSON? the advantage is just storage size?

I've read that foursquare stores checking data in BSON.

is this good for small data only? is there any limitation about querying, aggregating or something else?

도움이 되었습니까?

해결책

Using BSON instead JSON will unlikely help with MongoDb because it already uses BSON everywhere. MongoDb is not tied to human readable JSON.

See Documents section in documentation

Document Format MongoDB stores documents on disk in the BSON serialization format. BSON is a binary representation of JSON documents, though contains more data types than does JSON. For the BSON spec, see bsonspec.org. See also BSON Types.

The mongo JavaScript shell and the MongoDB language drivers translate between BSON and the language-specific document representation.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top