bobthecow / genghis

The single-file MongoDB admin app
http://genghisapp.com
MIT License
1.45k stars 166 forks source link

Show document size #152

Open mattsintellectualproperty opened 10 years ago

mattsintellectualproperty commented 10 years ago

Hopefully isn't too crazy of a request, since it looks like you are aggregating them per collection anyways. Maybe just pop it in right next to the timestamp? In the single document view?

bobthecow commented 10 years ago

I'm actually not aggregating them. I'm piggybacking on the data Mongo already collects about document size in collections. I think that's what it uses for calculating padding when inserting new documents.

mattsintellectualproperty commented 10 years ago

Okay, wasn't sure. Was thinking it would be cool to add something like this when in the single doc view, and just find based on the ObjectId. http://docs.mongodb.org/manual/reference/command/dataSize/

Thanks though!

bobthecow commented 10 years ago

Let's keep this open as a feature request... I wanted to include more detailed stats in a lot of views (with a time delay or explicit click, to make sure we're not gathering all stats about all parts of the system on every request). So we'll keep this one as one possibility :)