mirror of
https://github.com/umami-software/umami.git
synced 2026-02-04 04:37:11 +01:00
optimize getSessionActivity hasData
This commit is contained in:
parent
cc3710880c
commit
0d67f1fdaa
1 changed files with 1 additions and 1 deletions
|
|
@ -57,7 +57,7 @@ async function clickhouseQuery(websiteId: string, sessionId: string, filters: Qu
|
||||||
event_type as eventType,
|
event_type as eventType,
|
||||||
event_name as eventName,
|
event_name as eventName,
|
||||||
visit_id as visitId,
|
visit_id as visitId,
|
||||||
event_id IN (SELECT event_id FROM event_data) AS hasData
|
event_id IN (SELECT event_id FROM event_data where website_id = {websiteId:UUID} and session_id = {sessionId:UUID}) AS hasData
|
||||||
from website_event e
|
from website_event e
|
||||||
where e.website_id = {websiteId:UUID}
|
where e.website_id = {websiteId:UUID}
|
||||||
and e.session_id = {sessionId:UUID}
|
and e.session_id = {sessionId:UUID}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue