|
|
|
|
|
by llampx
1986 days ago
|
|
Question for the pros: In doing some data engineering work, I found that creating temporary tables and dropping them after the run was much more performant and memory-efficient than using CTEs. No other change was made to the queries in the CTE, just putting them in a separate CREATE TABLE AS... script before the part that needed the calculations. Why is this the case? Shouldn't CTEs be more efficient? |
|
https://paquier.xyz/postgresql-2/postgres-12-with-materializ...