Marvin K wrote:
> I read that MongoDB stores data in BSON instead of JSON for
> performance reasons. It's clear that binary data would take up less
> disk space.
>
> However, this guy did some tests and found BSON to be slower, in
> fact: https://gist.github.com/263161
>
Does it matter in a real way for the real world?
BSON in the the internal database format and data must be serialized
or deserialized in every case.
- -aj
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iQGUBAEBAgAGBQJPNh90AAoJEADcfz7u4AZjNeYLv2TirZmDCtl2N6cVyqGaZO7N
cSRcrAp89xAZfK5ihxtIcwCAqbY4sBVAYx5k6xvMo1AM6YSDUawNkqhVoSd2Mxtu
qv0VR5Wm9QocP+x19aAO3rmlOcTVWiupNpGHXOJavXwHjZyKx1Uh4lFlRNjY3kDR
fGcyjYtdYpQvfmWV4ehqpU7/sFdJM5t2RdiCyE3eciqpLqQZaX24b2TI6QL8jmZm
6FODlA+zbWojczHoBA4r0pP7U9RdtwA1NUDSRKHtBDWtWciirXFDq/1U6UdUI5ky
T3wpaKtMXLF5TAafMO5yKXEH6KWBJTY7aqBtL04Q19Qc15V0XdaqSFUuhJgLL9Mn
FTsYcA29WTFMLEUT9vlF0PYiCjQPBScuWa2v8SEfCkCy5pMDIOfy1KhNcQBkOqi5
nw7S46HWeAegOnSO1mioEFwG7EZhL7NkIao5WdwVgX75xP8/O1oyvMyvJFuYXrfL
qhqLRmOPgdD4Mqh97yQhioc8LdAEsJI=
=/Iwi
-----END PGP SIGNATURE-----
--
You received this message because you are subscribed to the Google Groups "mongodb-user" group.
To post to this group, send email to mongod...@googlegroups.com.
To unsubscribe from this group, send email to mongodb-user...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/mongodb-user?hl=en.
In general BSON was not developed explicitly to be smaller or faster
but more expressive and easier to encode/decode. The data types
available in BSON are a superset of JSON as seen here:
http://bsonspec.org/#/specification
Are you interested in using BSON outside of the database? If so there
are lots of people doing this in places where MongoDB is not involved
at all.