• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
[Core Data] Lightweight Objects
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[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

  • Follow-Ups:
    • Re: [Core Data] Lightweight Objects
      • From: email@hidden
  • Prev by Date: Change a NSMenu's shape?
  • Next by Date: Re: [Core Data] Lightweight Objects
  • Previous by thread: Re: Change a NSMenu's shape?
  • Next by thread: Re: [Core Data] Lightweight Objects
  • Index(es):
    • Date
    • Thread