[Core Data] Lightweight Objects
[Core Data] Lightweight Objects
- Subject: [Core Data] Lightweight Objects
- From: "Paul Sargent" <email@hidden>
- Date: Sat, 10 Nov 2007 10:02:57 +0000
Hi,
Hopefully this is a simple question:
I have a core data application in mind, and I'm wondering what the best way
to organise my model would be. The bit that has me concerned is that I have
an entity (let's call it "aLog") that has associated with it an ordered set
of 1 byte values that's variable in number. They are data samples from an
device which captures data. There's no real limit on how many samples might
exist in a log.
So, I could have:
aLog ----to many---> aSample
But that seems very wasteful, especially as the sample will probably need an
Id number to keep sequence and possibly a reverse relation to say which log
a sample belongs to. Multiply up by thousands of samples and that seems
silly.
So I'm thinking it would be nice to store the samples in a property of the
"aLog" entity. A String with no max length? A BLOB?
Any suggestions?
Paul
_______________________________________________
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