perf: break early on match failure in ParseConstraint
This commit is contained in:
parent
a9d27293de
commit
61b5449a62
@ -663,6 +663,7 @@ func (rel *Relationship) ParseConstraint() *Constraint {
|
||||
if !(rel.References[idx].PrimaryKey == ref.PrimaryKey && rel.References[idx].ForeignKey == ref.ForeignKey &&
|
||||
rel.References[idx].PrimaryValue == ref.PrimaryValue) {
|
||||
matched = false
|
||||
break
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user