ReferenceItem appendValue is O(n)
ReferenceItem appendValue is O(n). Note that appendValues (plural) does not have the same performance issue (if all insertions are done with a single call).
- Do not check if value is already present in storage.
- Add API to ReferenceItem, ResourceItem, ComponentItem:
- contains(x)
- appendUniqueValue(x)
- appendUniqueValues(x)
- Document carefully (and test?) with regard to multiple association.
Edited by David Thompson