Uploaded image for project: 'Java Driver'
  1. Java Driver
  2. JAVA-2637

access count of compound index in $indexStats java driver

    XMLWordPrintableJSON

Details

    • Icon: Task Task
    • Resolution: Gone away
    • Icon: Minor - P4 Minor - P4
    • None
    • None
    • Query Operations
    • None
    • CentOS

    Description

      I met a strange phenomenon, hope someone can provide a little clue to answer.
      I added a compound index to mycollection. After using db.mycollection.find().Explain() in the shell, I can see that the index appears in WiningPlan, that is, the index is used. Checking by db.mycollection.aggregate ([{$ indexStats: {}}]) after find(), I can see that the index access counter has increased. Using python with pymongo also has the same result. Only java with MongoDB Java Driver (http://mongodb.github.io/mongo-java-driver/) can not make the access counter increase. It can not be determined that java uses that index. What can I do to ensure java use the index?

      Attachments

        Activity

          People

            Unassigned Unassigned
            paullin Paul Lin
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: