Query cost: Global Temporary Tables vs. Collections (Virtual Arrays)
问题 I have a query whose results are stored in a GTT (Global Temporary Table) and in a Collection. Selecting the data from the GTT again, I get a very small cost: 103. SELECT ... FROM my_table_gtt JOIN table2 ... JOIN table3 ... But when switching this from a GTT to a Collection (VA - Virtual Array), the cost skyrockets (78.000), but the difference in execution times between the two is very small. SELECT ... FROM TABLE(CAST(my_table_va as my_table_tt)) JOIN table2 ... JOIN table3 ... My question