Uploaded by tcation on Jul 30, 2009
High Performance Ruby on Rails and MySQL
David Berube (Berube Consulting)
From the official conference description is at http://www.mysqlconf.com/mysql2009/public/schedule/detail/6942
MySQL is among the fastest relational databases commonly available today; unfortunately, the database alone is only part of the picture. For todays web applications, the one weak link in the entire performance chain from the network to the web application and ending in the database can cause an entire application to seem slow.
Unfortunately, Ruby on Rails on exacerbates this problem: Rails makes it easy to develop complicated web applications fast, but it also makes it easy to access your databases in an extremely inefficient manner. Thousands of queries may be generated when just a few are necessary. Even if you can get past that problem, ActiveRecord itself can be a problem: it may create thousands or even millions of objects, and in many situations such as bulk loading or updating data this can cause a serious performance problem. Replacing ActiveRecord in key situations can result in the length of batch process going from days to minutes.
This talk will demonstrate the following for your attendees: * What kind of performance problems am I likely to run into with Rails? * How can I tell if Rails is responsible for my performance problems? * What specific techniques can I use to reduce the number of queries and the size of ActiveRecord objects returned? * What are some real world examples of ActiveRecord speedup using these techniques?
Category:
Tags:
License:
Standard YouTube License
-
3 likes, 0 dislikes
15 videos

2009 MySQL User Conference & Expo
56:06
Beginner's Guide to Website Performance with MySQL and memcachedby tcation4,215 views
52:25
Optimizing MySQL Performance with ZFSby tcation2,262 views
49:43
Improving Performance by Running MySQL Multiple Timesby tcation1,549 views
49:53
High Concurrency MySQLby tcation2,306 views
7:42
Programming With Ruby Episode 7, Arraysby manwithcode5,050 views
57:23
Web Development with Ruby On Railsby skillbuildersDotcom20,908 views
2:37
PHP vs. Python vs. Ruby vs. Java vs. .NETby businessgeek15,324 views
7:59
Creating a blog in 15 minutes with Rails - Part 1by gfreemankz9,032 views
7:40
Create a Ruby on Rails Project from Scratch on Site5by PhoenX3,719 views
1:15:15
Ruby on Rails - Part 1: Hello Worldby UCBerkeleyEvents177,471 views
1:19
wordpress 2 .7 Step 4 Setting up your MySQL Databaseby joebland1011,557 views
0:54
Ruby on Rails vs PHP - Conheça o Nosso Centroby veltbiz649 views
15:00
Ruby on Rails Windows Installation Guide - Part 1by SteveCavaliere2,517 views
35:02
Ruby on Rails Screencast 1 - David Heinemeier Hanssonby coderpath40,101 views
1:06
Ruby on Rails VS Django - Commercial #7 of 9by envyads189,653 views
0:58
Creating Ruby on Rails project with NetBeansby arya1995,125 views
10:11
SQLite Programming Using Rubyby Jaynonymous12,259 views
0:31
Active Record pseudo intellisense for Textmateby eduardobrando3,108 views
10:01
Ruby on Rails 01 - Criando um Blog em 15 minuto - DRC Treinamentosby DRCTreinamento15,495 views
4:35
MVC and Models in Ruby on Rails: An Introduction, PART ONEby EcommerceDeveloper1,095 views
- Loading more suggestions...
Link to this comment:
All Comments (0)