-
Notifications
You must be signed in to change notification settings - Fork 976
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: sort sessions by authenticated_at
Ory Network issue: ory/network#295
- Loading branch information
Showing
6 changed files
with
38 additions
and
2 deletions.
There are no files selected for viewing
4 changes: 4 additions & 0 deletions
4
persistence/sql/migrations/sql/20230619000000000001_sessions_add_sorted_indices.down.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,4 @@ | ||
CREATE INDEX sessions_identity_id_nid_idx | ||
ON sessions (identity_id, nid); | ||
|
||
DROP INDEX sessions_identity_id_nid_sorted_idx; |
5 changes: 5 additions & 0 deletions
5
...stence/sql/migrations/sql/20230619000000000001_sessions_add_sorted_indices.mysql.down.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,5 @@ | ||
CREATE INDEX sessions_identity_id_nid_idx | ||
ON sessions (identity_id, nid); | ||
|
||
DROP INDEX sessions_identity_id_nid_sorted_idx | ||
ON sessions; |
5 changes: 5 additions & 0 deletions
5
persistence/sql/migrations/sql/20230619000000000001_sessions_add_sorted_indices.mysql.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,5 @@ | ||
CREATE INDEX sessions_identity_id_nid_sorted_idx | ||
ON sessions (identity_id, nid, authenticated_at DESC); | ||
|
||
DROP INDEX sessions_identity_id_nid_idx | ||
ON sessions; |
4 changes: 4 additions & 0 deletions
4
persistence/sql/migrations/sql/20230619000000000001_sessions_add_sorted_indices.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,4 @@ | ||
CREATE INDEX sessions_identity_id_nid_sorted_idx | ||
ON sessions (identity_id, nid, authenticated_at DESC); | ||
|
||
DROP INDEX sessions_identity_id_nid_idx; |
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
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