feat: add src_id and dst_id indexes to tailnet_tunnels (#12911)

Fixes #12780

Adds indexes to the `tailnet_tunnels` table to speed up `GetTailnetTunnelPeerIDs` and `GetTailnetTunnelPeerBindings` queries, which match on `src_id` and `dst_id`.
This commit is contained in:
Spike Curtis
2024-04-11 10:05:53 +04:00
committed by GitHub
parent ab116af543
commit a231b5aef5
3 changed files with 9 additions and 0 deletions

View File

@ -0,0 +1,2 @@
DROP INDEX idx_tailnet_tunnels_src_id;
DROP INDEX idx_tailnet_tunnels_dst_id;