github-education-resources / classroom

GitHub Classroom automates repository creation and access control, making it easy for teachers to distribute starter code and collect assignments on GitHub.
https://classroom.github.com
1.34k stars 565 forks source link

Missing compound indexes for uniqueness constraints #2000

Open tarebyte opened 5 years ago

tarebyte commented 5 years ago

As I was going through the application today I noticed that in almost every case where we are requiring uniqueness via scope.

Documentation: https://www.postgresql.org/docs/11/indexes-multicolumn.html

I'm opening up a tracking issue to keep tabs on these, it's not 🔥 urgent but as the app gets more traffic this is something we're going to want to do.

Here is the list of every missing compound index I found:

Let me know if I can help clarify or expand upon any of this.

Thanks :sparkles:

stale[bot] commented 5 years ago

This issue has been automatically marked as stale because it has not had recent activity. Thank you for your contributions.