You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Django 4.2 added support for slices when prefetching. This results in a
better query plan ` Sort (cost=287.47..287.52 rows=18 width=1420)` -> `
Subquery Scan on qualify (cost=73.48..74.02 rows=12 width=1420)`, and
also performs better in production
```
# before
6.07 s ± 10.7 ms per loop (mean ± std. dev. of 5 runs, 5 loops each)
# after
4.61 s ± 197 ms per loop (mean ± std. dev. of 5 runs, 5 loops each)
```
0 commit comments