~/talk

Level-up Your ActiveRecord Skills: Learn SQL!

Talkat RailsConf 2016 · 2016-05-04..05-06· [ruby-on-rails, databases]
slides:none on file

Claims that learning SQL fixes performance and reporting problems by moving work into the database, with concrete examples: a Ruby dashboard that would otherwise pull millions of rows is replaced by a single SQL query; exploratory queries using group by and joins produce counts (4,000 books, 500 authors) and find authors with five or more topic books; use Explain Analyze to spot costly sequential scans and add indexes or use migrations with raw SQL (e.g. concurrent index) to make it actually fast.

AI-written summary · about

  1. 0:00Introduction
  2. 1:06Why SQL
  3. 3:00SQL vs Sequel
  4. 3:43Overview
  5. 3:57About me
  6. 5:01Before ORM
  7. 9:38ActiveRecord
  8. 10:01SQL is everywhere
  9. 10:54Why learn SQL
  10. 11:47Chris Nelson
  11. 12:16Richard Hipp
  12. 13:14Examples
  13. 13:25Authors and Books
  14. 14:15New Project
  15. 14:28Existing Project
  16. 15:01Querying the Database
  17. 15:48Query Results
  18. 17:10Minimum
  19. 18:37Results
  20. 19:40Join Data Together
  21. 20:17Join Explanation
  22. 20:48SQL Join Criteria
  23. 24:32SQL Join Data Types
  24. 25:14Explain
  25. 26:22Explain Analyze
  26. 27:09Sequential Scan
  27. 31:01Middle Bobby Tables
  28. 31:31Where to go from here
  29. 32:26Remote pairing
  30. 33:51Summary
  31. 34:39Questions
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.