MongoDB in 3 Minutes
Valeri Karpov
Kernel Tools Engineer, MongoDB
www.thecodebarbarian.com
github.com/vkarpov15
@code_barbarian
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.
*
Storing Data As Objects
•MongoDB stores associative arrays:
{ name: “Val”, from: “MongoDB” }
{‘name’: “Val”,‘from’: “MongoDB” }
{“name”=>“Val”,“from”=>“MongoDB”}
new BasicDBObject(“name”, “Val”)
*
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
•
*
Using the Shell

•Now you can do inserts and queries!

*
Using a Driver - PyMongo
•Github: http://bit.ly/1jgPAYq (or Google it)
•Available on pip: pip install pymongo
•Recommend version v2.6.3

*
Using a Driver - PyMongo

*
Who Uses MongoDB?

*
Big Financial Firms

*
Sites You Visited Recently

*
Products That You’ll Be Using Today

*
Thanks for Listening!
Tech talk tomorrow @ 4pm
Slides on Twitter, @code_barbarian

*

Mongo db in 3 minutes BoilerMake

  • 1.
    MongoDB in 3Minutes Valeri Karpov Kernel Tools Engineer, MongoDB www.thecodebarbarian.com github.com/vkarpov15 @code_barbarian
  • 2.
    What makes MongoDBSpecial? •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 AsObjects •MongoDB stores associative arrays: { name: “Val”, from: “MongoDB” } {‘name’: “Val”,‘from’: “MongoDB” } {“name”=>“Val”,“from”=>“MongoDB”} new BasicDBObject(“name”, “Val”) *
  • 4.
    Getting Started withMongoDB •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 • *
  • 5.
    Using the Shell •Nowyou can do inserts and queries! *
  • 6.
    Using a Driver- PyMongo •Github: http://bit.ly/1jgPAYq (or Google it) •Available on pip: pip install pymongo •Recommend version v2.6.3 *
  • 7.
    Using a Driver- PyMongo *
  • 8.
  • 9.
  • 10.
  • 11.
    Products That You’llBe Using Today *
  • 12.
    Thanks for Listening! Techtalk tomorrow @ 4pm Slides on Twitter, @code_barbarian *