Skip to content

Commit

Permalink
Merge pull request #256 from censoredplanet/subquery-limit
Browse files Browse the repository at this point in the history
limit the subqueries for satellite
  • Loading branch information
ohnorobo authored Sep 15, 2023
2 parents 4fc780c + e5d2632 commit 1501f36
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 1501f36

Please sign in to comment.