Topic: ActiveRecord Serialize and Performance
I am trying to serialize a relatively large array (about 400 items, with each item being a hash) to a database record. This operation never completes - I tried replacing the the object with a dummy small hash and it goes through fine. Is there a size limit to the size of an objec that can be serialized?
This whole problem arose because I need to persist a large list over multiple requests (the list is the result of a very expensive operation on multiple XML files). This object is way too big for session, and I though it would be easy to retrieve from an ActiveRecord serialized property.
As far as I've been digging, there is no other space (i.e. ServletContext or ApplicationContext in java world) to store an object like this?
Am I approaching the problem wrong? Are there some best practices to follow here?
Thanks in advance,