OracleLoader Slow Performance
Posted: Tue 21 Aug 2018 15:51
Hello,
i'm migrating a web application from sql server to oracle and i am evaluating dotConnect for Oracle.
With sql server i used to load data from datasets into the database using SqlBulkCopy and the OracleLoader seemed the best alternative for Oracle but as far as i can see the OracleLoader is terribly slow.
Here is the code snipped that i'm using for the bulk insert, i've done some tests with different datasets and it takes around 10 minutes to load 1k records from a dataset (the same operation using SqlBulkCopy took 783ms)
Am i doing something wrong?
Thank you
i'm migrating a web application from sql server to oracle and i am evaluating dotConnect for Oracle.
With sql server i used to load data from datasets into the database using SqlBulkCopy and the OracleLoader seemed the best alternative for Oracle but as far as i can see the OracleLoader is terribly slow.
Here is the code snipped that i'm using for the bulk insert, i've done some tests with different datasets and it takes around 10 minutes to load 1k records from a dataset (the same operation using SqlBulkCopy took 783ms)
Code: Select all
using (DataLayerUnmanaged DataLayerManager = new DataLayer.DataLayerUnmanaged())
{
using (Devart.Data.Oracle.OracleLoader loader = new Devart.Data.Oracle.OracleLoader())
{
loader.Connection = DataLayerManager.Connection;
loader.TableName = destinationTableName;
loader.BatchSize = dt.Rows.Count;
OracleGlobalization glob = OracleGlobalization.GetApplicationInfo();
glob.DateFormat = "DD/MM/YYYY";
OracleGlobalization.SetApplicationInfo(glob);.
loader.Connection.SetSessionInfo(glob);
loader.LoadTable(dt);
}
}
Thank you