Database governance built for humans and agents — controlling changes and access across every major database.
Go cicddata-governancedata-maskingdata-securitydatabase-accessdatabase-governancedevopsdevsecopsflywaygitopsliquibasemongodbmysqloraclepostgresqlschema-migrationssecuritysql-clientsqlservertidb
perf: use environment ID cache (#4938)
Danny Xu9f0d1734197f
diff --git a/backend/store/environment.go b/backend/store/environment.goindex 15c1f46cfb..444f578863 100644--- a/backend/store/environment.go+++ b/backend/store/environment.go@@ -180,7 +180,7 @@ func (s *Store) GetEnvironmentV2(ctx context.Context, find *FindEnvironmentMessa}}if find.UID != nil {- if environment, ok := s.environmentCache.Load(*find.UID); ok {+ if environment, ok := s.environmentIDCache.Load(*find.UID); ok {return environment.(*EnvironmentMessage), nil}}