Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Reply
Developer
Posts: 27
Registered: ‎06-08-2009
My Device: Not Specified

Persisting objects with ObjectGroup

I have a custom object implementing Persistable (lets call it A) with 4 String fields and Vector. The Vector again contains a collection of custom object which has 3 fields each. The vector is expected to have 40 elements. So an instance of A to be stored in persistence will have 40*3+5 = 125 handles.

 

I try to group a Vector with 30 instances of A in a ObjectGroup using ObjectGroup.createGroup. So thats like 30*125=3750 handles. When I execute createGroup, I get ObjectGroupTooBigException. I even tried minimizing the number of elements with 10*125 = 1250 but still the exception prevails. When I tried ObjectGroup.createGroupIgnoreTooBig though, everything works fine.

 

My question is, is using createGroupIgnoreTooBig recommended ? Should I make any changes to my persistence model ?