> In EdgeQL every value is a set This is trouble for the example for calculating the average number of reviews across movies: SELECT math::mean( Movie { description, number_of_reviews := count(.reviews) }.number_of_reviews ); Never mind, they are not sets: > Strictly speaking, EdgeQL sets are multisets, as they do not require the elements to be unique. The relational model is firmly based on the idea of a relation as…
1. Elimination of duplicates from every projection is prohibitively expensive.
2. Sometimes you actually _want_ duplicates to show up without injecting a synthetic key into every projection.
3. There's DISTINCT.