• Share
  • Email
  • Embed
  • Like
  • Save
  • Private Content
MongoDB Ruby Development - MongoNYC
 

MongoDB Ruby Development - MongoNYC

on

  • 2,667 views

A short presentation on Ruby development in MongoDB.

A short presentation on Ruby development in MongoDB.

Statistics

Views

Total Views
2,667
Views on SlideShare
2,642
Embed Views
25

Actions

Likes
2
Downloads
28
Comments
0

1 Embed 25

http://www.slideshare.net 25

Accessibility

Categories

Upload Details

Uploaded via as Adobe PDF

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

    MongoDB Ruby Development - MongoNYC MongoDB Ruby Development - MongoNYC Presentation Transcript

    • MongoDB  in  Ruby’s   Loving  Embrace MongoNYC  (#mongonyc) Kyle  Banker  (@hwaet) May  21,  2010 10gen http://www.mongodb.org/ Tuesday, May 25, 2010
    • 1. The  Ruby  Driver Tuesday, May 25, 2010
    • Setup Tuesday, May 25, 2010
    • A  sample  document Tuesday, May 25, 2010
    • _id  is  the  primary  key Tuesday, May 25, 2010
    • What’s  in  an  object  id? Tuesday, May 25, 2010
    • What’s  in  an  object  id? 4b6857a0 timestamp Tuesday, May 25, 2010
    • What’s  in  an  object  id? 4b6857a0 7613c3 timestamp machine id Tuesday, May 25, 2010
    • What’s  in  an  object  id? 4b6857a0 7613c3 6709 timestamp machine id process id Tuesday, May 25, 2010
    • What’s  in  an  object  id? 4b6857a0 7613c3 6709 4426b2 timestamp machine id process id counter Tuesday, May 25, 2010
    • Notes  on  object  ids not  a  string: Tuesday, May 25, 2010
    • Notes  on  object  ids not  a  string: convert  to  string: Tuesday, May 25, 2010
    • extract  the  timestamp: a  timestamp  trick: Tuesday, May 25, 2010
    • Saving  a  Ruby  object: Tuesday, May 25, 2010
    • Saving  a  Ruby  object: 1.  Add  an  object  id  (_id) Tuesday, May 25, 2010
    • Saving  a  Ruby  object: 1.  Add  an  object  id  (_id) 2.  Serialize  to  BSON  and  pack   with  the  MongoDB  wire  protocol. Tuesday, May 25, 2010
    • Saving  a  Ruby  object: 1.  Add  an  object  id  (_id) 2.  Serialize  to  BSON  and  pack   with  the  MongoDB  wire  protocol. 3.  socket.send() Tuesday, May 25, 2010
    • 2. Using  Ruby Tuesday, May 25, 2010
    • Queries Tuesday, May 25, 2010
    • Indexes Tuesday, May 25, 2010
    • Updates Tuesday, May 25, 2010
    • Commands Tuesday, May 25, 2010
    • 3. Gotchas Tuesday, May 25, 2010
    • Times Times  must  be  stored  in  UTC TimeWithZone Tuesday, May 25, 2010
    • bson_ext will  be  loaded  if  in  load  path Tuesday, May 25, 2010
    • Safe  mode Calls  getlasterror  after  op. Tuesday, May 25, 2010
    • Safe  mode Calls  getlasterror  after  op. With  replication. Tuesday, May 25, 2010
    • Passenger  and  Unicorn Careful  with  forking. Tuesday, May 25, 2010
    • 4. The  Object   Mappers Tuesday, May 25, 2010
    • 5. Resources Tuesday, May 25, 2010
    • MongoDB  Ruby  Koans http://github.com/chicagoruby/MongoDB_Koans Tuesday, May 25, 2010
    • MongoDB  Ruby  Koans http://github.com/chicagoruby/MongoDB_Koans Contribute http://cookbook.mongodb.org Tuesday, May 25, 2010
    • MongoDB  Ruby  Koans http://github.com/chicagoruby/MongoDB_Koans Contribute http://cookbook.mongodb.org Consulting info@10gen.com Tuesday, May 25, 2010
    • 6. Shameless  Plug Tuesday, May 25, 2010
    • MongoDB  Training  |  July  7-­‐8 http://ideafoundry.info/mongodb Tuesday, May 25, 2010
    • Thank  You http://www.mongodb.org/ Tuesday, May 25, 2010