473,395 Members | 1,972 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Fastest for Inserting into Oracle?

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
Jul 19 '05 #1
1 7712

"goldenorb82" <go*********@gmail.com> wrote in message
news:23**************************@posting.google.c om...
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
Jul 19 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Raj Kotaru | last post by:
Hi, In sqlplus, I can insert a single row using: insert into employee (name, salary, hiredate) values ('xyz', '86378', sysdate); Is there a modification of the insert command that will...
5
by: Chris | last post by:
i am looking for the fastest way to insert several 1000 trx int oracle. is there a faster way, then using a DataAdapter? is there a possibilty to execute a bulk load (or batchwise insert with...
4
by: Danny Smith | last post by:
Can anyone help? I want to find the fastest way of inserting a large number of records (50,000+) into a SQL Server database (using C#). The records are held in memory and the options I can...
5
by: Gaurav - http://www.gauravcreations.com | last post by:
what is the fastest method to sort and load 1 lakh + strings in a list box from a text file. each string is in a new line -- Gaurav Creations
2
by: clinttoris | last post by:
Hello, If someone could help me it would be appreciated as I am not having much luck. I'm struggling with my asp code and have some questions relating to asp and oracle database. First...
5
by: beersa | last post by:
Hi All, I have to query the database with the string from text file. Here are the details: OS: WinXP Home Pro DB: Oracle 9.x The table in DB has 20,000 rows. The text file has 15,000...
2
by: sdanda | last post by:
Hi , Do you have any idea how to improve my java class performance while selecting and inserting data into DB using JDBC Connectivity ......... This has to work for more than 8,00,000...
1
by: goldenorb82 | last post by:
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...
18
by: boss1 | last post by:
Hi all, i m having a problem with inserting data in oracle db. When i use form action =(call self page) then data is inserting properly.But problem with when using form...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.