Introduction to MongoDB (Version 2)

246 views

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
246
On SlideShare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
Downloads
4
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Introduction to MongoDB (Version 2)

  1. 1. Developing using MongoDB
  2. 2. Why NoSQL? ● Scalability ● Performance ● Availability
  3. 3. Choices we have?
  4. 4. Database Objects ● ● ● ● Database Collection Document Index
  5. 5. Map it! MongoDB SQL Server Database Database Collections Tables Document Row
  6. 6. What is the document here? { { _id : 1, _id : 1, name : “Sam Walton”, name : “Sam Walton”, age : 74, age : 74, company : company : { [ name : ”walmart” “Walmart”,”Walton Five” } ] } } In MongoDB we use JSON to represent our data. Document is more like a record in Relational Databases.
  7. 7. Data Type ObjectID - 12bytes Number String Boolean Date/Time null
  8. 8. Designing Denormalizing is ok? Foreign keys? NO Then How? Is it same for all NoSQL databases?
  9. 9. DEMO
  10. 10. Indexing Can I create Secondary indexes? Lots of indexes ? NO? Full text search ?
  11. 11. Security ● Schema Injection ● Authentication ● SSL? ● Encryption?
  12. 12. What else? Write Concern SlaveOk journaling Sharding
  13. 13. Q&A

×