Mongodb aggregation is supposed to be used with critical Http requests

I am trying to figure out the purpose of the mongodb aggregation framework. What I mean is, I want to figure out if it is specified as being used by DBAs to get meaning from large datasets, or is it specified for use in application code for real-time queries?

Can a large database aggregate be used to respond to critical HTTP requests?

+3


source to share


1 answer


In short: yes. But keep the basic I / O dynamics and physics.

In general, consider the aggregation structure in the same way as the traditional GROUP BY.



It can be used to get analytic information about datasets, both with the help of administrators and users / applications. Depending on the amount of data being analyzed, the complexity / size of the data, the complexity of the query, and the hardware (machine and storage) determine the performance profile. Some aggregates may take as little as 10 seconds. others last longer. The more you can filter out the stuff to be parsed by the optimized index using the $ match operator, the faster the rest of the aggregation will run.

+3


source







All Articles