RailsConf 2022 - Your test suite is making too many database calls! by Joël Quenneville

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



Duration: 29:21
78 views
4


On a recent project, I sped up a test suite 15% by making a change to a single factory. This suite, like many others (including yours!), was making way too many database calls. It’s so easy to accidentally add extra queries to factories and test setup and these can compound to shockingly large numbers.

The chaos is your opportunity! Learn to profile and fix hot spots, build big-picture understanding through diagrams, and write code that is resistant to extraneous queries. This talk will equip you to take back control of your build times and maybe impress your teammates in the process.




Other Videos By Confreaks


2023-01-16RailsConf 2022 - If You Know Heroku, You Can Use Kubernetes by Jamie Gaskins
2023-01-16RailsConf 2022 - Event Streaming on Rails by Brad Urani
2023-01-16RailsConf 2022 - The Mrs Triggs Problem by Andy Croll
2023-01-16RailsConf 2022 - Gem install: What could go wrong? by Ashley Ellis Pierce & Betty Li
2023-01-16RailsConf 2022 - Functional Programming in Plain Terms by Eric Weinstein
2023-01-16RailsConf 2022 - Geolocation EXPLAINed by Kevin Lesht
2023-01-16RailsConf 2022 - Breaking up with the bundle by Joel Hawksley
2023-01-16RailsConf 2022 - Scaling Rails with JRuby in 2022 by Charles Oliver Nutter
2023-01-16RailsConf 2022 - React-ing to Hotwire by David Hill
2023-01-16RailsConf 2022 - Let Your Body Lead: Career Planning With Somatics by Amy Newell
2023-01-16RailsConf 2022 - Your test suite is making too many database calls! by Joël Quenneville
2023-01-16RailsConf 2022 - Evaluating Cultural Fit + Culturesmithing: Everyone Influences... by Casey Watts
2023-01-16RailsConf 2022 - Start Your Ruby Podcast Today! No Experience Required by Jason Charnes
2023-01-16RailsConf 2022 - Do You Trust Me? A look at Trust, Time, and Teams by John DeWyze
2023-01-16RailsConf 2022 - Don't touch that! by Adam Cuppy
2023-01-16RailsConf 2022 - Learn it, Do it, Teach it: How to Unstick Our Middle Devs by Chelsea Kaufman
2023-01-16RailsConf 2022 - How music works, using Ruby by Thijs Cadier
2023-01-16RailsConf 2022 - Finding the Needle in the Stack Trace: APM Logs-in-Context - New Relic -
2023-01-16RailsConf 2022 - Git your PR accepted. Rebase your changes like a pro by Daniel Magliola
2023-01-16RailsConf 2022 - `rails c` with meturbocharge your use of the interactive console by Sweta Sanghavi
2023-01-16RailsConf 2022 - Growing Your Background Job Knowledge - Weedmaps - Jake Anderson



Tags:
RailsConf
Rails
RubyonRails
DHH