Saving big objects?

Sebastian Sastre ssastre at seaswork.com
Sat Oct 20 12:28:01 UTC 2007


Hi Chris, all,
 
    I've been reading some Gjallar code to see how they use Magma. I saw the
a main object which is tha application model and it has 4 or 5
MagmaCollections in it's instVars.
 
    So I in a load test I've made a model object with a magma collection
with 10000 person objects. It performed nicely.
 
    Then I pushed that by making this person object to store in one of it's
instVars #acts and set up there a magma collection and added 20 acts objects
to every person. So it should end up with 10K persons having one magma
collection with 20 act objects each.
 
    What I've got is a serializer security exception
MaObjectSerializationSecurityViolation saying that one can't serialize
objects of more than 10 megabytes.
 
    I've read about starting small with Magma but I need a glimpse on how
the model I'm thinking on support with Magma will scale. From this test it
seems that Magma collections supports lots of objects but any common object
suporting even a low number of magma collections that will be growing will
easily reach more that 10 megabytes when serialized. So I'm missing
something? There is a more appropiate use of Magma for a model like that?
 
    Same question in other scenario: the main object of the domain model the
root of the application domain from where all is accessed by reachability
will also suffer this limitation. What one can do at that point?
 
    thanks,
 
Sebastian Sastre


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/magma/attachments/20071020/f8b2b0a9/attachment.htm


More information about the Magma mailing list