New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Validators should detect/autorepair duplicate items in Lists #111

Closed
frizbog opened this Issue Jul 6, 2016 · 2 comments

Comments

Projects
None yet
1 participant
@frizbog
Owner

frizbog commented Jul 6, 2016

There are a number of lists in the object model that arguably should not contain duplicated data. I use the phrase "arguably should not" because while the spec does not say these duplicates are forbidden or even wrong, it would make no sense.

Examples:

  • Lists of Notes attached to most objects
  • Lists of children in a FamilyChild (the same child should not be in the list twice)
  • Lists of Multimedia attached to Individuals, Families, etc.

This is a compromise (in response to Issue #84) to avoid adding the memory overhead of using HashSets or LinkedHashSets instead of ArrayLists in the underlying data model (HashSet uses 28 bytes more per item than an ArrayList, and a LinkedHashSet uses 36 more bytes per item).

@frizbog frizbog added the enhancement label Jul 6, 2016

@frizbog frizbog added this to the Release 3 milestone Jul 12, 2016

@frizbog frizbog self-assigned this Jul 12, 2016

@frizbog

This comment has been minimized.

Owner

frizbog commented Jul 14, 2016

I've started this work in v3-development branch

@frizbog

This comment has been minimized.

Owner

frizbog commented Jul 16, 2016

Released in v3.0.0

@frizbog frizbog closed this Jul 16, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment