2. What makes MongoDB Special?
•Open source, 100% free
•Store data as objects, not columns
•Sophisticated query engine and indices
•Horizontal scalability built in
•Drivers - write code in your favorite language
And more: Go, C++, C, Perl, PHP, etc.
*
3. Storing Data As Objects
•MongoDB stores associative arrays:
{ name: “Val”, from: “MongoDB” }
{‘name’: “Val”,‘from’: “MongoDB” }
{“name”=>“Val”,“from”=>“MongoDB”}
new BasicDBObject(“name”, “Val”)
*
4. Getting Started with MongoDB
•Setting up MongoDB is simple:
•OSX: brew install mongodb
•Ubuntu: http://bit.ly/1eF0ZO8
•Windows: get zip from mongodb.org/downloads
•
•And run mongod, the MongoDB core server
•
*