Mongodb open data day 2014

  • 591 views
Uploaded on

MongoDB Presentation given at RDU Open Data Day, 2014

MongoDB Presentation given at RDU Open Data Day, 2014

More in: Technology
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Be the first to comment
    Be the first to like this
No Downloads

Views

Total Views
591
On Slideshare
0
From Embeds
0
Number of Embeds
0

Actions

Shares
Downloads
19
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. MongoDB
  • 2. AGENDA • Introduction • NoSQL • MongoDB • Concepts/Fundamentals • Working with MongoDB (hands-on)
  • 3. WHO AM I? • Software Developer/Architect/Consultant for 15 years. • Working in the .NET stack (mainly in the web space) since 2001. • Started getting interested in MongoDB about 2-3 years ago. David Green @davidjeet about.me/davidgreen24
  • 4. WHERE DOES THIS TALK FIT IN?
  • 5. CLASSIC N-TIER ARCHITECTURE User Interface (UI) Business Layer/Service You Are Here Data Layer
  • 6. AGENDA • Introduction • NoSQL • MongoDB • Concepts/Fundamentals • Working with MongoDB (hands-on)
  • 7. WHAT IS NOSQL?
  • 8. All Databases Relational Databases (Oracle, mySQL, Postgres, SQL Server) NoSQL (MongoDB, Redis, Neo4J, Cassandra, Hbase)
  • 9. What is NoSQL? Martin Fowler: Some characteristics are common amongst these databases, but none are definitional. Model not using the SQL language) Designed to run on large clusters Not using the relational model Open source No schema enforced
  • 10. NoSQL Database Families* Key-value Columnar • HBase • Cassandra • Hypertable Document • MongoDB • CouchDB • RavenDB • • • • Redis Riak Memcached Voldemort Graph • Neo4J • GiraffeDB • InfiniteGraph * “Seven Databases in Seven Weeks”, Eric Redmond and Jim R. Wilson
  • 11. memCached X MongoDB X SQL Server X
  • 12. WHO USES THIS NOSQL STUFF?
  • 13. AGENDA • Introduction • NoSQL • MongoDB • Concepts/Fundamentals • Working with MongoDB (hands-on)
  • 14. WHAT IS MONGODB?
  • 15. WHAT IS MONGODB? Open source NoSQL database Documentoriented Stores JSON-like documents (dynamic schemas) Includes a strong query language (Javascript) Powerful, flexible indexing (including geospatial) Sharding and replication Cross-Platform (many drivers – e.g. C#, Java, Python, Ruby)
  • 16. Why MongoDB? 1. Open Source - no licensing fees. 2. Relatively developer friendly and easy to ramp up. 3. Fast reads.
  • 17. MongoDB Search Trends – Google
  • 18. WHEN NOT TO USE MONGODB When one or more of the following are insurmountable even after modeling: • Relationships/Join • Transactions • Write Safety (High volume of writes/sec. scenarios)
  • 19. AGENDA • Introduction • NoSQL • MongoDB • Concepts/Fundamentals • Working with MongoDB (hands-on)
  • 20. MONGODB FUNDAMENTALS
  • 21. 10GEN QUICK REFERENCE CARD
  • 22. MONGODB - JSON & BSON  JSON  Number  String  Boolean  Array  Object  null  BSON = JSON +   DateTime  Byte Arrays  GeoSpatial
  • 23. EXAMPLE BSON DOCUMENT { } "_id" : ObjectId("5218282429f4a04648f64870"), "Title": "What's new in MongoDB 2.4", "Content" : "MongoDB 2.4 represents hundreds of improvements and features driven by user requests...", "Author" : { "FirstName" : "David", "LastName" : "Green" }, "CreatedOn" : ISODate("2013-07-19T01:30:52Z"), "LastModifiedOn" : ISODate("2013-08-24T03:27:32Z"), "Comments" : [], "Tags" : [ ”Databases", ”Features", "NoSQL", "MongoDB" ]
  • 24. INSTALLING MONGO
  • 25. MONGODB DATABASE INSTALL Starting Up the Server
  • 26. USING THE CONSOLE
  • 27. AGENDA • Introduction • NoSQL • MongoDB • Concepts/Fundamentals • Working with MongoDB (hands-on)
  • 28. https://github.com/davidjeet/OpenDataDay/
  • 29. THE END