-
Notifications
You must be signed in to change notification settings - Fork 1.5k
feat: add network calls column to AI sessions table #27269
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
95baedc
f857dff
6bbefbf
6fc1f78
43a0595
a0b0fcd
c164363
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,10 @@ | ||
| DROP INDEX IF EXISTS idx_boundary_logs_session_seq; | ||
|
|
||
| CREATE INDEX idx_boundary_logs_session_seq | ||
| ON boundary_logs (session_id, sequence_number); | ||
|
|
||
| DROP INDEX IF EXISTS idx_aibridge_interceptions_agent_firewall_session_seq; | ||
|
|
||
| CREATE INDEX idx_aibridge_interceptions_agent_firewall_session_id | ||
| ON aibridge_interceptions (agent_firewall_session_id) | ||
| WHERE agent_firewall_session_id IS NOT NULL; |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,15 @@ | ||
| -- Replace the session-only index with a composite index on | ||
| -- (agent_firewall_session_id, agent_firewall_sequence_number). The sessions | ||
| -- list computes each interception's next firewall sequence number to bound the | ||
| -- boundary_logs it triggered; the composite index serves that lookup index-only | ||
| -- and still covers session-only lookups. | ||
| DROP INDEX IF EXISTS idx_aibridge_interceptions_agent_firewall_session_id; | ||
|
|
||
| CREATE INDEX idx_aibridge_interceptions_agent_firewall_session_seq | ||
| ON aibridge_interceptions (agent_firewall_session_id, agent_firewall_sequence_number) | ||
| WHERE agent_firewall_session_id IS NOT NULL; | ||
|
|
||
| DROP INDEX IF EXISTS idx_boundary_logs_session_seq; | ||
|
|
||
| CREATE INDEX idx_boundary_logs_session_seq | ||
| ON boundary_logs (session_id, sequence_number) INCLUDE (matched_rule); |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would it be simpler to inline two nil-able int64s instead of making an embedded struct?