can someone help me understand the identity property on an entity attribute? Im thinking of the identity property as a table "key" as in a Relational Database, but I'm guessing this is not it. Im using core data and in my entities I have not defined any "Key" columns, and all is working fine. But now that I have added sync services to my app, Im not sure how to use this sync attribute. My app is a task management planner, so I have an entity called task. I have an attribute called "name" , "due date" and other optional attributes. If I have 2 tasks with the same name, I want them both sync, so Im guessing the identity property wont do me good if I set it on the attribute "name". Right now I have not used it, and sync services is working fine... So my question is, in what other scenarios should I use the identity property?
Related Questions in COCOA
- Getting entity with a join table GAE
- Google datastore multiple values for the same property
- I am working on small project with Google AppEngine (Python), tutored by Udacity. I am unable to render user comments to main page
- How to upload images and storing it in db google app engine
- app engine ndb fetch is very slow
- how to optimize this code? I want to fix the DeadlineExceededError issue
- Performance of Objectify filter
- Datastore error: Your request included invalid parameters
- Google Cloud Datastore avoid entity overhead when fetching
- Is GAE Datastore encrypted?
Related Questions in CORE-DATA
- Getting entity with a join table GAE
- Google datastore multiple values for the same property
- I am working on small project with Google AppEngine (Python), tutored by Udacity. I am unable to render user comments to main page
- How to upload images and storing it in db google app engine
- app engine ndb fetch is very slow
- how to optimize this code? I want to fix the DeadlineExceededError issue
- Performance of Objectify filter
- Datastore error: Your request included invalid parameters
- Google Cloud Datastore avoid entity overhead when fetching
- Is GAE Datastore encrypted?
Related Questions in SYNCSERVICES
- Getting entity with a join table GAE
- Google datastore multiple values for the same property
- I am working on small project with Google AppEngine (Python), tutored by Udacity. I am unable to render user comments to main page
- How to upload images and storing it in db google app engine
- app engine ndb fetch is very slow
- how to optimize this code? I want to fix the DeadlineExceededError issue
- Performance of Objectify filter
- Datastore error: Your request included invalid parameters
- Google Cloud Datastore avoid entity overhead when fetching
- Is GAE Datastore encrypted?
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Popular Tags
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Are you using the standard definition of a task entity from Sync Services? Apple defined one fairly well:
http://developer.apple.com/library/mac/#documentation/AppleApplications/Reference/SyncServicesSchemaRef/Articles/Calendars.html
If so, there are three identity properties (summary, record id and calendar).
If you're defining your own entity (not sharing with the system entity) you can make additional attributes identity properties - I'd probably go with "name" and "due date" for sure; you could also add in a "created date" to ensure that you are able to truly create a unique value to compare records using.
In my experience, however, Sync Services has done a good job keeping track of tasks with the identity properties of the system's schema - I can't remember the last time I saw duplicate tasks coming through my own or user's data.
Tell me more about why you might not want to use the system schema but instead roll your own - I can think of pros and cons to each.