source-academy / backend

Backend of Source Academy @ NUS, LMS extension of Source Academy (Elixir, Ecto, Phoenix, PostgreSQL)
https://sourceacademy.nus.edu.sg
Apache License 2.0
39 stars 50 forks source link

Unnecessary logic #1168

Open RichDom2185 opened 1 month ago

RichDom2185 commented 1 month ago
image

Grouping by answer ID (the PK) gives one result, so no need to aggregate, can just select XP etc. directly?