mirror of
https://github.com/umami-software/umami.git
synced 2025-12-06 01:18:00 +01:00
optimize getWebsiteEvent hasData
This commit is contained in:
parent
5244d8608b
commit
cc3710880c
1 changed files with 1 additions and 1 deletions
|
|
@ -96,7 +96,7 @@ async function clickhouseQuery(websiteId: string, filters: QueryFilters) {
|
||||||
page_title as pageTitle,
|
page_title as pageTitle,
|
||||||
event_type as eventType,
|
event_type as eventType,
|
||||||
event_name as eventName,
|
event_name as eventName,
|
||||||
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}) as hasData
|
||||||
from website_event
|
from website_event
|
||||||
${cohortQuery}
|
${cohortQuery}
|
||||||
where website_id = {websiteId:UUID}
|
where website_id = {websiteId:UUID}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue