We need to optimize a MongoDB query using populate and aggregate functions combined.
During the application loading tests, average response time is eight seconds per client (1000 clients per second).
We know that MongoDB is faster than that. Response object is an array which has 20 datas. So, the mongo query must be optimized.
Details about query will be sent via chat.