Closed dracos closed 2 years ago
Merging #394 (e016ce6) into master (c9be442) will increase coverage by
0.06%
. The diff coverage is91.66%
.
@@ Coverage Diff @@
## master #394 +/- ##
==========================================
+ Coverage 71.86% 71.92% +0.06%
==========================================
Files 39 39
Lines 2303 2308 +5
==========================================
+ Hits 1655 1660 +5
Misses 648 648
Impacted Files | Coverage Δ | |
---|---|---|
mapit/models.py | 84.51% <90.90%> (+0.35%) |
:arrow_up: |
mapit/views/postcodes.py | 78.37% <100.00%> (ø) |
Continue to review full report at Codecov.
Legend - Click here to learn more
Δ = absolute <relative> (impact)
,ø = not affected
,? = missing data
Powered by Codecov. Last update c9be442...e016ce6. Read the comment docs.
As per the comment, without doing this the query performs an identical transform on every row it's looking at, rather than doing it once at the start.
Before:
(Rewriting as a non-materialized CTE it is the same query plan:
After: