opteryx icon indicating copy to clipboard operation
opteryx copied to clipboard

✨ with temp table created materialised view

Open joocer opened this issue 3 years ago • 2 comments
trafficstars

vs CTE which creates a plan which is inserted when called.

joocer avatar Oct 14 '22 18:10 joocer

SELECT name, id INTO TEMPORARY [UNLOGGED] TABLE _TEMP FROM $planets; SELECT * FROM _TEMP;

joocer avatar Oct 16 '22 23:10 joocer

Materialised view should probably be saved to disk rather than kept in memory. Could have a config setting for maximum size of materialised subqueries to keep in memory.

This will also need a setting for where to spill data to. This should be limited to file/blob stores.

Once we have the ability to spill, we can spill in other situations.

joocer avatar Oct 26 '22 10:10 joocer