diff --git a/api/features/views.py b/api/features/views.py index ba0aac4d9194..e660eac45088 100644 --- a/api/features/views.py +++ b/api/features/views.py @@ -224,8 +224,10 @@ def get_queryset(self): api_key=environment_api_key, ) - queryset = FeatureState.objects.filter( - environment=environment, feature_segment=None + queryset = ( + FeatureState.objects.filter(environment=environment, feature_segment=None) + .select_related("feature", "feature_state_value") + .prefetch_related("multivariate_feature_state_values") ) if identity_pk: