shashank beerla wrote:Are you asking me to increase the private static final double MEG = (Math.pow(1024, 2)); size to 8192?
No, because 1048576 is greater than 8192. That wouldn't be an increase.
I didn't get your advise when you mentioned use multiple writers. I am iterating through list of objects and writing to the CSV file. How can i use two writers to accomplish what I am doing
That's because I didn't mention "multiple writers" at all. I don't know where you got that idea from. And if you think I was telling you to use two writers, I don't know where you got that idea from either. On the other hand if that was your idea, then don't do that. Just use one BufferedWriter and write the data to it. Don't forget to close it when you're finished.