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
Improving Performance of Growing Django Apps
Search
Williams Mendez
February 19, 2018
Programming
61
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Improving Performance of Growing Django Apps
How to improve the performance of your app before you face the need to upgrade your hardware.
Williams Mendez
February 19, 2018
Other Decks in Programming
See All in Programming
【加筆修正版】Laravel のアプリケーションをどこにデプロイするか #phpcon_ehime
akase244
0
150
作って学ぶSpring BootのAuto Configuration / JJUG Night Seminar 2026-10-19
rshindo
0
150
Augmenting AI with the Power of Jakarta EE
ivargrimstad
0
190
R8 の設定見直しでアプリサイズ削減
andpad
0
220
SalesForceを内製化!? ~ HR事業を支える顧客管理基盤のインフラを大公開 ~
oku053
0
180
UnityでSystem.Net.WebSocketsなWebSocketサーバが動かないのでUnity Monoのコードを覗いてみた / about implementing websocket server with unity mono
drumath2237
1
610
半永久的に提供し続けられるプライベートクラウドを目指して ― 利用者の認知負荷を抑えるAPI抽象化とハードウェア世代交代の基盤設計
tomokon
0
500
気持ちぃ〜角丸 Squircle
ryu1013
0
310
Herb in Rails 8.2: Your ERB views, now HTML-aware @ Kaigi on Rails 2026, Tokyo, Japan
marcoroth
2
220
コードで差別化できない時代の ソフトウェアエンジニアリング / Software Engineering in an Era Where Code Doesn’t Differentiate
kishida
2
180
dotNET_vulnclicker_intro.pdf
deka_morita
0
140
Everything will be SERVERLESS — 信じて運用した10年の経験値 / Everything Will be Serverless — Lessons Learned from 10 Years of Operational Experience
seike460
PRO
1
1.1k
Featured
See All Featured
Fantastic passwords and where to find them - at NoRuKo
philnash
53
4k
CSS Pre-Processors: Stylus, Less & Sass
bermonpainter
360
31k
Exploring anti-patterns in Rails
aemeredith
4
540
New Earth Scene 8
popppiees
4
2.7k
SEOcharity - Dark patterns in SEO and UX: How to avoid them and build a more ethical web
sarafernandez
0
300
コードの90%をAIが書く世界で何が待っているのか / What awaits us in a world where 90% of the code is written by AI
rkaga
63
46k
It's Worth the Effort
3n
188
29k
How to Talk to Developers About Accessibility
jct
2
580
Google's AI Overviews - The New Search
badams
0
1.6k
Data-driven link building: lessons from a $708K investment (BrightonSEO talk)
szymonslowik
1
1.4k
The World Runs on Bad Software
bkeepers
PRO
72
12k
The Myth of the Modular Monolith - Day 2 Keynote - Rails World 2024
eileencodes
28
3.7k
Transcript
Improving Performance of Growing Django Apps Williams Méndez github.com/wm3ndez/pycaribbean-2018 @wmendezt
//codemera
Common areas of improvement • Database ◦ Slow queries ◦
Too many queries • Slow python code • Cache ◦ Views, Templates ◦ Functions • Templates ◦ Render-blocking assets ◦ Template Tags • Async Tasks ◦ Email ◦ Refresh cache ◦ Others
Common improvements points • Database ◦ Slow queries ◦ Too
many queries • Slow python code • Cache ◦ Views, Templates ◦ Functions • Templates ◦ Render-blocking assets ◦ Template Tags • Async Tasks ◦ Email ◦ Cache ◦ Others
Tools • Your Browser Developer Tools • Django Debug Toolbar
• Django Silk • cProfile (Python built-in profiler)
Tools • Your Browser Developer Tools • Django Debug Toolbar
• Django Silk • cProfile (Python built-in profiler)
Blog Models
Blog Models
The Blog...
Django Debug Toolbar
Views
Templates
Templates
Duplicated queries
Select_related & prefetch_related
Less queries
blog.blog2.models
Before indexing
After indexing
Cache, queues & sessions with Redis
Authors page
Cache View
Template Fragment Caching
Caching function results
Caching function results
Blog 1 vs Blog 3
Django-Silk
Django RQ
Django RQ
Other suggestions • Raw Queries • Invest some time in
learning your DB Engine • Database Tuning • Take care of your Middlewares • Use a custom Auth Model(User) • React/Angular/Vue.js
THANK YOU!