Introduction
Mongo Shell / CRUD
Schema Design
Indexing
Replication
Sharding
Analytics
Monitoring
Backup and Recovery
Additional Topics
NoSQL
Document-Oriented Database
Multi-platform
and Open-source
for (i=0; i < 5; i++) {
print("hello from the mongo shell");
}
> use <dbname>
> db.stats()
> db.stats
> db. // press TAB
{
"name" : "Michel",
"registered" : true,
languages : [ "c#", "python", "ruby" ],
"address" : {
"city" : "Londrina",
"state" : "PR"
"country" : "Brasil"
},
created_on : new Date()
}
No joins
No transactions
Horizontal Scalability
db.products.aggregate([
{$group:
{
_id: {
"maker":"$manufacturer"
},
max_price:{$max:"$price"}
}
}
])