That is true the PI of second case is the same as the table as I took the definition of table1 to create table2.
However, I thought in the option 1 when you do CREATE TABLE AS SELECT, the new table would get the exact same PI as the table you are creating from. So in both the options, newly created table should have the same PI. But I guess, that is not the case with option 1 and now it makes sense why option 1 is taking longer in some cases.
Thank you both for the clarification.
↧