Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

comment table needs unique key #18

Open
lsloan opened this issue Jun 17, 2023 · 0 comments
Open

comment table needs unique key #18

lsloan opened this issue Jun 17, 2023 · 0 comments
Assignees

Comments

@lsloan
Copy link
Member

lsloan commented Jun 17, 2023

Problem

The number of rows in the comment table grows with each execution because the auto-incrementing id column is the primary key. The other columns that could possibly function as a primary key, assessment_id and criterion_id are not required to be unique.

Solution

Change the primary key from being the id column to a compound key of assessment_id and criterion_id.

@lsloan lsloan self-assigned this Jun 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant