Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Blastoff Rails: Powerful Data
Search
Neha Abraham
July 15, 2026
12
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Blastoff Rails: Powerful Data
Neha Abraham
July 15, 2026
Featured
See All Featured
Getting science done with accelerated Python computing platforms
jacobtomlinson
2
380
Collaborative Software Design: How to facilitate domain modelling decisions
baasie
1
270
The untapped power of vector embeddings
frankvandijk
2
1.8k
Introduction to Domain-Driven Design and Collaborative software design
baasie
1
920
Public Speaking Without Barfing On Your Shoes - THAT 2023
reverentgeek
1
480
Kristin Tynski - Automating Marketing Tasks With AI
techseoconnect
PRO
0
430
Lessons Learnt from Crawling 1000+ Websites
charlesmeaden
PRO
1
1.5k
No one is an island. Learnings from fostering a developers community.
thoeni
21
3.8k
How to build a perfect <img>
jonoalderson
1
5.8k
AI in Enterprises - Java and Open Source to the Rescue
ivargrimstad
0
1.4k
Abbi's Birthday
coloredviolet
3
9k
Leveraging LLMs for student feedback in introductory data science courses - posit::conf(2025)
minecr
1
330
Transcript
P O W E R F U L D A
T A D B G O B R R R R R R R R M A K I N G R A I L S A P P S F A S T E R W I T H A G G R E G A T I O N
None
None
None
AGGREGATION
None
D D
AGGREGATION: DATACEPTION D D
AGGREGATION: DATACEPTION D D
AGGREGATE MODEL
AGGREGATE MODEL What questions are you answering
AGGREGATE MODEL What questions are you answering Groupings
AGGREGATE MODEL What questions are you answering Groupings How do
you want to view the data
AGGREGATE MODEL What questions are you answering Groupings How do
you want to view the data Reduce calculations
P O W E R H O M E R
E M O D E L I N G O U R W O R K S H O W S
P O W E R H O M E R
E M O D E L I N G O U R W O R K S H O W S 150 TIMES FASTER
C O S T
S P A C E C O S T
S P A C E F L E X I
B I L I T Y C O S T
S P A C E F L E X I
B I L I T Y D A T A F R E S H N E S S C O S T
MATH
.GROUP_BY
.GROUP_BY
.GROUP_BY Generates a `SELECT` query, ActiveRecord::Relation
.GROUP_BY Generates a `SELECT` query, ActiveRecord::Relation Loads ActiveRecord objects into
memory
.GROUP_BY Generates a `SELECT` query, ActiveRecord::Relation Rails does the grouping
based on the block passed Loads ActiveRecord objects into memory
.GROUP
.GROUP
.GROUP Generates a `SELECT SUM` query, summing done on the
DB level
.GROUP Generates a `SELECT SUM` query, summing done on the
DB level Model objects not instantiated in memory
.GROUP Generates a `SELECT SUM` query, summing done on the
DB level Returns a hash Model objects not instantiated in memory
CHAINING METHODS
CHAINING METHODS
CHAINING METHODS
CHAINING METHODS
CHAINING METHODS
CHAINING METHODS
C O S T
N O M O D E L S C O
S T
N O M O D E L S N O
R E L A T I O N S C O S T
N O M O D E L S N O
R E L A T I O N S C O M P L E X I T Y C O S T
SQL SQL SQL SQL
SQL SQL SQL SQL
SQL SQL SQL SQL Use for complex subqueries, CTEs, custom
joins Use find_by_sql if you want model instances
P O W E R H O M E R
E M O D E L I N G O U R W O R K S H O W S R A I L S W AY S Q L W AY BENCHMARK
P O W E R H O M E R
E M O D E L I N G O U R W O R K S H O W S R A I L S W AY S Q L W AY BENCHMARK
P O W E R H O M E R
E M O D E L I N G O U R W O R K S H O W S
P O W E R H O M E R
E M O D E L I N G O U R W O R K S H O W S 2,143% HOLY SMOKES, BATMAN!
C O S T
V A L I D A T I O N
S C O S T
V A L I D A T I O N
S C A L L B A C K S C O S T
V A L I D A T I O N
S C A L L B A C K S M A I N T E N A N C E C O S T
P O W E R H O M E R
E M O D E L I N G O U R W O R K S H O W S INDEXES
P O W E R H O M E R
E M O D E L I N G O U R W O R K S H O W S INDEXES G R O U P I N G
P O W E R H O M E R
E M O D E L I N G O U R W O R K S H O W S INDEXES G R O U P I N G E X P L A I N
P O W E R H O M E R
E M O D E L I N G O U R W O R K S H O W S INDEXES G R O U P I N G E X P L A I N U P D A T E
P O W E R H O M E R
E M O D E L I N G O U R W O R K S H O W S INDEXES G R O U P I N G E X P L A I N U P D A T E O V E R - I N D E X I N G
P O W E R H O M E R
E M O D E L I N G O U R W O R K S H O W S INDEXES G R O U P I N G E X P L A I N U P D A T E O V E R - I N D E X I N G A L L T A B L E S
W H Y ?
G O O D C I T I Z E
N W H Y ?
G O O D C I T I Z E
N R E S O U R C E S W H Y ?
G O O D C I T I Z E
N R E S O U R C E S F A I L U R E S W H Y ?
P O W E R H O M E R
E M O D E L I N G O U R W O R K S H O W S W T F S
P O W E R H O M E R
E M O D E L I N G O U R W O R K S H O W S S P E C S F U C K I N G T H E W R I T E W T F S
P O W E R H O M E R
E M O D E L I N G O U R W O R K S H O W S L E T T H E D A T A B A S E D O T H E W O R K
THANK YOU
P O W E R H O M E R
E M O D E L I N G O U R W O R K S H O W S