On MPP database platforms, INSERT INTO statements as used here are extremely slow. We should use SELECT INTO statements, creating several temp tables, and merging them into the final temp table using another SELECT INTO. This will be several orders of magnitude faster on some platforms.
On MPP database platforms, INSERT INTO statements as used here are extremely slow. We should use SELECT INTO statements, creating several temp tables, and merging them into the final temp table using another SELECT INTO. This will be several orders of magnitude faster on some platforms.