re: Core Data: relationship 'too large' when saving
re: Core Data: relationship 'too large' when saving
- Subject: re: Core Data: relationship 'too large' when saving
- From: Ben Trumbull <email@hidden>
- Date: Thu, 24 Sep 2009 22:47:50 -0700
I am encountering an error that I have not seen before.
While saving in a NSManagedObjectContext I am encountering an error
that reports a to-many relationship as 'too large'.
This relationship has ~10,000 members but each member is relatively
simple consisting of a few short strings and numbers.
I have no problems operating on this relation; the error only occurs
while saving.
Many GB of disk space are available. Error occurs independent of store
type, SQLite, binary, or xml.
Smaller (different) relations of ~1000 members are correctly saved.
1) Is this really a size problem?
No. I suppose it's possible there's a 16 bit overflow bug somewhere,
but there shouldn't be (obviously), and I can't imagine any issue with
10,000. It is possible for you to set the maximum size of a to-many
relationship in your model. Did you check the property validation
rules for this relationship ?
2) can someone point me to relevant documentation?
You sure it's not NSValidationNumberTooLargeError for one of the
numbers being outside the range you specified acceptable in the model ?
- Ben
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden