Reputation: 43
So I decided to try something new when it comes to working with databases. I am following the one table design that was outlined by : Rick video here.
The one thing I am wondering is if I have an item to store inside the database specifically dynamodb will the cost be the same or different if I am spreading the attributes into their own columns or would it best to store an object (in this case store a list of map items) inside of one column instead of 15 columns? Also, is there a performance difference as well when reading across columns vs reading a larger object?
Ex. |userid|itemid|dataObject| vs |userid|itemid|dataObjectAttribute1|dataObjectAttribute2|...|dataObjectAttribute15
Upvotes: 2
Views: 442
Reputation: 1343
Short answer: Save separate attributes.
Reason for saved separate attributes:
Reason for saved embed attributes as Map:
Upvotes: 2