Commit 4e1b203
authored
PLU-467 [HOTFIX]: slow GetFlows query when query planner does a poor job (#958)
## Problem
GetFlows endpoint and db query is slow for some users (e.g. myself)
## Solution
Fetch the filtered slows and steps first to make it more deliberate. See
notion:
https://www.notion.so/opengov/GetFlows-query-slow-1df77dbba788808d9c9fe1f1f9be5bc7?pvs=4
for more details.
## What to test
- [ ] Retrieving all pipes works
- [ ] Filtering and paginate pipes work
- [ ] Able to view all pipes for a given app
- [ ] Able to view all pipes for a given connection1 parent b1aeea9 commit 4e1b203
1 file changed
+43
-18
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
| 2 | + | |
2 | 3 | | |
3 | 4 | | |
4 | 5 | | |
| |||
7 | 8 | | |
8 | 9 | | |
9 | 10 | | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
| 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 | + | |
14 | 51 | | |
| 52 | + | |
15 | 53 | | |
16 | 54 | | |
17 | 55 | | |
18 | 56 | | |
19 | 57 | | |
20 | 58 | | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
| 59 | + | |
35 | 60 | | |
36 | 61 | | |
37 | 62 | | |
| |||
0 commit comments