You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
Problem
The number of rows in the
comment
table grows with each execution because the auto-incrementingid
column is the primary key. The other columns that could possibly function as a primary key,assessment_id
andcriterion_id
are not required to be unique.Solution
Change the primary key from being the
id
column to a compound key ofassessment_id
andcriterion_id
.The text was updated successfully, but these errors were encountered: