Commit 5ce596c
authored
admin speedup: defer big json fields to optimise the admin list page (#38)
The list of objects in django admin doesn't use the big jsons fields, so it's okay to defer them. This makes for a significant speed up as some of the JSONs are a few MB in size, and loading a list of 50 or a 100 (one page) of those objects would mean 100s of MB more data to read from the database that is then not even used.1 parent b1acc0e commit 5ce596c
1 file changed
+10
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
87 | 87 | | |
88 | 88 | | |
89 | 89 | | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
90 | 95 | | |
91 | 96 | | |
92 | 97 | | |
| |||
113 | 118 | | |
114 | 119 | | |
115 | 120 | | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
116 | 126 | | |
117 | 127 | | |
118 | 128 | | |
| |||
0 commit comments