Azure DocumentDB - Group By Aggregates

前端 未结 2 1421
既然无缘
既然无缘 2021-01-03 00:41

I have a colleciton in Elastic Search where we store events, and aggregate these in reports such as:

  • number of events/day over the last week
2条回答
  •  情话喂你
    2021-01-03 01:42

    For information, DocumentDB does now support Aggregates (as of March 8th 2017), for the following operations:

    SUM and AVG for numeric values, COUNT, MIN, and MAX over numbers, strings, Booleans, and nulls.

    Official Microsoft documentation has been updated, and can be found here.

    Please note that Grouping support has not been added to Aggregate Functions; a User Voice issue has been opened to request this, and can be upvoted here.

提交回复
热议问题