so what I want is to optimize the process of inserting many rows into one table.
I have two select statements -
one generates 800 rows (x)
another one 150 rows (y).
I want to INSERT into table (x, y) values so that for every x there will be all the 150 rows from x2 meaning there should be 120 000 entries in total.
Meaning:
x1-y1
x1-y2
x1-...
x1-y150
..
x800-y1
x800-y2
...
x800-y150
I can't make head or tail of it and I'm pretty sure it is really simple.
cross join.