0

I would like to upon user request graph median values of many documents. I'd prefer not to transfer entire documents from the database to my application solely for purposes of determining median values.

I understand that development is still planned for a median aggregator in MongoDB, however I see that currently the following operations are supported:

Short of editing mongo source code, Is there any reasonable way I can combine these operations to obtain median values; for example, to sort values, count them, and limit to return median values?

cchantep
  • 9,118
  • 3
  • 30
  • 41
Daniel
  • 855
  • 10
  • 21
  • Does this answer your question? [Calculate the median in MongoDB aggregation framework](https://stackoverflow.com/questions/20456095/calculate-the-median-in-mongodb-aggregation-framework) – nimrod serok Aug 24 '23 at 19:06

1 Answers1

0

It appears that editing Mongo source code is the only solution.

Daniel
  • 855
  • 10
  • 21