dbTalk Databases Forums  

Fastest for Inserting into Oracle?

comp.databases.oracle comp.databases.oracle


Discuss Fastest for Inserting into Oracle? in the comp.databases.oracle forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
goldenorb82
 
Posts: n/a

Default Fastest for Inserting into Oracle? - 07-30-2004 , 12:26 PM






Hello,
I am a .NET newbie and have been doing a lot of reading to answer my
question, but i am guessing that it is so basic, there isn't a lot
available out there. Here's my problem: I am creating an API written
in C# that connects to the Oracle Database and reads/writes data. I
have an array that contains the information that will be input into
the 45 columns of the database. At some point I need to be able to
insert maybe 5-6 thousand records at a time because one a time will be
very slow since there should be nearly 60,000 records in the database.
In my reading I have found the following methods to do a bulk insert:

1. Bulk Bind
2. Insert into Select *... (I know this doesn't make sense in my case)
3. Batch Insert
4. Insert DataSet

Which (if any) would be fastest and most sensible for my situation? I
have really don't know much about what any of these mean, but if i'm
pointed in the right direction, that would be a great help.

thank you

Reply With Quote
  #2  
Old   
Jim Kennedy
 
Posts: n/a

Default Re: Fastest for Inserting into Oracle? - 07-30-2004 , 11:21 PM







"goldenorb82" <goldenorb82 (AT) gmail (DOT) com> wrote

Quote:
Hello,
I am a .NET newbie and have been doing a lot of reading to answer my
question, but i am guessing that it is so basic, there isn't a lot
available out there. Here's my problem: I am creating an API written
in C# that connects to the Oracle Database and reads/writes data. I
have an array that contains the information that will be input into
the 45 columns of the database. At some point I need to be able to
insert maybe 5-6 thousand records at a time because one a time will be
very slow since there should be nearly 60,000 records in the database.
In my reading I have found the following methods to do a bulk insert:

1. Bulk Bind
2. Insert into Select *... (I know this doesn't make sense in my case)
3. Batch Insert
4. Insert DataSet

Which (if any) would be fastest and most sensible for my situation? I
have really don't know much about what any of these mean, but if i'm
pointed in the right direction, that would be a great help.

thank you
Use Oracle's OCI api and using bind variables do array insert.
Jim




Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.