I have the following query:
INSERT INTO table(field, field1)
SELECT value, value1 FROM table2 e
ORDER BY value
which takes less time than this one:
INSERT INTO table(field, field1)
SELECT value, value1 FROM table2 e
Does anyone know why?
The execution plan of the second one shows that sql does an "order by" operation anyway, but is less performant than mine