0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-04-08 02:52:39 -05:00

Removed _mv_session_data materialized view from Tinybird schema (#22682)

no issue

- The materialized view was duplicating data, so until we figure that
out we'll query straight from the pipe, without the materialized view.
This commit is contained in:
Chris Raible 2025-03-27 12:31:32 -07:00 committed by GitHub
parent 9f7a0c9191
commit a26b910f4e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 3 additions and 10 deletions

View file

@ -31,7 +31,7 @@ SQL >
%
select session_id
from _mv_session_data sd
from mv_session_data sd
inner join filtered_sessions fs
on fs.session_id = sd.session_id
where
@ -44,11 +44,11 @@ NODE top_sources
SQL >
%
select
select
source,
count() as visits,
sum(pageviews) as pageviews
from _mv_session_data sd
from mv_session_data sd
inner join source_sessions ss
on ss.session_id = sd.session_id
where
@ -62,5 +62,3 @@ SQL >
group by source
order by visits desc
limit {{ Int32(skip, 0) }},{{ Int32(limit, 50) }}

View file

@ -27,8 +27,3 @@ SQL >
pageviews = 1 AS is_bounce,
source
FROM mv_hits_0
TYPE materialized
DATASOURCE _mv_session_data