mingo-app / mingo

Found a bug? have a FR ?
59 stars 3 forks source link

[FR] Show index sizes in Indexes tab #600

Closed brianlukoff closed 9 months ago

brianlukoff commented 1 year ago

Is your feature request related to a problem? Please describe. Would love to see index sizes in the Indexes tab for a collection.

Describe the solution you'd like See above.

Describe alternatives you've considered Alternative is to manually run db.[collectionName].stats({ indexDetails: true }) in mongosh.

tothradoslav commented 9 months ago

By "index size" you mean the number of bytes used? Because that is in the table as a column. Or do you mean something else?

This is the new way of getting index stats: https://www.mongodb.com/docs/manual/reference/operator/aggregation/collStats/#mongodb-pipeline-pipe.-collStats

brianlukoff commented 9 months ago

Right, exactly! I don't have that column, though -- is there a way to add additional columns?

image
tothradoslav commented 9 months ago

I can't remember, but maybe this has been added already, just not released, because I see this in my version. I'll mark this as ready for release.

tothradoslav commented 9 months ago

We have just released a release candidate with this issue corrected. Please check it out here: https://github.com/mingo-app/mingo/releases/tag/v.1.13.4

brianlukoff commented 9 months ago

Thanks -- just tried it and the RC works well!