I have an Entity in Core Data that contains multiple "small" attributes like String and Int. But I also have one binary attribute that contains ~500kb data. This attribute is specific and unique for each dataset.
I'm now wondering if I should create a new entity only for this attribute (using relationship)
Are there any performance problems when I keep this attribute in one entity? I'm asking because I checked a few online example projects using Core Data that created a dedicated entity for large data.
That's a common setup, as you've seen. Whether it's good depends very much on the performance implications. The point of this technique is to avoid loading the binary data except when it's necessary. By doing this:
If the binary data is an image, another common technique is to combine the two by including a scaled-down thumbnail in the entry, and put the full size image somewhere else. Then you can display smaller images (in a list or table view maybe) but still get most of the memory improvement of using a separate entity.