SlideShare is now on Android. 15 million presentations at your fingertips.  Get the app

×
  • Share
  • Email
  • Embed
  • Like
  • Save
  • Private Content
 

Beyond 'gem install MySQL’ in Ruby

by Working at Google on Apr 15, 2010

  • 20,529 views

There is much more to MySQL performance in Ruby than ‘gem install mysql’ and syntactic optimizations. Whether you are running Ruby MRI (C version), or JRuby (JVM), or any other Ruby VM, and are ...

There is much more to MySQL performance in Ruby than ‘gem install mysql’ and syntactic optimizations. Whether you are running Ruby MRI (C version), or JRuby (JVM), or any other Ruby VM, and are looking to optimize your performance architecture (response times or throughput), the architecture and the MySQL driver you choose (yes, there is more than one!) have significant influence on the outcome. Different VM’s expose different behaviors: native threads vs. green threads, a global interpreter lock (GIL) vs. no lock, and result in dramatically different behaviors under load.

In this talk we will look under the hood of the most popular Ruby VM’s and evaluate a number of alternative drivers (mysql gem, mysqlplus, evented-mysql, and others), which can help you significantly improve the performance and throughput of your Ruby+MySQL application.

Statistics

Views

Total Views
20,529
Views on SlideShare
12,512
Embed Views
8,017

Actions

Likes
19
Downloads
102
Comments
2

32 Embeds 8,017

http://www.igvita.com 7680
http://www.slideshare.net 156
http://teamco-anthill.blogspot.com 72
http://bgror.com 12
http://www.igvita.com.sharedcopy.com 11
http://static.slidesharecdn.com 11
http://coderwall.com 8
http://localhost 8
http://teamco-anthill.blogspot.fr 7
http://teamco-anthill.blogspot.co.uk 7
http://lanyrd.com 6
http://teamco-anthill.blogspot.in 4
http://teamco-anthill.blogspot.jp 3
http://teamco-anthill.blogspot.com.es 3
http://translate.googleusercontent.com 3
http://feeds.igvita.com 3
http://teamco-anthill.blogspot.it 2
http://teamco-anthill.blogspot.ru 2
http://www.lmodules.com 2
http://www.techgig.com 2
http://teamco-anthill.blogspot.com.au 2
http://webcache.googleusercontent.com 2
http://teamco-anthill.blogspot.pt 2
http://teamco-anthill.blogspot.ch 1
http://teamco-anthill.blogspot.be 1
http://teamco-anthill.blogspot.com.br 1
http://teamco-anthill.blogspot.de 1
http://teamco-anthill.blogspot.ca 1
http://teamco-anthill.blogspot.ie 1
http://apps.matharvard.ca 1
https://twitter.com 1
http://teamco-anthill.blogspot.co.il 1
More...

Accessibility

Upload Details

Uploaded via SlideShare as Microsoft PowerPoint

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

12 of 2 previous next

  • pranny Pranav Prakash, Engineer at SlideShare Useful insights and available options 2 years ago
    Are you sure you want to
    Your message goes here
    Processing…
  • igrigorik Ilya Grigorik at Google Blog post: http://www.igvita.com/2010/04/15/non-blocking-activerecord-rails/

    Original PPTX: http://github.com/igrigorik/presentations/tree/master/2010-MySQLConf/

    (Slideshare seems to break the whitespace in code examples (doh))
    4 years ago
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

Beyond 'gem install MySQL’ in Ruby Beyond 'gem install MySQL’ in Ruby Presentation Transcript