[SERVER-596] Database wide statistics summing up counts/size of all collections Created: 02/Feb/10 Updated: 12/Jul/16 Resolved: 22/Feb/10 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Shell |
| Affects Version/s: | 1.2.2 |
| Fix Version/s: | 1.3.3 |
| Type: | New Feature | Priority: | Major - P3 |
| Reporter: | Niko Schmuck | Assignee: | Mathias Stearn |
| Resolution: | Done | Votes: | 3 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
Nothing special |
||
| Participants: |
| Description |
|
Instead of looping over all collections and call db.foo.stats() it would be great to have a function to retrieve the total number of objects of all collections, the number of collections and probably the netto/brutto (storage) size they consume. |
| Comments |
| Comment by auto [ 22/Feb/10 ] |
|
Author: {'login': 'RedBeard0531', 'name': 'Mathias Stearn', 'email': 'mathias@10gen.com'}Message: Database-wide dbstats command |
| Comment by Eliot Horowitz (Inactive) [ 11/Feb/10 ] |
|
db.stats()?
|