473,795 Members | 2,980 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

What is the fastest way to pull data from an Oracle table?

Hello,

I have a pretty large table (22,000 rows, 40 columns) that I need to return
to either a webpage (maybe a datagrid or just a table) or just spit out
directly to Excel. This table is coming from an Oracle database.

The code we are using now uses the Enterprise Library and using the
ExecuteDataSet method. I tried the ExecuteReader, but that didn't seem any
faster. When I use the ExecuteReader my assumption is that I still need to
get it into either a DataTable or DataSet in order to do anything with it. I
haven't found a real good and/or fast way to do that. I can do it, but I
don't image it is very optimized.

What I don't understand is that if I use a query tool, such as Toad or SQL
Navigator, I can pull the entire table in about 10 seconds. If I pull it
through .NET it can take as long as seven minutes. That is even if I just
iterate through the rows, not returning them to a page, just a running count
on my Immediate window. I guess there is much more overhead with .NET, but I
am surprised at such a big difference in time.

My guess is that the Enterprise Library may be slowing things down, but I
have no proof of that or any way to confirm those suspicions.

I would really appreciate any suggestions on getting this to work faster.

Thank you.

-G

p.s. We are using .NET 1.1
Feb 8 '07 #1
2 2173
On Feb 8, 8:46 am, "Gummy" <gumbat...@hotm ail.comwrote:
Hello,

I have a pretty large table (22,000 rows, 40 columns) that I need to return
to either a webpage (maybe a datagrid or just a table) or just spit out
directly to Excel. This table is coming from an Oracle database.

The code we are using now uses the Enterprise Library and using the
ExecuteDataSet method. I tried the ExecuteReader, but that didn't seem any
faster. When I use the ExecuteReader my assumption is that I still need to
get it into either a DataTable or DataSet in order to do anything with it. I
haven't found a real good and/or fast way to do that. I can do it, but I
don't image it is very optimized.

What I don't understand is that if I use a query tool, such as Toad or SQL
Navigator, I can pull the entire table in about 10 seconds. If I pull it
through .NET it can take as long as seven minutes. That is even if I just
iterate through the rows, not returning them to a page, just a running count
on my Immediate window. I guess there is much more overhead with .NET, but I
am surprised at such a big difference in time.

My guess is that the Enterprise Library may be slowing things down, but I
have no proof of that or any way to confirm those suspicions.

I would really appreciate any suggestions on getting this to work faster.

Thank you.

-G

p.s. We are using .NET 1.1
Hi,
Data Retrival using DataReader is the fasted method....
But according to your post it seems you are having problem with
datareader also...
try use oracles dataprovider... . developed by oracle
http://www.oracle.com/technology/tec...net/index.html

Thanks
Masudur
ww.kaz.com.bd

Feb 8 '07 #2
Masudur,

Thank you for the link!
"Masudur" <mu*****@gmail. comwrote in message
news:11******** **************@ m58g2000cwm.goo glegroups.com.. .
On Feb 8, 8:46 am, "Gummy" <gumbat...@hotm ail.comwrote:
>Hello,

I have a pretty large table (22,000 rows, 40 columns) that I need to
return
to either a webpage (maybe a datagrid or just a table) or just spit out
directly to Excel. This table is coming from an Oracle database.

The code we are using now uses the Enterprise Library and using the
ExecuteDataS et method. I tried the ExecuteReader, but that didn't seem
any
faster. When I use the ExecuteReader my assumption is that I still need
to
get it into either a DataTable or DataSet in order to do anything with
it. I
haven't found a real good and/or fast way to do that. I can do it, but I
don't image it is very optimized.

What I don't understand is that if I use a query tool, such as Toad or
SQL
Navigator, I can pull the entire table in about 10 seconds. If I pull it
through .NET it can take as long as seven minutes. That is even if I just
iterate through the rows, not returning them to a page, just a running
count
on my Immediate window. I guess there is much more overhead with .NET,
but I
am surprised at such a big difference in time.

My guess is that the Enterprise Library may be slowing things down, but I
have no proof of that or any way to confirm those suspicions.

I would really appreciate any suggestions on getting this to work faster.

Thank you.

-G

p.s. We are using .NET 1.1

Hi,
Data Retrival using DataReader is the fasted method....
But according to your post it seems you are having problem with
datareader also...
try use oracles dataprovider... . developed by oracle
http://www.oracle.com/technology/tec...net/index.html

Thanks
Masudur
ww.kaz.com.bd

Feb 8 '07 #3

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

Similar topics

6
4888
by: Neal D. Becker | last post by:
I need a fairly small lookup table, and I'm wondering which data python data structure would be fastest. I could use a list, tuple, dictionary, numeric array, or maybe plain python array. The table would be indexed by simple integers and would be dense (filled).
0
3064
by: Allan Lockridge | last post by:
I need to pull 4 resultsets from an Oracle stored proc and display the resulting data in four formatted tables, using alternating colors with totals tallying. Does anyone have a sample showing how to do this in java? I have my HTML page setup to accept the data and process the submit button, but getting the data back is proving troublesome. Thanks in advance, Allan Lockridge
1
1364
by: campwes | last post by:
I've searched the forums, but haven't come up with a way to do this. This is what I want to do: 1. Pull records from an Oracle database into a datagrid on a winform. 2. Select one of those records, and then have a button on the winform generate a document (a letter that is 4 pages in length, and includes text, and tables). 3. After, or during the generation of the letter, save a copy of the letter off someplace on a server.
11
3622
by: hoopsho | last post by:
Hi Everyone, I am trying to write a program that does a few things very fast and with efficient use of memory... a) I need to parse a space-delimited file that is really large, upwards fo a million lines. b) I need to store the contents into a unique hash. c) I need to then sort the data on a specific field. d) I need to pull out certain fields and report them to the user.
1
3458
by: shaguna.dhall | last post by:
I need to migrate Unicode data from MS Access to Oracle. Have tried the following: -Exported the Access tables to csv/txt, but these files were generated in ANSI encoding, and the Unicode data got converted to ASCII characters. -ODBC export directly to the Oracle tables doesn't work either. -However, when the table is exported to excel, Unicode encoding is retained.
5
2180
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 rows. I wrote a program and read the string from text file and run SELECT query in DB
4
2766
by: ink | last post by:
Hi all, I am trying to pull some financial data off of an HTML web page so that I can store it in a Database for Sorting and filtering. I have been thinking about this for some time and trying to find the best way to do it but I am just not experienced enough with this sort of thing to make the best decision, so any advice would be great. The data is on a number of different nested tables with in the HTML, and on a number of different...
3
1146
by: aspdevguy | last post by:
I need to put together a report that will pull data from the following tables: Customers, Orders. The Customers table contains about 11,000 customer records and the Orders table contains about 40,000 order records. What I need to do is basically pull a total number of orders and the total revenue per customer for a given date range. The way it works now is it lists all customers and then it gets a COUNT for all orders for that...
5
4010
by: giandeo | last post by:
Hello Experts. Could you find a solution for this problem please! I have the following tables in Access Database Table Name: origin Fields Names: country, countrycode Table Name: make Fields Names: countrycode, make
0
9522
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10448
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10217
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10167
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
7544
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5440
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5566
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4114
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3730
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.