Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
Context Variables demo presentation
Search
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
charleseff
August 10, 2012
44
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Context Variables demo presentation
charleseff
August 10, 2012
Featured
See All Featured
How STYLIGHT went responsive
nonsquared
100
6.3k
The Web Performance Landscape in 2024 [PerfNow 2024]
tammyeverts
12
1.3k
Pawsitive SEO: Lessons from My Dog (and Many Mistakes) on Thriving as a Consultant in the Age of AI
davidcarrasco
0
260
Navigating the Design Leadership Dip - Product Design Week Design Leaders+ Conference 2024
apolaine
2
480
Mozcon NYC 2025: Stop Losing SEO Traffic
samtorres
1
580
Redefining SEO in the New Era of Traffic Generation
szymonslowik
1
480
Getting science done with accelerated Python computing platforms
jacobtomlinson
2
540
Skip the Path - Find Your Career Trail
mkilby
1
260
Why Our Code Smells
bkeepers
PRO
340
58k
From π to Pie charts
rasagy
1
400
jQuery: Nuts, Bolts and Bling
dougneiner
66
8.6k
Leo the Paperboy
mayatellez
10
2.4k
Transcript
Welcome to my
Welcome to my Dope Ass Slides
Context Variable refactor – what is it? context_variables = our
2nd largest MySQL table
Context Variable refactor – what is it? context_variables = our
2nd largest MySQL table = Teh Suck
Context Variable refactor – what is it? context_variables = our
2nd largest MySQL table = Teh Suck Running out of disk space quickly
➲ 1 Mysql DB: ➲ ➲ Total Used Available Use%
➲ 669G 480G 156G 76%
➲ 1 Mysql DB: ➲ ➲ Total Used Available Use%
➲ 669G 480G 156G 76% ➲ ➲ Context Variables: ➲ 68G ➲ 1 Mysql DB: ➲ ➲ Total Used Available Use% ➲ 669G 480G 156G 76%
➲ 1 Mysql DB: ➲ ➲ Total Used Available Use%
➲ 669G 480G 156G 76% ➲ ➲ Context Variables: ➲ 68G ➲ ➲ ➲ And growing at an increasing rate. ➲ ➲ Not Sustainable ➲ 1 Mysql DB: ➲ ➲ Total Used Available Use% ➲ 669G 480G 156G 76%
Solution Get rid of it! Store it in the cloud!
➲ ➲ 68GB+ 68GB+ 68GB+ 68GB+ < <
What do Context Variables do for us? http://www.change.org/admin/metrics/* ➲ ➲
➲ And other reports
http://www.change.org/admin/metrics/* ➲ ➲ ➲ ➲ ~ 3 hours a day
to generate. ➲ ➲ Heavy queries on the reporting db. ➲ ➲ And only getting slower/worse.
Solution Get rid of it! Store it in the cloud!
➲ ➲ 3 hours + 3 hours + Throw Throw machines a machines a it it < <
➲Map Reduce on Amazon ➲ ➲ ➲EMR
Rotate out context_variables daily 68GB+ 68GB+ Much much Much much
less less -> ->
None
Add more machines, decrease runtime
What's this mean to you?
What's this mean to you? No more SELECT's on context_variables
table
What's this mean to you? No more UPDATE's on context_variables
table
What's this mean to you? No DELETE's on context_variables table
(not that there ever were)
What's this mean to you? You prob weren't doing this
stuff anyway. Just sayin, don't start now.
None
Recommendation ➲ Recommend one or several strategies ➲ Give a
summary of the expected results ➲ Name the next steps to be taken ➲ Delegate the various tasks