I have a card with 75,000 records, and each record value will average 10 KB.
I load this map into memory using the Properties class. But because of the size of the card, I get an OutOfMemoryException when there is not enough RAM on the host.
One option that I have is to read the entries in batches (e.g. 10,000) into memory instead of loading the full map. Read the next 10k after processing the initial 10k.
Is there a way to accomplish this using the Properties class.
Also, is there a better way to load map entries this way?
Thanks and Regards,
Sujit
source
share