arunbandari / mongo-gui

A web-based MongoDB graphical user interface
http://20.106.238.56:4321/
MIT License
280 stars 84 forks source link

change deprecated stat() to db.command() #133

Open deflexable opened 4 months ago

deflexable commented 4 months ago

fix for #132

i have up-to 75 collections in a database.

calling db.collection.stats() simultaneously at Promise.all for this amount of collections causes mongodb to crash and exit

changing to db.command({ collStats: collection.name }) fixes it

db.collection.stats() has also been deprecated and removed