clickhouse inserts

This commit is contained in:
Brian Cao 2022-07-22 14:43:19 -07:00
parent 6ea2282f82
commit 65910c7348
13 changed files with 146 additions and 40 deletions

View file

@ -29,7 +29,7 @@ async function clickhouseQuery(website_id) {
return rawQueryClickhouse(
`
select count(distinct session_id) x
select count(distinct session_uuid) x
from pageview
where website_id = $1
and created_at >= ${getDateFormatClickhouse(subMinutes(new Date(), 5))}