Hey there,
just for a second think of what you are asking here:
- please create the join result of the 4 tables (you say this will deliver 10000000 records) and probably you're right as you just do cross joins (any use case for that or just playing around?)
- take the result set above, read it and insert the first 10000 into a table.
Now, take a wild guess, where your memory (how much do you have btw) will be spend?
You might rethink your join conditions here or go for a larger machine.
Unlike other DBMS SAP HANA will never spill out data to disk in order to process requests that are too large.
- Lars