Your SlideShare is downloading. ×
0
MongoDB
MongoDB
MongoDB
MongoDB
MongoDB
MongoDB
MongoDB
MongoDB
MongoDB
MongoDB
MongoDB
MongoDB
MongoDB
MongoDB
MongoDB
MongoDB
MongoDB
MongoDB
MongoDB
MongoDB
MongoDB
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×
Saving this for later? Get the SlideShare app to save on your phone or tablet. Read anywhere, anytime – even offline.
Text the download link to your phone
Standard text messaging rates apply

MongoDB

1,751

Published on

Published in: Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
1,751
On Slideshare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
Downloads
23
Comments
0
Likes
0
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide

Transcript

  • 1. SELECT * FROM old_sql_database WHERE db_name LIKE “%sql” Structured Query Language Since 1970
  • 2. No, NoSQL SELECT * FROM old_sql_database WHERE db_name LIKE “%sql”
  • 3. noSQL No JOINs + No complex transactions = Horizontal Scalability! NoSQL realy means: non-relational, next-generation operational datastores and databases
  • 4. http://www.mongodb.org/display/DOCS/Production+Deployments
  • 5. MongoDB bridges the gap between key-value stores (which are fast and highly scalable) and traditional RDBMS systems (which provide rich queries and deep functionality). MongoDB (from "humongous") is a scalable, high-performance, open source, document-oriented database. Written in C++, MongoDB features: • Document-oriented storage »JSON-style documents with dynamic schemas offer simplicity and power. • Full Index Support »Index on any attribute, just like you're used to. • Replication & High Availability »Mirror across LANs and WANs for scale and peace of mind. • Auto-Sharding »Scale horizontally without compromising functionality. • Querying »Rich, document-based queries. • Fast In-Place Updates »Atomic modifiers for contention-free performance. • Map/Reduce »Flexible aggregation and data processing. • GridFS »Store files of any size without complicating your stack. • Commercial Support »Commercial support, training, and consulting available.
  • 6. Easy to start # wget http://fastdl.mongodb.org/linux/mongodb-linux-i686-1.6.3.tgz # tar -zvxf mongodb-linux-i686-1.6.3.tgz # cd mongodb-linux-i686-1.6.3/bin # ./mongod --fork –logpath=/var/log/mongo.log
  • 7. Easy to use # ./mongo
  • 8. Easy to start # ./mongo MongoDB shell version: 1.6.3 connecting to: test >
  • 9. Easy to use # ./mongo MongoDB shell version: 1.6.3 connecting to: test > db.foo.save( { a : 1 } ) >
  • 10. Easy to use # ./mongo MongoDB shell version: 1.6.3 connecting to: test > db.foo.save( { a : 1 } ) > db.foo.find()
  • 11. Easy to use # ./mongo MongoDB shell version: 1.6.3 connecting to: test > db.foo.save( { a : 1 } ) > db.foo.find() { "_id" : ObjectId("4ccb4699583566419bd0f443"), "a" : 1 } >
  • 12. Flexible “Schemas” # ./mongo MongoDB shell version: 1.6.3 connecting to: test > db.foo.save( { a : 1 } ) > db.foo.find() { "_id" : ObjectId("4ccb4699583566419bd0f443"), "a" : 1 } > db.foo.save( { a : 1, b: 2} ) >
  • 13. Flexible “Schemas” # ./mongo MongoDB shell version: 1.6.3 connecting to: test > db.foo.save( { a : 1 } ) > db.foo.find() { "_id" : ObjectId("4ccb4699583566419bd0f443"), "a" : 1 } > db.foo.save( { a : 1, b: 2} ) > db.foo.find()
  • 14. Flexible “Schemas” # ./mongo MongoDB shell version: 1.6.3 connecting to: test > db.foo.save( { a : 1 } ) > db.foo.find() { "_id" : ObjectId("4ccb4699583566419bd0f443"), "a" : 1 } > db.foo.save( { a : 1, b: 2} ) > db.foo.find() { "_id" : ObjectId("4ccb4699583566419bd0f443"), "a" : 1 } { "_id" : ObjectId("4ccb4780583566419bd0f444"), "a" : 1, "b" : 2 } >
  • 15. Dynamic Quries > db.foo.find({b:2}) { "_id" : ObjectId("4ccb4780583566419bd0f444"), "a" : 1, "b" : 2 }
  • 16. Dynamic Quries > db.foo.find({b:2}) { "_id" : ObjectId("4ccb4780583566419bd0f444"), "a" : 1, "b" : 2 } Last 10 Pages > db.pages.find({date:-1}).limit(10)
  • 17. Dynamic Quries > db.foo.find({b:2}) { "_id" : ObjectId("4ccb4780583566419bd0f444"), "a" : 1, "b" : 2 } Last 10 Pages > db.pages.find({date:-1}).limit(10) Page since 1 October > oct_1 = new Date(2010, 10, 1) > db.pages.find({date: {$gt: oct_1}}
  • 18. Focus on performance depth of functionality scalability&performance •memcached •key/value •RDBMS
  • 19. http://www.mongodb.org http://try.mongodb.org http://nosql.mypopescu.com
  • 20. Мартин Лазаров @mlazarov lazarov@mail.bg http://marto.lazarov.org

×