MongoDB Tip: Create Short Field Names
Posted by: The MongoDB NoSQL Database Blog,
on 27 Feb 2013 |
View original | Bookmarked: 0 time(s)
MongoDBs dynamic schema and document-based data structure offer a lot of flexibility in development, but its important to understand how your document construction can affect available memory in your application. Its incredibly valuable to optimize storage size of your documents, and one easy way to do this is by shortening your field names.MongoDB stores all field names in each BSON document. In most cases the space is inconsequential, but when your data set grows to include millions of documents...