Mongo gotchas
Upcoming SlideShare
Loading in...5
×
 

Like this? Share it with your network

Share

Mongo gotchas

on

  • 1,020 views

 

Statistics

Views

Total Views
1,020
Views on SlideShare
771
Embed Views
249

Actions

Likes
1
Downloads
2
Comments
0

4 Embeds 249

http://www.10gen.com 205
http://www.mongodb.com 41
http://drupal1.10gen.cc 2
https://www.mongodb.com 1

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

Mongo gotchas Presentation Transcript

  • 1. Mongo  Gotchas   by  Billy  Chasen  Founder,  CEO  turntable.fm   @billychasen  
  • 2. video  www.youtube.com/watch?v=shgHA7lKJaY  
  • 3. How  we  use  mongo  •  All  turntable  room  state  in  mongo  •  All  persistent  data  •  Logging  (use  safe  =  False)  •  Incredibly  fast,  make  sure  you  give  it  enough   RAM  
  • 4. ConnecPons  •  The  magic  number  819   –  Depends  on  open  file  limits   –  Throws  a  vague  cannot  connect  to  primary/slave   error  
  • 5. Threads  •  CauPon  when  using  pymongo  with  Tornado  •  Use  libraries  like  async  mongo  for  Tornado  
  • 6. Indexes  •  Important!    Analyze  every  query  you  use  with   explain()  and  monitor  slow  query  log  
  • 7. OpPmize  returned  data  •  If  you  have  large  objects,  request  only  needed   fields  •  It’s  like  using  SELECT  uid,name  FROM  user  
  • 8. We’re  hiring!  •  jobs@turntable.fm  •  VP  Tech  •  Sysops