Missing Records while trasfer data from main table to children #663
-
Good evening Team,
During the migration some of the records are missing, I don't know, when I try to do a count diff there are merely 6 or 7 records missing am I missing something am I giving too many loops? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 8 replies
-
I've not run across this issue nor had anyone report it yet. Without a working example or seeing which records are missing, it would be hard to debug this problem. |
Beta Was this translation helpful? Give feedback.
-
You cannot set the loop value too high. As soon as it's moved all the data, it will stop. I frequently set it to a really high number myself just to make sure it does enough. Perhaps it wasn't enough? Is it actually running 2000 loops? If so, it may not have gotten all the data. Is there any data still left in the source table? |
Beta Was this translation helpful? Give feedback.
Ok, things look normal there. Just going back and looking at your
partiton_data_proc()
call, you've got an interval size of1000
, but you're partitioned by time with a3 month
interval. So it's interpreting your interval value as a number of seconds:1000 sec = 16 minutes
. So it's only moving an amount of data for a 16 minute interval of time each loop and likely not moving everything within 2000 loops.Instead try setting the
p_interval
value to a time interval value that would equate to about how many records you want to move in each transaction loop. Maybe try1 day
and see how long that takes for a single batch. If you're trying to keep your transaction lengths shorter and that takes …