When I run an aggregation through the mongo CLI it returns almost instantly, but when i run it through a Client (for Example: Javascript) it is much slower.
Is there any reason for this? Maybe I'm missing something.