zitadel/internal/query/projection
Silvan ddbea119f1
fix(query): user performance (#6537)
* start user by id

* ignore debug bin

* use new user by id

* new sql

* fix(sql): replace STRING with text for psql compatabilit

* some changes

* fix: correct user queries

* fix tests

* unify sql statements

* use specific get user methods

* search login name case insensitive

* refactor: optimise user statements

* add index

* fix queries

* fix: correct domain segregation

* return all login names

* fix queries

* improve readability

* query should be correct now

* cleanup statements

* fix username / loginname handling

* fix: psql doesn't support create view if not exists

* fix: create pre-release

* ignore release comments

* add lower fields

* fix: always to lower

* update to latest projection

---------

Co-authored-by: Livio Spring <livio.a@gmail.com>
2023-12-08 13:14:22 +01:00
..
action_test.go feat(eventstore): increase parallel write capabilities (#5940) 2023-10-19 12:19:10 +02:00
action.go feat(eventstore): increase parallel write capabilities (#5940) 2023-10-19 12:19:10 +02:00
app_test.go perf(oidc): optimize the introspection endpoint (#6909) 2023-11-21 13:11:38 +01:00
app.go perf(oidc): optimize the introspection endpoint (#6909) 2023-11-21 13:11:38 +01:00
assert_test.go feat: push telemetry (#6027) 2023-07-06 08:38:13 +02:00
assert.go feat: push telemetry (#6027) 2023-07-06 08:38:13 +02:00
auth_request_test.go feat(eventstore): increase parallel write capabilities (#5940) 2023-10-19 12:19:10 +02:00
auth_request.go feat(eventstore): increase parallel write capabilities (#5940) 2023-10-19 12:19:10 +02:00
authn_key_test.go feat(eventstore): increase parallel write capabilities (#5940) 2023-10-19 12:19:10 +02:00
authn_key.go perf(oidc): optimize the introspection endpoint (#6909) 2023-11-21 13:11:38 +01:00
config.go feat(eventstore): increase parallel write capabilities (#5940) 2023-10-19 12:19:10 +02:00
custom_text_test.go feat(eventstore): increase parallel write capabilities (#5940) 2023-10-19 12:19:10 +02:00
custom_text.go feat(eventstore): increase parallel write capabilities (#5940) 2023-10-19 12:19:10 +02:00
debug_notification_provider_test.go feat(eventstore): increase parallel write capabilities (#5940) 2023-10-19 12:19:10 +02:00
debug_notification.go feat(eventstore): increase parallel write capabilities (#5940) 2023-10-19 12:19:10 +02:00
device_auth.go feat(eventstore): increase parallel write capabilities (#5940) 2023-10-19 12:19:10 +02:00
domain_policy_test.go feat(eventstore): increase parallel write capabilities (#5940) 2023-10-19 12:19:10 +02:00
domain_policy.go feat(eventstore): increase parallel write capabilities (#5940) 2023-10-19 12:19:10 +02:00
event_test.go feat(eventstore): increase parallel write capabilities (#5940) 2023-10-19 12:19:10 +02:00
eventstore_mock_test.go feat(eventstore): increase parallel write capabilities (#5940) 2023-10-19 12:19:10 +02:00
executer_test.go feat(eventstore): increase parallel write capabilities (#5940) 2023-10-19 12:19:10 +02:00
flow_test.go perf: remove owner removed columns from projections for oidc (#6925) 2023-11-20 17:21:08 +02:00
flow.go perf: remove owner removed columns from projections for oidc (#6925) 2023-11-20 17:21:08 +02:00
idp_login_policy_link_test.go feat(eventstore): increase parallel write capabilities (#5940) 2023-10-19 12:19:10 +02:00
idp_login_policy_link.go feat(eventstore): increase parallel write capabilities (#5940) 2023-10-19 12:19:10 +02:00
idp_template_test.go feat(eventstore): increase parallel write capabilities (#5940) 2023-10-19 12:19:10 +02:00
idp_template.go feat(eventstore): increase parallel write capabilities (#5940) 2023-10-19 12:19:10 +02:00
idp_test.go feat(eventstore): increase parallel write capabilities (#5940) 2023-10-19 12:19:10 +02:00
idp_user_link_test.go feat(eventstore): increase parallel write capabilities (#5940) 2023-10-19 12:19:10 +02:00
idp_user_link.go feat(eventstore): increase parallel write capabilities (#5940) 2023-10-19 12:19:10 +02:00
idp.go feat(eventstore): increase parallel write capabilities (#5940) 2023-10-19 12:19:10 +02:00
instance_domain_test.go feat(eventstore): increase parallel write capabilities (#5940) 2023-10-19 12:19:10 +02:00
instance_domain.go feat(eventstore): increase parallel write capabilities (#5940) 2023-10-19 12:19:10 +02:00
instance_member_test.go perf: remove owner removed columns from projections for oidc (#6925) 2023-11-20 17:21:08 +02:00
instance_member.go perf: remove owner removed columns from projections for oidc (#6925) 2023-11-20 17:21:08 +02:00
instance_test.go feat(eventstore): increase parallel write capabilities (#5940) 2023-10-19 12:19:10 +02:00
instance.go feat(eventstore): increase parallel write capabilities (#5940) 2023-10-19 12:19:10 +02:00
key_test.go chore(Makefile): add go generate target (#6944) 2023-11-22 10:56:43 +00:00
key.go feat(eventstore): increase parallel write capabilities (#5940) 2023-10-19 12:19:10 +02:00
label_policy_test.go feat: add attribute to only enable specific themes (#6798) 2023-10-26 05:54:09 +00:00
label_policy.go feat: add attribute to only enable specific themes (#6798) 2023-10-26 05:54:09 +00:00
limits_test.go feat: limit audit trail (#6744) 2023-10-25 11:42:00 +00:00
limits.go feat: limit audit trail (#6744) 2023-10-25 11:42:00 +00:00
lockout_policy_test.go feat(eventstore): increase parallel write capabilities (#5940) 2023-10-19 12:19:10 +02:00
lockout_policy.go feat(eventstore): increase parallel write capabilities (#5940) 2023-10-19 12:19:10 +02:00
login_name_test.go perf: remove owner removed columns from projections for oidc (#6925) 2023-11-20 17:21:08 +02:00
login_name.go fix(query): user performance (#6537) 2023-12-08 13:14:22 +01:00
login_policy_test.go feat(eventstore): increase parallel write capabilities (#5940) 2023-10-19 12:19:10 +02:00
login_policy.go feat(eventstore): increase parallel write capabilities (#5940) 2023-10-19 12:19:10 +02:00
mail_template_test.go feat(eventstore): increase parallel write capabilities (#5940) 2023-10-19 12:19:10 +02:00
mail_template.go feat(eventstore): increase parallel write capabilities (#5940) 2023-10-19 12:19:10 +02:00
member.go perf: remove owner removed columns from projections for oidc (#6925) 2023-11-20 17:21:08 +02:00
message_text_test.go feat(eventstore): increase parallel write capabilities (#5940) 2023-10-19 12:19:10 +02:00
message_texts.go feat(eventstore): increase parallel write capabilities (#5940) 2023-10-19 12:19:10 +02:00
milestones_test.go feat(eventstore): increase parallel write capabilities (#5940) 2023-10-19 12:19:10 +02:00
milestones.go feat(eventstore): increase parallel write capabilities (#5940) 2023-10-19 12:19:10 +02:00
notification_policy_test.go feat(eventstore): increase parallel write capabilities (#5940) 2023-10-19 12:19:10 +02:00
notification_policy.go feat(eventstore): increase parallel write capabilities (#5940) 2023-10-19 12:19:10 +02:00
oidc_settings_test.go feat(eventstore): increase parallel write capabilities (#5940) 2023-10-19 12:19:10 +02:00
oidc_settings.go feat(eventstore): increase parallel write capabilities (#5940) 2023-10-19 12:19:10 +02:00
org_domain_test.go feat(eventstore): increase parallel write capabilities (#5940) 2023-10-19 12:19:10 +02:00
org_domain.go feat(eventstore): increase parallel write capabilities (#5940) 2023-10-19 12:19:10 +02:00
org_member_test.go perf: remove owner removed columns from projections for oidc (#6925) 2023-11-20 17:21:08 +02:00
org_member.go perf: remove owner removed columns from projections for oidc (#6925) 2023-11-20 17:21:08 +02:00
org_metadata_test.go feat(eventstore): increase parallel write capabilities (#5940) 2023-10-19 12:19:10 +02:00
org_metadata.go feat(eventstore): increase parallel write capabilities (#5940) 2023-10-19 12:19:10 +02:00
org_test.go feat(eventstore): increase parallel write capabilities (#5940) 2023-10-19 12:19:10 +02:00
org.go feat(eventstore): increase parallel write capabilities (#5940) 2023-10-19 12:19:10 +02:00
password_age_policy_test.go feat(eventstore): increase parallel write capabilities (#5940) 2023-10-19 12:19:10 +02:00
password_age_policy.go feat(eventstore): increase parallel write capabilities (#5940) 2023-10-19 12:19:10 +02:00
password_complexity_policy_test.go feat(eventstore): increase parallel write capabilities (#5940) 2023-10-19 12:19:10 +02:00
password_complexity_policy.go feat(eventstore): increase parallel write capabilities (#5940) 2023-10-19 12:19:10 +02:00
privacy_policy_test.go feat(eventstore): increase parallel write capabilities (#5940) 2023-10-19 12:19:10 +02:00
privacy_policy.go feat(eventstore): increase parallel write capabilities (#5940) 2023-10-19 12:19:10 +02:00
project_grant_member_test.go perf: remove owner removed columns from projections for oidc (#6925) 2023-11-20 17:21:08 +02:00
project_grant_member.go perf: remove owner removed columns from projections for oidc (#6925) 2023-11-20 17:21:08 +02:00
project_grant_test.go perf: remove owner removed columns from projections for oidc (#6925) 2023-11-20 17:21:08 +02:00
project_grant.go perf: remove owner removed columns from projections for oidc (#6925) 2023-11-20 17:21:08 +02:00
project_member_test.go perf: remove owner removed columns from projections for oidc (#6925) 2023-11-20 17:21:08 +02:00
project_member.go perf: remove owner removed columns from projections for oidc (#6925) 2023-11-20 17:21:08 +02:00
project_role_test.go perf: remove owner removed columns from projections for oidc (#6925) 2023-11-20 17:21:08 +02:00
project_role.go perf: remove owner removed columns from projections for oidc (#6925) 2023-11-20 17:21:08 +02:00
project_test.go perf: remove owner removed columns from projections for oidc (#6925) 2023-11-20 17:21:08 +02:00
project.go perf: remove owner removed columns from projections for oidc (#6925) 2023-11-20 17:21:08 +02:00
projection.go feat: option to disallow public org registration (#6917) 2023-11-22 09:29:38 +00:00
quota_test.go feat(eventstore): increase parallel write capabilities (#5940) 2023-10-19 12:19:10 +02:00
quota.go feat(eventstore): increase parallel write capabilities (#5940) 2023-10-19 12:19:10 +02:00
restrictions_test.go fix: projection version of restrictions (#7028) 2023-12-06 10:30:56 +00:00
restrictions.go fix: projection version of restrictions (#7028) 2023-12-06 10:30:56 +00:00
secret_generator_test.go feat(eventstore): increase parallel write capabilities (#5940) 2023-10-19 12:19:10 +02:00
secret_generator.go feat(eventstore): increase parallel write capabilities (#5940) 2023-10-19 12:19:10 +02:00
security_policy.go feat(eventstore): increase parallel write capabilities (#5940) 2023-10-19 12:19:10 +02:00
session_test.go feat: allow session deletion without session token (#6889) 2023-11-16 07:35:50 +01:00
session.go feat: allow session deletion without session token (#6889) 2023-11-16 07:35:50 +01:00
sms_test.go feat(eventstore): increase parallel write capabilities (#5940) 2023-10-19 12:19:10 +02:00
sms.go feat(eventstore): increase parallel write capabilities (#5940) 2023-10-19 12:19:10 +02:00
smtp_test.go feat(eventstore): increase parallel write capabilities (#5940) 2023-10-19 12:19:10 +02:00
smtp.go feat(eventstore): increase parallel write capabilities (#5940) 2023-10-19 12:19:10 +02:00
user_auth_method_test.go feat(eventstore): increase parallel write capabilities (#5940) 2023-10-19 12:19:10 +02:00
user_auth_method.go feat(eventstore): increase parallel write capabilities (#5940) 2023-10-19 12:19:10 +02:00
user_grant_test.go feat(eventstore): increase parallel write capabilities (#5940) 2023-10-19 12:19:10 +02:00
user_grant.go feat(eventstore): increase parallel write capabilities (#5940) 2023-10-19 12:19:10 +02:00
user_metadata_test.go perf(oidc): optimize the introspection endpoint (#6909) 2023-11-21 13:11:38 +01:00
user_metadata.go perf(oidc): optimize the introspection endpoint (#6909) 2023-11-21 13:11:38 +01:00
user_personal_access_token_test.go feat(eventstore): increase parallel write capabilities (#5940) 2023-10-19 12:19:10 +02:00
user_personal_access_token.go feat(eventstore): increase parallel write capabilities (#5940) 2023-10-19 12:19:10 +02:00
user_test.go perf(oidc): optimize client verification (#6999) 2023-12-05 17:01:03 +00:00
user.go perf(oidc): optimize client verification (#6999) 2023-12-05 17:01:03 +00:00