Company
Date Published
Author
MongoDB
Word count
286
Language
English
Hacker News points
None

Summary

Storage-viz: Storage Visualizers and Commands for MongoDB` is a suite of web-based visualizers and experimental database commands designed to help understand how MongoDB utilizes storage and organizes `btrees`. When a collection is created, an on-disk extent is allocated to store documents, and new extents are created as needed. The `storageDetails` command extracts information about disk storage usage, while the graphical representation provides an easy-to-read view of the data in RAM. For indexing, `Storage-viz` collects statistics related to `btree` layouts using the `_indexStats_` command. The tool is resource-intensive and should be used on a non-production server with a snapshot of datafiles. It was designed by 10gen's intern Andrea Lattuada and tested in collaboration with Server Engineers, making it available for the MongoDB community to use.