Slide 1

Slide 1 text

No content

Slide 2

Slide 2 text

from "hu_mongo_us"

Slide 3

Slide 3 text

Who is behind MongoDB company formerly 10gen company http://www.mongodb.org/

Slide 4

Slide 4 text

Who to follow MongoDB @MongoDB Eliot @eliothorowitz Jeremy Mikola @jmikola @MongoHQ @MongoLab @ObjectRocket

Slide 5

Slide 5 text

No content

Slide 6

Slide 6 text

DATABASE LANDSCAPE

Slide 7

Slide 7 text

JSON/BSON

Slide 8

Slide 8 text

JS console ➜ bin ./mongo MongoDB shell version: 2.6.3 connecting to: test > var a = 10 > var b = 20 > a + b 30 >

Slide 9

Slide 9 text

Entities Relational DB MongoDB database database table collection row document index index primary key _id Sharding partition shard partition key shard key

Slide 10

Slide 10 text

Special _id type 5033ea5c e84df1 110f 000001 Timestamp Hostname PID Sequence 12-byte, binary string Easily generated in cluster environments Timestamp prefix useful for sorting

Slide 11

Slide 11 text

Document Example { "_id": 1, "title": "Praesent ante dui", "body": "Lorem ipsum…", "author": { "name": "Bob", "email": "[email protected]" }, "comments": [ { "body": "Morbi libero erat…", "author": { "name": "John", "email": "[email protected]" } }, { "body": "Dapibus quis…", "author": { "name": "Tom", "email": "[email protected]" } } ], "tags": [ "luctus", "rhoncus" ] }

Slide 12

Slide 12 text

No content

Slide 13

Slide 13 text

Document model Flexible schemas Scalability and performance Features (aggregation, geo, GridFS) MONGODB: THE GOOD PARTS

Slide 14

Slide 14 text

Limited atomicity Consistency is a trade-off Query language limitations Concurrency (improving) MONGODB: THE BAD PARTS

Slide 15

Slide 15 text

mongod mongo Binaries mongos mongodump mongorestore mongoexport mongoimport

Slide 16

Slide 16 text

DEMO TIME

Slide 17

Slide 17 text

Replication

Slide 18

Slide 18 text

Sharding

Slide 19

Slide 19 text

Aggregation Framework

Slide 20

Slide 20 text

Questions?