2 ms·
Also mongodb likes to use a lot of storage space to actually store data - we see using at twice the number of bytes as the same data in JSON. The solutions are
by rogerbinns 13y ago
Also mongodb likes to use a lot of storage space to actually store data - we see using at twice the number of bytes as the same data in JSON.
The solutions are obvious - store it compressed https://jira.mongodb.org/browse/SERVER-164 https://jira.mongodb.org/browse/SERVER-164 - and tokenize repeated values like field names https://jira.mongodb.org/browse/SERVER-863 https://jira.mongodb.org/browse/SERVER-863 - note how many years those have been open without progress!
Not that it really matters - mongodb's single per database lock means you'll have trouble inserting, updating or deleting data quickly enough for web scale!