© 2026 LinearBytes Inc.
Search posts, tags, users, and pages
Charlie Jose
MongoDB enthusiast, JavaScript lover
Now i want to find whether how much memory is consumed by this indexing. db.collection.stats() gives me the index size, but I wonder how the size is computed.
Kareem Jose
A fool.
MongoDB uses B trees to store indexes, from whatever I could find out.
So, the size of each node in the B tree, cumulatively would add up to be the size of the index.
Kareem Jose
A fool.
MongoDB uses B trees to store indexes, from whatever I could find out.
So, the size of each node in the B tree, cumulatively would add up to be the size of the index.