[SERVER-3438] Shell should have commas Created: 18/Jul/11  Updated: 29/May/12  Resolved: 18/Jul/11

Status: Closed
Project: Core Server
Component/s: Shell
Affects Version/s: None
Fix Version/s: None

Type: Improvement Priority: Major - P3
Reporter: Kushal Dave Assignee: Unassigned
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Participants:

 Description   

Can you reformat the output of stats and explain calls to include commas? If I wanted machine-readable data, I'd be using a driver from some other language or the HTTP endpoint. As a human, I spend a lot of time figuring out where the commas are. Thanks!



 Comments   
Comment by Eliot Horowitz (Inactive) [ 26/Jul/11 ]

Problem is then its not json...
Could add an option I guess

Comment by Kushal Dave [ 18/Jul/11 ]

Sorry, I meant commas IN the numbers, e.g.

storageSize: 2304
becomes
storageSize: 2,304

Comment by Scott Hernandez (Inactive) [ 18/Jul/11 ]

stats and explain return javascript objects which contain commas, and are formatter with indentation:

> db.test1.stats()
{
"ns" : "test.test1",
"count" : 1,
"size" : 36,
"avgObjSize" : 36,
"storageSize" : 2304,
"numExtents" : 1,
"nindexes" : 1,
"lastExtentSize" : 2304,
"paddingFactor" : 1,
"flags" : 1,
"totalIndexSize" : 8192,
"indexSizes" :

{ "_id_" : 8192 }

,
"ok" : 1
}

Generated at Thu Feb 08 03:03:04 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.