is there any difference in terms of performance regarding Insert into and Insert /*+direct*/ into
insert into dws.test select * from dws.test_src limit 2000000 ---> 36s
insert /*+direct*/ into dws.test select * from dws.test_src limit 2000000 ---> 44s
per the document, I expect to some performance improvement by using the /*+direct*/ keyword, but apparently not in my test case, any suggestion?
insert /*+direct*/ into dws.test select * from dws.test_src limit 2000000 ---> 44s
per the document, I expect to some performance improvement by using the /*+direct*/ keyword, but apparently not in my test case, any suggestion?
0
Comments
It all depends on your data.
Direct keyword uses ROS (Disk) for data storage while loading
Without Direct keyword the insert statement uses WOS (Memory) while loading data.
If Rows loaded is less and kind of trickle loading, then you are good to use insert statements without DIRECT keyword.
If Rows loaded are more and its bulk loading (twice or thrice a day) then use Direct keyword, as it will minimize the background task time consumption , since there will be no moveout required.
Hope this helps.
NC