replace count(distinct with uniq for session / visits

This commit is contained in:
Francis Cao 2024-07-01 12:18:43 -07:00
parent c1cddc3806
commit 05894df58f
2 changed files with 3 additions and 3 deletions

View file

@ -75,7 +75,7 @@ async function clickhouseQuery(
`
select
${column} x,
count(distinct session_id) y
uniq(session_id) y
${includeCountry ? ', country' : ''}
from website_event
where website_id = {websiteId:UUID}