T
Thomas Pagel
Hi,
we want to build an application which copies all data from the source to the
destination without changing anything.
We use data adapters for this process. So we open both adapters, use "fill"
on the source and give an "update" to the destination.
The problem is that the table we want to copy is quite large. So we see
quite a memory usage. So we decided to move the data in blocks, 1000 records
at a time. We use the dataadpter.fill(dataset,0,1000,tablename) to read the
first records, then we do an update, then the next fill
(dataadpater.fill(dataset,1001,2000,tablename) and loop that till EOF.
We see that the programm moves the first records quite quickly but gets
slower and slower over time. Our idea is that the dataadapter take more and
more time to skip the first records of the source to get to the real
"payload".
Is there anything we can do better? We simply want to move the first 1000
records, then the next 1000, and so on...
Thanks,
Thomas
we want to build an application which copies all data from the source to the
destination without changing anything.
We use data adapters for this process. So we open both adapters, use "fill"
on the source and give an "update" to the destination.
The problem is that the table we want to copy is quite large. So we see
quite a memory usage. So we decided to move the data in blocks, 1000 records
at a time. We use the dataadpter.fill(dataset,0,1000,tablename) to read the
first records, then we do an update, then the next fill
(dataadpater.fill(dataset,1001,2000,tablename) and loop that till EOF.
We see that the programm moves the first records quite quickly but gets
slower and slower over time. Our idea is that the dataadapter take more and
more time to skip the first records of the source to get to the real
"payload".
Is there anything we can do better? We simply want to move the first 1000
records, then the next 1000, and so on...
Thanks,
Thomas