- Notifications
You must be signed in to change notification settings - Fork1.1k
Commit229d051
authored
fix: speed up GetTailnetTunnelPeerBindings query (#19444)
relates to:coder/internal#718Optimizes the GetTailnetTunnelPeerBindings query to reduce its execution time.Before:https://explain.dalibo.com/plan/c2fd53f913aah21cAfter:https://explain.dalibo.com/plan/6bc67d323g7afh61At a high level, we first assemble the total list of peer IDs needed by the query, and only then go into the `tailnet_peers` table to extract their info. This saves us some time instead of hashing the entire `tailnet_peers` table.1 parent51d8a05 commit229d051
2 files changed
+24
-20
lines changedSome generated files are not rendered by default. Learn more aboutcustomizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
150 | 150 | | |
151 | 151 | | |
152 | 152 | | |
153 | | - | |
| 153 | + | |
154 | 154 | | |
155 | 155 | | |
156 | 156 | | |
| |||
205 | 205 | | |
206 | 206 | | |
207 | 207 | | |
208 | | - | |
209 | | - | |
210 | | - | |
211 | | - | |
212 | | - | |
213 | | - | |
214 | | - | |
215 | | - | |
216 | | - | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
217 | 219 | | |
218 | 220 | | |
219 | 221 | | |
| |||
0 commit comments
Comments
(0)