Hacker News new | ask | show | jobs
by jansommer 1640 days ago
CTE's are indeed nice, but can also make your queries substantially slower, at least in Postgres
1 comments

That's mainly true because you don't have the benefit of an index when you join on a CTE, isn't it?
It'a slow even without indexes. In other cases, where the CTE is used multiple times in the same query, it can be faster