Our Adventure with MongoDB

1,289 views

Published on

A preview of my Mongo Chic

0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
1,289
On SlideShare
0
From Embeds
0
Number of Embeds
8
Actions
Shares
0
Downloads
5
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Our Adventure with MongoDB

  1. 1. Our Adventure With MongoDB, Rails & Friends Chicago Ruby October 2010
  2. 2. Ethan Gunderson http://ethangunderson.com Twitter & Github: ethangunderson
  3. 3. Our Agenda 1) gathers.us 2) Choosing an ODM 3) Data modeling 4) Other fun Mongo events 5) Q & A
  4. 4. Manage events
  5. 5. Manage your groups (coming soon)
  6. 6. Aggregate your social content (coming soon)
  7. 7. Data needs High Value Low Value Groups Social Events Events RSVPs
  8. 8. Our Agenda 1) gathers.us 2) Choosing an ODM 3) Data modeling 4) Other fun Mongo events 5) Q & A
  9. 9. Lotʼs of options for Rails integration MongoMapper Mongoid MogoDoc Mongomatic Candy
  10. 10. We chose ... The strait Mongo Ruby driver!
  11. 11. ORMs are worthless if you donʼt understand what theyʼre doing.
  12. 12. Simple to use
  13. 13. Learn your tools
  14. 14. We avoided one until it became too painful not to use one.
  15. 15. In the end, we chose Mongoid
  16. 16. Rails 3 support
  17. 17. Nice query syntax
  18. 18. Safe mode
  19. 19. Master / Slave
  20. 20. Our Agenda 1) gathers.us 2) Choosing an ODM 3) Data modeling 4) Other fun Mongo events 5) Q & A
  21. 21. Our data model
  22. 22. Introducing groups
  23. 23. Option 1
  24. 24. Option 2
  25. 25. YEAH!!!
  26. 26. This idea actually sucks
  27. 27. Mongoʼs 4MB document limit Among other things, it keeps people like us, from doing things like that.
  28. 28. In reality, documents shouldnʼt be bigger than ~250kb Inefficient when... 1) updating on the server 2) transferring across the network 3) serializing to and from BSON
  29. 29. Option 3 single collection inheritance
  30. 30. Mongoid Support
  31. 31. Top level objects are still top level objects
  32. 32. Moral of the story is, data modeling is still hard
  33. 33. Our Agenda 1) gathers.us 2) Choosing an ODM 3) Data modeling 4) Other fun Mongo events 5) Q & A
  34. 34. ChicagoDB October October 18th, 6:00pm Obtiva Studio http://chicagodb.com The CTO of 10gen, Eliot Horowitz, will give us an in depth look at the components that make up MongoDB
  35. 35. Mongo Chicago October 20th, 9am - 6pm IIT http://10gen.com/conferences/mongochicago2010 21 presentations by Mongo users and 10gen employees covering a wide array of topics from Mongo basics to Sharding architecture.
  36. 36. Our Agenda 1) gathers.us 2) Choosing an ODM 3) Data modeling 4) Other fun Mongo events 5) Q & A
  37. 37. Q&A http://spkr8.com/t/4704

×