Fast import 10.000 rows

Discussion of open issues, suggestions and bugs regarding ODAC (Oracle Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
crucifix
Posts: 4
Joined: Mon 10 Jan 2011 08:09

Fast import 10.000 rows

Post by crucifix » Wed 24 Aug 2011 12:38

Hi.

I'm doing optimization in our code. I tried different scenarios with different components.

I have big table (150 fields) with trigger, pk, indexes and constraints.

I recognized, that the fastes way to import large number of records is to use BULK INSERT.
I created two procedures on Oracle, one for parsing values one for BULK INSERT.

I tried with ADO connection (TADOStoredProc) and with ODAC connection (TOraStoredProc and TOraLoader (for ordinary insert) with LmDML - because of trigger).
Insert time ADO: 6:00.181 minutes / 10.000 rows
Insert time ODAC: 6 minutes / cca. 1.000 rows (10 times slower) // this result if for StoredProc, OraLoader was more slower
Is there any diffrent approach in ODAC to achieve better performance than ADO for current issue?

Thanks for help.

AlexP
Devart Team
Posts: 5530
Joined: Tue 10 Aug 2010 11:35

Post by AlexP » Fri 26 Aug 2011 14:44

Hello,

Please send a complete sample, reproducing the described problem, including the scripts for creating database objects to alexp*devart*com.

Post Reply