This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes JDBC and the fly likes JDBC Oracle Cursor Vs Array Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "JDBC Oracle Cursor Vs Array" Watch "JDBC Oracle Cursor Vs Array" New topic
Author

JDBC Oracle Cursor Vs Array

Babji Reddy
Ranch Hand

Joined: Jan 24, 2006
Posts: 106
In JDBC using Oracle Oci driver
Which one does perform better processing multiple (thousands) records?
Using cursor of records (using ResultSet)
or
Array of objects (using ARRAY of STRUCT )
Thanks
Jeanne Boyarsky
internet detective
Marshal

Joined: May 26, 2003
Posts: 30361
    
150

Babji,
I have no idea, but to help others who might - what are you trying to do? A select, an update, an insert, ...?

You could also try it by writing a simple program that does it both ways.


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
Babji Reddy
Ranch Hand

Joined: Jan 24, 2006
Posts: 106
Mostly its selects, but there could be few inserts too.
I want to know the standarad practise that people use in enterprise applications.
Thanks
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JDBC Oracle Cursor Vs Array