Mohan
11/05/2025, 6:27 PMcreate table default_catalog.gate.society_resident_parties_mv partition by (society_id) as
SELECT
p.id,
p.name,
p.type,
p.status as p_status,
p.email,
p.phone_raw,
s.society_id,
s.apartment_id,
s.relation,
s.sub_relation,
s.status as s_status
FROM <http://gate.party|gate.party> AS p
INNER JOIN gate.apartment_society_person AS s
ON p.id = s.person_id where p.type = 'PERSON';
this is taking lot of time and not even completing even after 30mins, joined result has 75lakh records with 16k distinct societies.
If I run without partition, it is getting completed in a minute.
I tried the same way with async materialized view as well, it is also not syncing(taking lot of time) couldn't see full output in MV.
Is there something I am doing wrong and anything to consider?jeff.ding
11/06/2025, 9:26 AMRaghu Koratagere
11/06/2025, 10:16 AMjeff.ding
11/07/2025, 1:33 AMRaghu Koratagere
11/07/2025, 5:11 PMjeff.ding
11/08/2025, 7:17 AMCREATE TABLE default_catalog.gate.society_resident_parties_mv
DISTRIBUTED BY HASH(society_id) BUCKETS 32
AS
SELECT
p.id,
p.name,
p.type,
p.status as p_status,
p.email,
p.phone_raw,
s.society_id,
s.apartment_id,
s.relation,
s.sub_relation,
s.status as s_status
FROM <http://gate.party|gate.party> AS p
INNER JOIN gate.apartment_society_person AS s
ON p.id = s.person_id
WHERE p.type = 'PERSON';Raghu Koratagere
11/21/2025, 9:33 AM