3

Even using mongoose.set('debug', true); does not explain if queries used indexes or not, How can I know if they did?

omidh
  • 2,526
  • 2
  • 20
  • 37

1 Answers1

1

Perhaps you can use this mongoose plugin mongoose-explain. If not, then you will have to continue to do mongoose.set('debug', true); and copy and paste logged queries to the mongodb shell and issue an explain() there.

Corey Berigan
  • 614
  • 4
  • 14