473,385 Members | 1,642 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,385 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 7711

"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...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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...

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.