-
Notifications
You must be signed in to change notification settings - Fork 292
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
65b7440
commit 344a10a
Showing
3 changed files
with
200 additions
and
154 deletions.
There are no files selected for viewing
14 changes: 0 additions & 14 deletions
14
internal/db/schema/migrations/oss/postgres/79/03_session_base_table_updates.up.sql
This file was deleted.
Oops, something went wrong.
20 changes: 20 additions & 0 deletions
20
internal/db/schema/migrations/oss/postgres/80/10_session_base_table_updates.up.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
-- Copyright (c) HashiCorp, Inc. | ||
-- SPDX-License-Identifier: BUSL-1.1 | ||
|
||
begin; | ||
|
||
-- Add new indexes for the create and update time queries. | ||
create index session_create_time_list_idx | ||
on session (create_time desc, | ||
public_id, | ||
project_id, | ||
user_id, | ||
termination_reason); | ||
create index session_update_time_list_idx | ||
on session (update_time desc, | ||
public_id, | ||
project_id, | ||
user_id, | ||
termination_reason); | ||
|
||
commit; |
Oops, something went wrong.