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

https://velopert.com/479

 

[MongoDB] 강좌 3편 Document Query(조회) – find() 메소드 | VELOPERT.LOG

이번 강좌에선 Document를 조회하는 메소드인 find() 메소드를 자세히 알아보도록 하겠습니다. Document 조회: db.COLLECTION_NAME.find(query, projection) 이 메소드에서 사용되는 매개변수에 대하여 알아봅시다

velopert.com

https://docs.mongodb.com/manual/tutorial/model-tree-structures-with-parent-references/

 

Model Tree Structures with Parent References — MongoDB Manual

Data Models > Data Model Examples and Patterns > Model Tree Structures This page describes a data model that describes a tree-like structure in MongoDB documents by storing references to "parent" nodes in children nodes.The Parent References pattern stores

docs.mongodb.com

 

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

map reduce vs aggregation  (0) 2021.06.16

+ Recent posts