Skip to content

Commit

Permalink
fix: ogid caching for better insert / update performance
Browse files Browse the repository at this point in the history
  • Loading branch information
garethgeorge committed Jan 8, 2025
1 parent dbcaa7b commit d9cf79b
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions internal/oplog/sqlitestore/sqlitestore.go
Original file line number Diff line number Diff line change
Expand Up @@ -564,15 +564,17 @@ func (m *SqliteStore) ResetForTest(t *testing.T) error {
}

type opGroupInfo struct {
repo string
plan string
inst string
repo string
repoGuid string
plan string
inst string
}

func groupInfoForOp(op *v1.Operation) opGroupInfo {
return opGroupInfo{
repo: op.RepoId,
plan: op.PlanId,
inst: op.InstanceId,
repo: op.RepoId,
repoGuid: op.RepoGuid,
plan: op.PlanId,
inst: op.InstanceId,
}
}

0 comments on commit d9cf79b

Please sign in to comment.