Since 'connection's and 'friend's is kept as a list of usernames in the AccountEntity, if any user changes their username, the relationships stored in the other AccountEntity's must be updated.
An early design had a "Relationship" collection that held the authoritative relationships and the list on the AccountEntity was just a cached list for performance reasons. Should this design be re-instated?
Since 'connection's and 'friend's is kept as a list of usernames in the AccountEntity, if any user changes their username, the relationships stored in the other AccountEntity's must be updated.
An early design had a "Relationship" collection that held the authoritative relationships and the list on the AccountEntity was just a cached list for performance reasons. Should this design be re-instated?