Last active
January 20, 2020 21:17
-
-
Save caraya/5fe9ab286a7f828cc90fa58bd5031f3d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- Trying to figure out if this query is correct | |
-- and whether there are wasy to optimize it soo it | |
-- won't take as long as it does to run and produce results | |
SELECT | |
_TABLE_SUFFIX AS yyyymm, | |
SUM(fcp.density) AS average_fcp, | |
SUM(fp.density) as average_fp, | |
SUM(dcl.density) as average_dcl | |
FROM | |
`chrome-ux-report.country_cl.*`, | |
UNNEST(first_paint.histogram.bin) as fp, | |
UNNEST(dom_content_loaded.histogram.bin) as dcl, | |
UNNEST(first_contentful_paint.histogram.bin) AS fcp | |
WHERE | |
form_factor.name = 'desktop' AND | |
fcp.start > 20000 | |
GROUP BY | |
yyyymm | |
ORDER BY | |
yyyymm |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment