Skip to Main Content

MongoByte MongoDB Logo

Welcome to the new MongoDB Feedback Portal!

{Improvement: "Your idea"}
We’ve upgraded our system to better capture and act on your feedback.
Your feedback is meaningful and helps us build better products.

Status Submitted
Categories Database
Created by Guest
Created on Jul 9, 2021

Identification of unused/less used collections

As a DBA I'd like to identify unused collections so that I can remove them to optimize performance. As of now there doesn’t seem to be a direct way. One option could be to settup auditing or using logging (e.g. set the slow op timer to 0 so we log everything). An other might be to use the collstats command and frequently traverse all collections.. I'd be happy to get a direct method to show me unused resp. last usage of a collection. Based on DB level or even over all DBs.
  • Attach files
  • Guest
    Feb 12, 2025
    Really need this.