Skip to content

Commit dac39fa

Browse files
perf(preprod): Add select_related for project__organization lookup
1 parent a12d0f8 commit dac39fa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/sentry/preprod/snapshots/tasks.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ def compare_snapshots(
260260
)
261261

262262
try:
263-
head_artifact = PreprodArtifact.objects.get(
263+
head_artifact = PreprodArtifact.objects.select_related("project__organization").get(
264264
id=head_artifact_id,
265265
project__organization_id=org_id,
266266
project_id=project_id,

0 commit comments

Comments
 (0)