large sql resultsets in java -
Can I get big results in Java? I have around 140,000 rows with 3 columns.
There is no specific way of achieving a large result set; This can be done by jdbc like any other database query
The key is how the results are handled. 140,000 small records are not very high, but if they have a problem keeping them in the application memory once in a while, then consider whether they can be processed "streamwise"? That is, use the necessary information from each record, then discard the record before retrieving the next. In this way, the requirement of memory does not depend on the number of records in the result set.
Comments
Post a Comment