File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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 OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA 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: 30392
    
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