My finder method returns a large number of rows. Is there anyway I can improve the performance by reducing the round trips to database?
Oracle JDBC driver has extensions that allows setting the number of rows to pre-fetch into the client while a result set is being populated during a query, reducing the number of round trips to the server. This can drastically improve performance of finder methods that returns large number of rows by reducing the number of round trips. You can specify the prefetch-size for your finder method in the orion-ejb-jar.xml as follows: