creating and debugging mongo indexes

Developer from somewhere

To check index usage, start your mongod with -vv flags, example:

/usr/bin/mongod -vv --config /etc/mongod.conf

And then cat your logfile, probably in this location:

cat /var/log/mongodb/mongod.log

Look for the nscanned and nscannedObjects fields.