oracle10g - Help Optomizing Bulk Inserts into Oracle Using VB.NET -


I am inserting a block of 5000 records at a time, right after the second one block command in a different DLL Have been created and can call any of 4 different stored procedures. Is there a bulk method which can accelerate it? Transcription takes about 1.5 MC per record and wants to get around 7 MS from the bottom

Thanks,

Dave

  Shared sub WriteCMSMessagesToDatabase (List as feature type, MyValility as ByVal command (System.Data.OracleClient New OracleCommand as a slow Oracle connection, try a new stopwatch as the new OracleConcondation slow _Cmd as the key of OracleCommand. Connection String _Cmd.Connection = oracleConnection _Cmd.CommandType = CommandType.StoredProcedure oracleConnection.Open () _Cmd. Transaction = oracleConnection.BeginTransaction for each ACMD in the form of OracleCommand _Cmd.CommandText = aCmd.CommandText _Cmd.Parameters.C For each aParam, ACMD as Oraclepamator parameter. New OraclePRMMRPMRM = CTEP (CMOD, OracleParameter), _Cmd.Parameters.Add (PRM) Next _Cmd.ExecuteNonQuery () Next _Cmd.Transaction.Commit () aStopWatch.Stop () Using End Catch If you're using Oracle ODP If you are using Net Client, try the exception end and end  

According to your query, multiple records can be added and shown in single database round travel by binding an array of values ​​in each parameter. I'm not sure if the System.Data.OracleClient class supports this functionality, although this can not be an option if it is not and you can not change the provider.


Comments

Popular posts from this blog

sql - dynamically varied number of conditions in the 'where' statement using LINQ -

asp.net mvc - Dynamically Generated Ajax.BeginForm -

Debug on symbian -