Skip to content

Instantly share code, notes, and snippets.

Avatar

Luke Rodgers lukeasrodgers

View GitHub Profile
View gist:e9f269f25e049f72a79897af43d9d3e8
# List users by average and maximum session length.
SELECT person, max(client.runtime_ms), avg(client.runtime_ms)
FROM item_occurrence
GROUP BY 1
ORDER BY 2 DESC
# List active date ranges for each deploy.
SELECT client.javascript.code_version, min(timestamp), max(timestamp)
FROM item_occurrence
GROUP BY 1