3 ms·
With respect to #3, is this happening because field names aren't getting compressed when stored as BSON objects? P.S. Your ebook and tutorial are great resourc
by iqster 15y ago
With respect to #3, is this happening because field names aren't getting compressed when stored as BSON objects?
P.S. Your ebook and tutorial are great resources. Thanks for sharing!!
- jgmmo 15y agoNo, it's b/c of the document-oriented db system. All the field names are in every single one of the entries. Ex: If in every instance of 'Title' you had 't' instead. and every 'Post' you had 'p' instead --- it can add up to alot.
- latch 15y agoIt is a property of document dbs, though I'm pretty sure implementations could internalize field names. Imma guess 99% of all Mongo collections ever created are pretty damn structured. When creating a collection, you could specify {internalize: false} or something to disable this when you do lean heavily on the schemaless behavior, but otherwise I'd like to see MongoDB take care of this.