KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I'm working with a very big text file (755Mb). I need to sort the lines (about 1890000) and then write them back in another file. I already noticed that discussion that has a starting file really similar to mine: Sorting Lines Based on words in them as keys The problem is that i cannot store the lines in a collection in memory because I get a Java Heap Space Exception (even if i expanded it at maximum)..(already tried!) I can't either open it with excel and use the sorting feature because the file is too large and it cannot be completely loaded.. I thought about using a DB ..but i think that writing all the lines then use the SELECT query it's too much long in terms of time executing..am I wrong? Any hints appreciated Thanks in advance
Tags (comma-separated)
Save Edits
Cancel