I have 2 tables one with around 1m entries and other around 4m. I want to join these tables in a material view. But the material view creation time is taking too long ~4 hours.
Slow postgres query when joining large tables
i don't see the indexes being used, which is fine as per the answer in link above when join involves whole tables then indices dont help so much.
So what is the workaround? My tables have time-eries data. Would TimeScaleDB extension be of any help? Any other suggestion to improve the performance ?