
Originally Posted by
mallma
Hi,
I have given Append hint in the insert query which is loding data from remote DB,eventhough the time taken by the insert query is not reduced.
The table in which I am inserting is not having more than 2 indexes.
There select statment with union all is loading data from remote DB which is inserting 29000 records.Explain plan is using nested loops and index scan.
the select alone is taking seconds. but the insert is taking 2 mitues.
thanks in advance
mallma
I would guess that fetch of 30K records from remote DB.. is taking most of ur time.. you can do a simple test for urself and check it..
Wass ur Arraysize? ( it does matter for data over n/w )
@Hrishy,
Append indeed works if even indexes are there.. but only for table.. for indexes its a usual way to have redo recorded.. And again here your suggestion without even thinking?
Rgds
Abhay.
funky...
"I Dont Want To Follow A Path, I would Rather Go Where There Is No Path And Leave A Trail."
"Ego is the worst thing many have, try to overcome it & you will be the best, if not good, person on this earth"
Bookmarks