MongoDBã§ã®éè¨å¦çã®æ¦è¦ ä¸è¬çãªNoSQLãããã¯ãã¯ãRDBã®SQLã§ããGroup Byå¥ãSumé¢æ°ãªã©ã®éè¨æ©è½ãããã¾ãããéè¨ãå®æ½ããã«ã¯ãã¢ããªã±ã¼ã·ã§ã³å´ã§ç¬èªã«ã³ã¼ããæ¸ããã¨ã«ãªãã¾ãã ããããMongoDBã¯ãNoSQLã®ããã©ã¼ãã³ã¹ãç¶æããªãããRDBã©ã¤ã¯ãªæ©è½ãå®è£ ãããã¨ãéçºæ¹éã¨ãã¦æ²ãã¦ãããéè¨æ©è½ã«é¢ãã¦ããã¡æ©ãå®è£ ãã¦ãã¾ãããMongoDBã§éè¨å¦çãè¡ãæ¹æ³ã¯3ã¤ããã¾ãã 1. Aggregationãã¬ã¼ã ã¯ã¼ã¯ SQLã§ããGroup Byå¥ãSumé¢æ°ãæä¾ãã¾ããMongo Shellããã¯ã¨ãªã¨åãããã«å®æ½ã§ãã¾ããä¸é¨ã®å¦çï¼$groupã¨$sortï¼ã¯ã·ã£ã¼ãã£ã³ã°ã«å¯¾å¿ãã¦ãããåã·ã£ã¼ãã§å¦çãã¾ãã 2. MongoDBã®Map/Reduceæ©è½ Mapé¢æ°/Reduceé¢æ°ãç¬èªã«å®ç¾©ããéè¨å¦çã
{{#tags}}- {{label}}
{{/tags}}