| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Codecov Report
@@ Coverage Diff @@
## master #1201 +/- ##
==========================================
- Coverage 63.86% 63.61% -0.25%
==========================================
Files 233 233
Lines 17151 17152 +1
==========================================
- Hits 10954 10912 -42
- Misses 6197 6240 +43
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
Sorry, something went wrong.
UNION ALL is not guaranteed to keep the order of the results. In fact with (at least) Postgres 13 the order is not well defined and can change between executions. This patch adds an extra column to the query, tagging each statistics with its key, so that we can reconstruct the correct order of the results.
…-dev#1201) UNION ALL is not guaranteed to keep the order of the results. In fact with (at least) Postgres 13 the order is not well defined and can change between executions. This patch adds an extra column to the query, tagging each statistics with its key, so that we can reconstruct the correct order of the results.
| Back | FazBrowse Home | New Git URL |
UNION ALL is not guaranteed to keep the order of the results. In fact with Postgres 13 the order is not well defined and can change between executions (not sure which versions are affected).
This patch adds an extra column to the query, tagging each statistics with its key, so that we can reconstruct the correct order of the results.
This is what was happening:

Old queryanon_1_count_1 ---------------- 0 708629 195 0 614906 0 93285 243Timing: 22559,237 ms (00:22,559)
New queryanon_1_count_1 | anon_1_key ----------------+------------------ 0 | scoring 708629 | total 195 | max_compilations 0 | evaluating 614906 | scored 0 | compiling 243 | max_evaluations 93285 | compilation_failTiming: 21561,638 ms (00:21,562)