-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathoutline.txt
More file actions
51 lines (35 loc) · 914 Bytes
/
outline.txt
File metadata and controls
51 lines (35 loc) · 914 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
DJANGO PERFORMANCE PRESENTATION NOTES
= Intro =
* Get it right before you go live
* This is short
* Not covering cacheing
* cached fragments
* memcached for sessions
= Getting Started / Browser Developer Tools =
* Show the app
* Show the network tab
* Test 3x for everything
* Change One Thing At A Time !!!
* If not playing along, can you spreadsheet for us?
= Settings File =
* DEBUG
* ALLOWED_HOSTS
* CACHED TEMPLATE LOADER
= Select Related =
* Tail the Postgres logs
* Show the new code
= Django Debug Toolbar =
* Show the SQL that is run
* Timing things
* Headers & Other Goodies
* Can impose signficant cost
= Prefetch Related ==
* select_related only works to the "one" side of the relationship
* prefetch_related works to the "many" side of the relationship
= Pagination =
* Only pull one page at a time
= Jinja2 =
* Look & See!
= Other Things =
* PGBadger for folks using Postgres
*