Is there a negative impact to using the Attribute Pattern?
Example: I have accounts
, each of which references 3 users:
{
"_id": "<objectId>",
"user_master_id": "<string>",
"user_player_id": "<string>",
"user_slave_id": "<string>"
}
100% of accounts have all three and only three users. However, some users are not represented in an account.
Determining if a user is “orphaned” (not in any account) requires 3 separate queries (I believe). “Orphaned” users are an ongoing problem.
I could convert the schema to an Attribute Pattern:
{
"_id": "<objectId>",
"users": [
{ "k": "<string>", "v": "<string>" }
]
}
What would be the drawback of refactoring my solution to use the Attribute Pattern - given that the solution is actually in production?