Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

perf: use environment ID cache (#4938)

Danny Xu9f0d1734197f
diff --git a/backend/store/environment.go b/backend/store/environment.go
index 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
}
}