MountainWest RubyConf 2014 - CRUD! The Consequences of Not Understanding How ActiveRecord ...

Channel:
Subscribers:
42,400
Published on ● Video Link: https://www.youtube.com/watch?v=lOpVcqiAIiI



Duration: 19:39
2,401 views
23


By Eileen Uchitelle

The magic of ActiveRecord database interactions is easy to rely on and allows us assume it knows best. Without a solid understanding of how ActiveRecord translates into MySQL, however, significant issues can arise. This is particularly true with large data sets and complex model relationships. My talk explores an example for each CRUD function and shows how these queries can result in MySQL timeouts, memory issues or stack level too deep errors. The examples will examine the consequences of chaining large datasets, uses for Arel, and how to avoid encountering major problems and most importantly, how these queries can be rewritten to run more efficiently.

Help us caption & translate this video!

http://amara.org/v/FG2L/




Other Videos By Confreaks


2014-04-28MountainWest RubyConf 2014 - But Really, You Should Learn Smalltalk
2014-04-28MountainWest Devops 2014 - Cooking at Shopify: Taming a busy kitchen with many Chefs
2014-04-28MountainWest Devops 2014 - "DevOps" in a Post-DevOps World by Paul Reed
2014-04-28MountainWest Devops 2014 - I Serve No Master! by Aaron Gibson
2014-04-24EmberConf 2014 - Controlling Route Traversal with Flows by Nathan Hammond
2014-04-24EmberConf 2014 - The Unofficial, Official Ember Testing Guide by Eric Berry
2014-04-24EmberConf 2014 - Keynote: Evolution by Dave Herman
2014-04-24EmberConf 2014 - Snappy Means Happy: Performance in Ember Apps by Matthew Beale
2014-04-23MountainWest RubyConf 2014 - Nerd Party, v 3.1 by Ryan Davis
2014-04-23MountainWest RubyConf 2014 - Software Development Lessons from the Apollo Program
2014-04-23MountainWest RubyConf 2014 - CRUD! The Consequences of Not Understanding How ActiveRecord ...
2014-04-23MountainWest RubyConf 2014 - MagLev - From Download to Deploy by Johnny T
2014-04-23MountainWest RubyConf 2014 - The Timeless Way of Building by John Athayde
2014-04-23MountainWest RubyConf 2014 - Test Driven Neural Networks with Ruby by Matthew Kirk
2014-04-23MountainWest RubyConf 2014 - A World Without Assignment by Aja Hammerly
2014-04-23MountainWest RubyConf 2014 - Five machine learning techniques that....
2014-04-23MountainWest RubyConf 2014 - Affordance in Programming Languages by Randy Coulman
2014-04-22MountainWest RubyConf 2014 - Dont. by Ernie Miller
2014-04-22MountainWest RubyConf 2014 - Big O in a Homemade Hash by Nathan Long
2014-04-22MountainWest RubyConf 2014 - Re-thinking Regression Testing by Mario Gonzalez
2014-04-22MountainWest RubyConf 2014 - Unpacking Technical Decisions by Sarah Mei