mirror of
https://github.com/umami-software/umami.git
synced 2025-12-08 05:12:36 +01:00
Removed subquery.
This commit is contained in:
parent
bf774b97fb
commit
374ce6bdb3
1 changed files with 3 additions and 7 deletions
|
|
@ -19,11 +19,7 @@ export function getPageviewStats(
|
||||||
|
|
||||||
return rawQuery(
|
return rawQuery(
|
||||||
`
|
`
|
||||||
select
|
select ${getDateQuery('pageview.created_at', unit, timezone)} t,
|
||||||
g.t as t,
|
|
||||||
g.y as y
|
|
||||||
from
|
|
||||||
(select ${getDateQuery('pageview.created_at', unit, timezone)} t,
|
|
||||||
count(${count}) y
|
count(${count}) y
|
||||||
from pageview
|
from pageview
|
||||||
${joinSession}
|
${joinSession}
|
||||||
|
|
@ -31,7 +27,7 @@ export function getPageviewStats(
|
||||||
and pageview.created_at between $2 and $3
|
and pageview.created_at between $2 and $3
|
||||||
${pageviewQuery}
|
${pageviewQuery}
|
||||||
${sessionQuery}
|
${sessionQuery}
|
||||||
group by 1) g
|
group by 1
|
||||||
order by 1
|
order by 1
|
||||||
`,
|
`,
|
||||||
params,
|
params,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue