Namespace dimension vs. lightweight IDs #5361
Labels
api-changes
Changes in the API for client libraries
Optimization
Something isn't working as well as it should
question
Further information is requested
Milestone
Current Design
AccountId
AssetDefinitionId
AssetId
is a cartesian product of these elementsThis design allows:
account@domain
andaccount@another_domain
to be completely separate walletsasset#domain
andasset#another_domain
to be distinct assets without namespace conflictsAlternative Approach
Instead of embedding relationships within primary entities, we could store relationships in separate tables.
For example, a table for account balances could focus only on account and asset primary keys, ignoring domain-level complexity.
This would reduce identifier size at the cost of reducing namespace depth and introducing an operational overhead similar to RDB's JOIN.
The text was updated successfully, but these errors were encountered: