Downloaded 21 times










![程式實作Create document ● npm install mongodb var doc1 = {'hello':'doc1'}; var doc2 = {'hello':'doc2'}; var lotsOfDocs = [{'hello':'doc3'}, {'hello':'doc4'}]; collection.insert(doc1); collection.insert(doc2, {w:1}, function(err, result) {}); collection.insert(lotsOfDocs, {w:1}, function(err, result) {});](https://image.slidesharecdn.com/nodejs-nosqlmongodb-131019144643-phpapp02/75/Nodejs-no-sql-mongodb-11-2048.jpg)



![Map-Reduce 什麼是 Map ● Function ● 平行獨立,不影響原 Collection MAP Collection [{key: value}, {key: value}, {key: value}]](https://image.slidesharecdn.com/nodejs-nosqlmongodb-131019144643-phpapp02/75/Nodejs-no-sql-mongodb-15-2048.jpg)






This document discusses NoSQL and MongoDB. It introduces NoSQL and its characteristics like being non-SQL, horizontally scalable, schema-less, and eventually consistent. It then covers MongoDB specifically, including that it is open source, a document database written in C++ using BSON. Examples are provided of creating, querying, updating, and deleting documents using Node.js and MongoDB. MapReduce is also introduced as a way to parallel process data across collections. Finally, some well-known uses of NoSQL by companies are listed.