MongoDB – Indexing Limitations In this chapter, we will learn about Indexing Limitations and its other components. Extra Overhead Every index occupies some space as well as causes an overhead on each insert, update and delete. So if you rarely use your collection for read operations, it makes sense not to use indexes. RAM Usage […]
Author Archives: user
MongoDB – ObjectId We have been using MongoDB Object Id in all the previous chapters. In this chapter, we will understand the structure of ObjectId. An ObjectId is a 12-byte BSON type having the following structure − The first 4 bytes representing the seconds since the unix epoch The next 3 bytes are the machine […]
MongoDB – Advanced Indexing we have inserted the following document in the collection named users as shown below − db.users.insert( { “address”: { “city”: “Los Angeles”, “state”: “California”, “pincode”: “123” }, “tags”: [ “music”, “cricket”, “blogs” ], “name”: “Tom Benzamin” } ) The above document contains an address sub-document and a tags array. Indexing Array […]