-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
perf: improve get environment api key latency
Signed-off-by: Alessandro Yuichi Okimoto <[email protected]>
- Loading branch information
Showing
27 changed files
with
2,313 additions
and
1,169 deletions.
There are no files selected for viewing
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
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
28 changes: 28 additions & 0 deletions
28
pkg/account/storage/v2/sql/api_key_v2/select_all_environment_api_keys_v2.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,28 @@ | ||
SELECT | ||
ak.id AS api_key_id, | ||
ak.name AS api_key_name, | ||
ak.role AS api_key_role, | ||
ak.disabled AS api_key_disabled, | ||
ak.created_at AS api_key_created_at, | ||
ak.updated_at AS api_key_updated_at, | ||
ak.description AS api_key_description, | ||
ak.api_key AS api_key_key, | ||
ak.maintainer AS api_key_maintainer, | ||
|
||
env.id AS environment_id, | ||
env.name AS environment_name, | ||
env.url_code AS environment_url_code, | ||
env.description AS environment_description, | ||
env.project_id AS environment_project_id, | ||
env.organization_id AS environment_organization_id, | ||
env.archived AS environment_archived, | ||
env.require_comment AS environment_require_comment, | ||
env.created_at AS environment_created_at, | ||
env.updated_at AS environment_updated_at, | ||
|
||
proj.id AS project_id, | ||
proj.url_code AS project_url_code, | ||
proj.disabled AS project_disabled | ||
FROM api_key ak | ||
JOIN environment_v2 env ON ak.environment_id = env.id | ||
JOIN project proj ON env.project_id = proj.id |
Oops, something went wrong.