File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JDBC and Relational Databases 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
JavaRanch » Java Forums » Databases » JDBC and Relational Databases
Bookmark "JDBC Oracle Cursor Vs Array" Watch "JDBC Oracle Cursor Vs Array" New topic

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)
Array of objects (using ARRAY of STRUCT )
Jeanne Boyarsky
author & internet detective

Joined: May 26, 2003
Posts: 33130

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.

[OCA 8 book] [Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Other Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, 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.
I agree. Here's the link:
subject: JDBC Oracle Cursor Vs Array
jQuery in Action, 3rd edition