DEV Community

Discussion on: [Best practice] C# 9 Records as DDD Value Objects with EF Core 6

Collapse
 
antoniofalcaojr profile image
Antonio Falcão Jr.

Hi @brokenthorn , thanks for the comment!

It's a trade-off between "JOIN" and "Let the table grow as the number of value objects grows".

In this case, I think those depend on the context.

Collapse
 
marchy profile image
Marcel Bradea

Remember tables are for computers not humans.

You should do what is most performant not what is "easiest to read".
Your context hasn't been stated – but in general for databases optimize for the machine, not the human. That's what OO is for.