4 ms·
why not just do a covered query with aggregate pipeline via $match and $project, hitting all your indexes, then pipe the results to $count.
by Beefin 6y ago
why not just do a covered query with aggregate pipeline via $match and $project, hitting all your indexes, then pipe the results to $count.