mirror of
https://github.com/umami-software/umami.git
synced 2026-02-12 16:45:35 +01:00
reorder getfunnel where to match index
This commit is contained in:
parent
927ebd7c39
commit
7df142b02b
1 changed files with 5 additions and 3 deletions
|
|
@ -57,12 +57,14 @@ async function relationalQuery(
|
||||||
from level${i} l
|
from level${i} l
|
||||||
join website_event we
|
join website_event we
|
||||||
on l.session_id = we.session_id
|
on l.session_id = we.session_id
|
||||||
where we.created_at between l.created_at
|
where we.website_id = {{websiteId::uuid}}
|
||||||
and ${getAddMinutesQuery(`l.created_at `, windowMinutes)}
|
and we.created_at between l.created_at and ${getAddMinutesQuery(
|
||||||
|
`l.created_at `,
|
||||||
|
windowMinutes,
|
||||||
|
)}
|
||||||
and we.referrer_path = {{${i - 1}}}
|
and we.referrer_path = {{${i - 1}}}
|
||||||
and we.url_path = {{${i}}}
|
and we.url_path = {{${i}}}
|
||||||
and we.created_at <= {{endDate}}
|
and we.created_at <= {{endDate}}
|
||||||
and we.website_id = {{websiteId::uuid}}
|
|
||||||
)`;
|
)`;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue