Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Result Set in memory or connected to database ?

 
Nitin Dubey
Ranch Hand
Posts: 126
Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello folks,
I have a simple doubt. And it grew to be a topic of debate between my friends . But no conclusion yet.
Here's a statement :
1. ResultSet object has all the fields fetched from database in memory(RAM). (Assuming that we are using JDBC ODBC Driver for SQL Server).
(True/False)
nitin
 
Peter den Haan
author
Ranch Hand
Posts: 3252
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
False. In general, ResultSets are connected objects, and the JDBC driver will not load the entire set in memory. As far as I know the jdbc-odbc bridge is no exception.
- Peter
 
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!