Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8527957
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T08:41:41+00:00 2026-06-11T08:41:41+00:00

As code for my project is evolving, new indexes are being put in place

  • 0

As code for my project is evolving, new indexes are being put in place and I am sure some old ones are no longer necessary. However before I just drop them to see if anything slows down or not, I’d prefer if there is a more programmatic or analytic way to determine if an index is being used any more.

I don’t see anything in the system.indexes collection, but ideally there is some stats on index accesses somewhere! Is this the case?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T08:41:42+00:00Added an answer on June 11, 2026 at 8:41 am

    Run your db.collection.find(...) queries with .explain() tacked onto the end. That is the single most useful way to see how queries are running: http://www.mongodb.org/display/DOCS/Explain

    You can also turn on profiling, and the profile log entries give you index usage for each query profiled. There aren’t any aggregate stats, as of yet, though. In particular, it won’t give you which indexes aren’t being used, only the index that is being used (for each query). (Edit: I must have been imagining that–you have to get the query from the profiler and then run explain on it. Kind of painful manually.) http://www.mongodb.org/display/DOCS/Database+Profiler

    Update:
    Just saw this from mongolab; looks like an interesting new project along these lines: http://blog.mongolab.com/2012/06/introducing-dex-the-index-bot/

    Update:
    I created a script to check for indexes that aren’t used, via the profiler:
    https://github.com/wfreeman/indexalizer

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

In a mixed code project (VB and C#) we were debugging some old Visual
I'm trying to parse some css files using a code project parser found here
I'm new to android programming. I'm trying to include code from a non-android project
I have a little private Google code project. For a SCM I use Mercurial.
I used that article on code project to create my own Captcha image, is
I am using GCC 4.7 and compiling my C++ code-project. The code consists of
I'm working with PDFs in VB.NET using a DLL I found on code project:
I had a weird problem, where I opened up a source code project for
i have a code generator project i would like to offer like open source,
I am going through my project code base, which consits of libraries and applications.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.