Skip to content

Commit

Permalink
limit the subqueries for satellite
Browse files Browse the repository at this point in the history
  • Loading branch information
ohnorobo committed Sep 11, 2023
1 parent 4fc780c commit e5d2632
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion table/queries/merged_reduced_scans.sql
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,7 @@ AS (
measurement_id,
MAX(retry) AS retry
FROM `PROJECT_NAME.BASE_DATASET.satellite_scan`
WHERE date >= earliest_date
GROUP BY date, measurement_id
);

Expand All @@ -186,7 +187,8 @@ AS (
SELECT domain, source
FROM `PROJECT_NAME.BASE_DATASET.satellite_scan`,
UNNEST(answers) as a
WHERE a.https_tls_cert_matches_domain AND a.https_tls_cert_has_trusted_ca
WHERE date >= earliest_date
AND a.https_tls_cert_matches_domain AND a.https_tls_cert_has_trusted_ca
GROUP BY domain, source
);

Expand Down

0 comments on commit e5d2632

Please sign in to comment.