Skip to content

Commit b8274f8

Browse files
authored
Update lcp_async_fetchpriority.sql (#4045)
To add pct calcs
1 parent 56f85e5 commit b8274f8

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

sql/2024/performance/lcp_async_fetchpriority.sql

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,9 @@ SELECT
8282
COUNTIF(decoding = 'sync') AS sync_decoding,
8383
COUNTIF(decoding = 'auto') AS auto_decoding,
8484
COUNTIF(fetchPriority = 'low') AS priority_low,
85-
COUNTIF(fetchPriority = 'high') AS priority_high
85+
COUNTIF(fetchPriority = 'low') / COUNT(DISTINCT url) AS pct_priority_low,
86+
COUNTIF(fetchPriority = 'high') AS priority_high,
87+
COUNTIF(fetchPriority = 'high') / COUNT(DISTINCT url) AS pct_priority_high
8688
FROM
8789
lcp_stats
8890
JOIN (

0 commit comments

Comments
 (0)