매일기록

  • 분류 전체보기 (41)
    • 기타 (3)
    • python (12)
    • SQL-오라클 (8)
    • 자바스크립트 (1)
    • 몽고DB (2)
    • 자바 (3)
    • 프로젝트 (3)
      • mini (2)
      • final (1)
    • 코드테스트 (7)
    • AWS (0)
    • 개인공부 (2)
      • computational thinking (1)
      • statistics (1)
      • baekjoon (0)
    • AE(애프터이펙츠) (0)
  • 홈
  • 태그
  • 방명록
/ /

map reduce vs aggregation

Bomme 2021. 6. 16. 07:48
2021. 6. 16. 07:48

https://cinema4dr12.tistory.com/357

 

[MongoDB] Aggregation / Map Reduce

by Geol Choi | March 2, 2014 앞의 글에서 설명했던 집합(aggregation) 연산자인 count, distinct, group으로 할 수 있는 모든 것 뿐만 아니라 더 많은 일들을 맵리듀스를 통해 할 수 있습니다. 특히 다중의 서버..

cinema4dr12.tistory.com

 

https://docs.mongodb.com/manual/reference/map-reduce-to-aggregation-pipeline/

 

Map-Reduce to Aggregation Pipeline — MongoDB Manual

db.collection.mapReduce( , ,{query: ,sort: ,limit: ,finalize: ,out: { replace: , db: }}) db.collection.aggregate( [{ $match: },{ $sort: },{ $limit: },{ $project: { emits: { k: , v: } } },{ $unwind: "$emits" },{ $group: {_id: "$emits.k"},value: { $accumulat

docs.mongodb.com

 

aggregation은 몽고DB의 가장 큰 장점이고, 속도도 다른것보다 30퍼 이상 빠르다고 한다.

중요한건데 왜 이해를 못하니.................아 너무 복잡하고 어렵다...ㅜㅜ 

'몽고DB' 카테고리의 다른 글

docs나 참고 사이트  (0) 2021.06.15

+ Recent posts

Powered by Tistory, Designed by wallel
Rss Feed and Twitter, Facebook, Youtube, Google+

티스토리툴바