our adventure with mongodb

38
Our Adventure With MongoDB, Rails & Friends Chicago Ruby October 2010

Upload: ethan-gunderson

Post on 18-May-2015

1.034 views

Category:

Documents


2 download

DESCRIPTION

A preview of my Mongo Chic

TRANSCRIPT

Page 1: Our Adventure with MongoDB

Our Adventure WithMongoDB, Rails & Friends

Chicago RubyOctober 2010

Page 2: Our Adventure with MongoDB

Ethan Gundersonhttp://ethangunderson.com

Twitter & Github: ethangunderson

Page 3: Our Adventure with MongoDB
Page 4: Our Adventure with MongoDB

Our Agenda1) gathers.us2) Choosing an ODM3) Data modeling4) Other fun Mongo events5) Q & A

Page 5: Our Adventure with MongoDB

Manage events

Page 6: Our Adventure with MongoDB

Manage your groups(coming soon)

Page 7: Our Adventure with MongoDB

Aggregate your social content(coming soon)

Page 8: Our Adventure with MongoDB

High ValueGroupsEventsRSVPs

Low ValueSocial Events

Data needs

Page 9: Our Adventure with MongoDB

Our Agenda1) gathers.us2) Choosing an ODM3) Data modeling4) Other fun Mongo events5) Q & A

Page 10: Our Adventure with MongoDB

MongoMapperMogoDoc

MongoidMongomatic

Candy

Lotʼs of options for Rails integration

Page 11: Our Adventure with MongoDB

The strait Mongo Ruby driver!We chose ...

Page 12: Our Adventure with MongoDB

ORMs are worthless if you donʼt understand what theyʼre doing.

Page 13: Our Adventure with MongoDB

Simple to use

Page 14: Our Adventure with MongoDB

Learn your tools

Page 15: Our Adventure with MongoDB

We avoided one until it became too painful not to use one.

Page 16: Our Adventure with MongoDB

In the end, we choseMongoid

Page 17: Our Adventure with MongoDB

Rails 3 support

Page 18: Our Adventure with MongoDB

Nice query syntax

Page 19: Our Adventure with MongoDB

Safe mode

Page 20: Our Adventure with MongoDB

Master / Slave

Page 21: Our Adventure with MongoDB

Our Agenda1) gathers.us2) Choosing an ODM3) Data modeling4) Other fun Mongo events5) Q & A

Page 22: Our Adventure with MongoDB

Our data model

Page 23: Our Adventure with MongoDB

Introducing groups

Page 24: Our Adventure with MongoDB

Option 1

Page 25: Our Adventure with MongoDB

Option 2

Page 26: Our Adventure with MongoDB

YEAH!!!

Page 27: Our Adventure with MongoDB

This idea actually sucks

Page 28: Our Adventure with MongoDB

Mongoʼs 4MB document limit

Among other things, it keeps people like us, from doing things like that.

Page 29: Our Adventure with MongoDB

In reality, documents shouldnʼt be bigger than ~250kb

1) updating on the server2) transferring across the network3) serializing to and from BSON

Inefficient when...

Page 30: Our Adventure with MongoDB

Option 3single collection inheritance

Page 31: Our Adventure with MongoDB

Mongoid Support

Page 32: Our Adventure with MongoDB

Top level objects are stilltop level objects

Page 33: Our Adventure with MongoDB

Moral of the story is,data modeling is still hard

Page 34: Our Adventure with MongoDB

Our Agenda1) gathers.us2) Choosing an ODM3) Data modeling4) Other fun Mongo events5) Q & A

Page 35: Our Adventure with MongoDB

October 18th, 6:00pmObtiva Studiohttp://chicagodb.com

The CTO of 10gen, Eliot Horowitz, will give us an in depth look at the components that make up MongoDB

ChicagoDB October

Page 36: Our Adventure with MongoDB

October 20th, 9am - 6pmIIThttp://10gen.com/conferences/mongochicago2010

21 presentations by Mongo users and 10gen employees covering a wide array of topics from Mongo basics to Sharding architecture.

Mongo Chicago

Page 37: Our Adventure with MongoDB

Our Agenda1) gathers.us2) Choosing an ODM3) Data modeling4) Other fun Mongo events5) Q & A

Page 38: Our Adventure with MongoDB

http://spkr8.com/t/4704

Q & A