Counting the number of documents in a partial index

One thing to note is that collStats counters are reset to 0 if the mongod process is restarted, so not a reliable source.

1 Like