How far should i normalize my DB?
I am making a website which will help students with exam prep. Here we include past exams etc. For now we have user, exam, examsubmissions.
3 Replies
Here are the schemas:
What's the purpose of ExamAnswer? In my opinion, if I would save the answer, then I would persist the Question as well. But that's just my opinion. And what about the ExamSubmissions? Whats the DTO?
I mean, just make sure each field is only stored once. It's called level 4a or something like that I think, I don't remember. Then denormalize if you need to optimize certain queries to remove a join
you just need to make it the most maintainable at the start
which basically means no duplicated data
that's how I'd go about it