MongoDB group by Functionalities

后端 未结 3 1024
不思量自难忘°
不思量自难忘° 2021-01-31 07:00

In MySQL

select a,b,count(1) as cnt from list group by a, b having cnt > 2;

I have to execute the group by function using h

3条回答
  •  夕颜
    夕颜 (楼主)
    2021-01-31 07:23

    You should use MapReduce instead. Group has its limitations.

    In future you'll be able to use the Aggregation Framework. But for now, use map/reduce.

提交回复
热议问题