Why we are using MongoDB in one of our applications

Please download to get full document.

View again

All materials on our website are shared by users. If you have any questions about copyright issues, please report us to resolve them. We are always happy to assist you.
 4
 
  1. MongoDB and why we are using itin one of our applications 2. Why use a document database? 3. Why use a document database?Application needed to support schema-less data…
Related documents
Share
Transcript
  • 1. MongoDB and why we are using itin one of our applications
  • 2. Why use a document database?
  • 3. Why use a document database?Application needed to support schema-less data
  • 4. Why MongoDB?
  • 5. Why MongoDB?Has the features that is a mix of new and interesting so I’m excited about it…
  • 6. Why MongoDB?Has the features that is a mix of new and interesting so I’m excited about it… as well as features that I’m familiar with so it’s not too different
  • 7. As you’re going to need to convince some people first
  • 8. As you’re going to need to convince some people first Yourself
  • 9. As you’re going to need to convince some people first Yourself Your boss
  • 10. As you’re going to need to convince some people first Yourself Your boss The client
  • 11. ★ Documentation is well written…
  • 12. ★ Documentation is well written… ★ and there is a lot of it
  • 13. ★ Documentation is well written… ★ and there is a lot of it★ Language support is good
  • 14. Other much bigger companies are using it
  • 15. What it allowed us to do
  • 16. What it allowed us to do Store data in a structure which matches the logic the application
  • 17. What it allowed us to do Store data in a structure which matches the logic the application Application code is simpler easier to read
  • 18. Our schema may have looked like this…
  • 19. Our schema may have looked like this… Products Variations Tag Images Categories
  • 20. Our schema may have looked like this… Products Join table Join table Variations Join table Tag Join table Images Join table Join table Categories
  • 21. Our schema may have looked like this… Products Join table Join table Variations Join table Tag Join table Images Join table Join table Categories
  • 22. Instead our schema looks like this Products id 4567abs334 name Fancy cheese description This is my favourite… categories [ food, cheese, blue ] tags [ tasty, happiness ] variations ▼ barcode 12340028 sku 12345679 images [ brie.jpg ] smell socks size large price $A22.50
  • 23. Some things to be aware of
  • 24. Some things to be aware of As sometimes the magic runs out
  • 25. Your application has schema
  • 26. Your application has schema But your database doesn’t
  • 27. Your application has schema But your database doesn’t You should still treat schema changes with caution/respect
  • 28. Nested Documents
  • 29. Nested DocumentsLike any magic it’s best to use with some caution
  • 30. Nested DocumentsLike any magic it’s best to use with some caution Harder to test in isolation
  • 31. Nested DocumentsLike any magic it’s best to use with some caution Harder to test in isolationModel callbacks may not work as you’d expect
  • 32. Nested DocumentsLike any magic it’s best to use with some caution Harder to test in isolationModel callbacks may not work as you’d expect Limit the number of embedded docs
  • 33. Thankshello@newfangled.com.au Twitter @mrdougal
  • Related Search
    We Need Your Support
    Thank you for visiting our website and your interest in our free products and services. We are nonprofit website to share and download documents. To the running of this website, we need your help to support us.

    Thanks to everyone for your continued support.

    No, Thanks