Meaningless Drivel is fun!
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

Win a copy of Head First Android this week in the Android forum!
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: 32319

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]
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.
wood burning stoves
subject: JDBC Oracle Cursor Vs Array
It's not a secret anymore!