c# - OracleBulkCopy Performance -
my c# .net app writes millions of records temp table using oraclebulkcopy. every time app has 20000 records or more in memory call oraclebulkcopy write of them in single batch (i using batch size = 0). @ beginning table empty , takes 2 seconds write whole batch. during process time writing batch increases. after 2.000.000 records each call takes 25 seconds. using default options of oraclebulkcopy. doing tests when table reaches 40.000.000 takes 3 minutes write 20.000 records.
i know if there recommendation (i couldn't find it) in order maintain constant time each call. doing wrong?
seems strange behaviour. have traced database session doing inserts see waiting on?
alter session set timed_statistics=true; alter session set max_dump_file_size=unlimited; alter session set events '10046 trace name context forever, level 8';
99 times out of 100, trace results point @ problem in these strange slow down cases.
Comments
Post a Comment