dbTalk Databases Forums  

Optimising Oracle 9i for million-record JDBC read-only access

comp.databases.oracle comp.databases.oracle


Discuss Optimising Oracle 9i for million-record JDBC read-only access in the comp.databases.oracle forum.



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

Default Optimising Oracle 9i for million-record JDBC read-only access - 07-13-2004 , 02:49 PM






Hello --

I am trying to optimise a JDBC connection and an Oracle 9i database
for reading millions of records at a time to a 1 Gig PC running Win2K
or XP. Two questions:

1. Does anyone have suggestions for optimising an Oracle 9i server
(Enterprise Edition, Release 2) for networked read-only JDBC access
with large return sets? With default settings MySQL reads 1M records
2.5 times faster than Oracle even on its first, non-cached execution.

2. Unrelated question: is there a way to read a text field via JDBC
without creating a String object? The memory and GC overheads of
creating millions of objects are becoming a problem, too.

Thanks much!
Howie Goodell

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

Default Re: Optimising Oracle 9i for million-record JDBC read-only access - 07-13-2004 , 07:40 PM







"Howie Goodell" <howie.goodell (AT) gmail (DOT) com> wrote

Quote:
Hello --

I am trying to optimise a JDBC connection and an Oracle 9i database
for reading millions of records at a time to a 1 Gig PC running Win2K
or XP. Two questions:

1. Does anyone have suggestions for optimising an Oracle 9i server
(Enterprise Edition, Release 2) for networked read-only JDBC access
with large return sets? With default settings MySQL reads 1M records
2.5 times faster than Oracle even on its first, non-cached execution.

2. Unrelated question: is there a way to read a text field via JDBC
without creating a String object? The memory and GC overheads of
creating millions of objects are becoming a problem, too.

Thanks much!
Howie Goodell
Try increasing the array fetch or batch fetch to like 100 or so. Also use
prepared statements and reexecute. You can use the oci driver and it should
be faster.
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.