mirror of
https://github.com/umami-software/umami.git
synced 2026-02-04 04:37:11 +01:00
Remove limit 1000 on sessions
This commit is contained in:
parent
f41c9a635f
commit
99c9eeeb72
1 changed files with 0 additions and 6 deletions
|
|
@ -24,7 +24,6 @@ async function relationalQuery(websiteId: string, filters: QueryFilters, pagePar
|
||||||
|
|
||||||
return pagedRawQuery(
|
return pagedRawQuery(
|
||||||
`
|
`
|
||||||
with sessions as (
|
|
||||||
select
|
select
|
||||||
session.session_id as "id",
|
session.session_id as "id",
|
||||||
session.website_id as "websiteId",
|
session.website_id as "websiteId",
|
||||||
|
|
@ -68,8 +67,6 @@ async function relationalQuery(websiteId: string, filters: QueryFilters, pagePar
|
||||||
session.region,
|
session.region,
|
||||||
session.city
|
session.city
|
||||||
order by max(website_event.created_at) desc
|
order by max(website_event.created_at) desc
|
||||||
limit 1000)
|
|
||||||
select * from sessions
|
|
||||||
`,
|
`,
|
||||||
{ ...params, search: `%${search}%` },
|
{ ...params, search: `%${search}%` },
|
||||||
pageParams,
|
pageParams,
|
||||||
|
|
@ -83,7 +80,6 @@ async function clickhouseQuery(websiteId: string, filters: QueryFilters, pagePar
|
||||||
|
|
||||||
return pagedQuery(
|
return pagedQuery(
|
||||||
`
|
`
|
||||||
with sessions as (
|
|
||||||
select
|
select
|
||||||
session_id as id,
|
session_id as id,
|
||||||
website_id as websiteId,
|
website_id as websiteId,
|
||||||
|
|
@ -116,8 +112,6 @@ async function clickhouseQuery(websiteId: string, filters: QueryFilters, pagePar
|
||||||
}
|
}
|
||||||
group by session_id, website_id, hostname, browser, os, device, screen, language, country, region, city
|
group by session_id, website_id, hostname, browser, os, device, screen, language, country, region, city
|
||||||
order by lastAt desc
|
order by lastAt desc
|
||||||
limit 1000)
|
|
||||||
select * from sessions
|
|
||||||
`,
|
`,
|
||||||
{ ...params, search },
|
{ ...params, search },
|
||||||
pageParams,
|
pageParams,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue