K
koluwa
Hi all,
I have a method in my data access layer, which retrieves a huge chunk of
data from an oracle 8i server. My problem is, this method has 3 levels of
nested (Select) queries. After executing the first query, I have to run
another query for each row of that ResultSet (using some of the values
extracted from the outermost query), and from the ResultSet of the second
query, I have to make another select query. All these queries are done on 3
different tables (currently there are no joins in the SQL).
This seems to be a huge performance issue (and poor design) since there will
be thousands of DB queries when the method returns. Does anyone know of a
solution for minimizing the amount of DB calls made from this method? Can
this be minimized with the use of java Collections? SQL joins?
Thanks in advance,
koluwa
I have a method in my data access layer, which retrieves a huge chunk of
data from an oracle 8i server. My problem is, this method has 3 levels of
nested (Select) queries. After executing the first query, I have to run
another query for each row of that ResultSet (using some of the values
extracted from the outermost query), and from the ResultSet of the second
query, I have to make another select query. All these queries are done on 3
different tables (currently there are no joins in the SQL).
This seems to be a huge performance issue (and poor design) since there will
be thousands of DB queries when the method returns. Does anyone know of a
solution for minimizing the amount of DB calls made from this method? Can
this be minimized with the use of java Collections? SQL joins?
Thanks in advance,
koluwa