General topic questions
Room Relations
MediumOccasional
Free section · general topics & algorithms
How do @Relation and embedding differ?
Reveal model answer
Embedded flattens nested objects in one table mapping. Relation runs additional queries for 1:N/N:M. Watch N+1 query patterns; use @Transaction.