top | item 13414256

(no title)

lukewink | 9 years ago

In the example given here, how would one answer the following questions:

1. For a given school, return all the students

2. For a given school, return all the classes

In the last data model given (the correct one), the above 2 things can't be done (I think) without doing something funky like enumerating all the Enrollments and finding unique students/classes. In order to modify the data model to provide the needed information, wouldn't you run into the same borrow checker problems?

discuss

order

No comments yet.