A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Murach's Java Servlets and JSP
this week in the
I/O and Streams
How to create flate from Resultset?
Joined: Jun 06, 2008
Jun 06, 2008 06:51:00
I have resultset of size of 50000 records, I need to wite to flat file, I am using I/O objects like follows:
outPW_FlatFile = new
I am getting outof mememry exception. what is the optimal ways to create the flat file?
Joined: Oct 29, 2001
Jun 06, 2008 06:53:00
Welcome to the JavaRanch.
Rather than read in all 50000 records then writing them to a file, try reading a subset of the result set, 1 or 1000, and write that block to the file.
"blabbing like a narcissistic fool with a superiority complex" ~ N.A.
How To Ask Questions On JavaRanch
Did you see how Paul
cut 87% off of his electric heat bill with 82 watts of micro heaters
subject: How to create flate from Resultset?
problem with "group by"
Creating a flat file
Problem facing with FlatFIle adapter in websphere integration developer7.0
My Data over The network
UNIX - JAVA database or random access
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014