replace count(distinct with uniq for session / visits

This commit is contained in:
Francis Cao 2024-07-01 12:18:43 -07:00
parent 05e4555334
commit 5289c277fb
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}