An efficient domain model #37
alensiljak
started this conversation in
Open Questions
Replies: 1 comment
-
A great overview with examples is available here: |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Brainstorming what an efficient domain model might be. I'll list a few options that need to be compared. Any input is valuable.
Store entities in Vectors and keep index references in fields. I.e. All Accounts are in a Vector and Posts store indices in Post: :Accounts (Vec) field.
Keep the nested tree. I.e. A Transaction keeps instances in Vec field.
What is the performance of constantly fetching entities from big arrays vs a smaller nested ones?
The operations on lists (Posts, Accounts) are simpler with typed lists.
An additional option would be database storage (#22). This trims the data that needs to be retrieved/parsed but also opens up a question of the data format, persistence, etc.
Beta Was this translation helpful? Give feedback.
All reactions