[SERVER-23836] add $count stage to aggregation Created: 20/Apr/16  Updated: 14/Mar/17  Resolved: 21/Jun/16

Status: Closed
Project: Core Server
Component/s: Aggregation Framework
Affects Version/s: None
Fix Version/s: 3.3.9

Type: New Feature Priority: Major - P3
Reporter: Martin Bligh Assignee: Sally McNichols
Resolution: Done Votes: 0
Labels: eng-s, neweng, stage
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
is depended on by CSHARP-1743 Add support for $count stage to IAggr... Closed
is depended on by JAVA-2277 Add builder for $count aggregation stage Closed
Documented
is documented by DOCS-8144 Document new $count aggregation stage... Closed
Related
related to DRIVERS-297 Aggregation Framework Support for 3.4 Closed
related to SERVER-6365 New aggregation pipeline operator: $c... Closed
Backwards Compatibility: Fully Compatible
Sprint: Query 16 (06/24/16)
Participants:

 Description   

Syntactic sugar for

{$group:{_id:null, count:{$sum:1}}}

Seems not user friendly.



 Comments   
Comment by Githook User [ 20/Jun/16 ]

Author:

{u'username': u'smcnichols', u'name': u'Sally McNichols', u'email': u'sally.mcnichols@mongodb.com'}

Message: SERVER-23836 add $count stage to aggregation
Branch: master
https://github.com/mongodb/mongo/commit/8d69ac4eb57b4ddb3e29111fac24ae71c1cfd0a0

Comment by David Storch [ 20/Apr/16 ]

We could also consider re-implementing the count command in terms of the proposed $count stage.

Generated at Thu Feb 08 04:04:36 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.