|
|
|
|
|
by jpalomaki
87 days ago
|
|
Sometimes easy performance trick is to split the CTE to separate queries, put the results to unlogged temporary tables and add whatever indexes the next step needs. Obviously makes only sense for stuff like analytical queries that are not running constantly. |
|