So i'm developing a server application, that has to store hundreds of thousands (up to a few million in some cases) of classes, serialize them to an SQL database, and load them back several times, and it appears that storing that many class objects to a List is whats throwing an out of memory exception? i think.
So that brings the questions
- how can i avoid such errors while still handling all of my million or so classes?
- are there other problems that can come from having this much data?
- what other things can i do to make sure my server is fully scalable and can ultimately handle and manage as much data possible?
The point of this question being, i will need this many classes all running in memory, as i will need to be continually updating them in such a way that would take longer than i'd like to serialize to an SQL database. Right now, currently, im using less memory then i'd ultimately need even!