fix: ogid caching for better insert / update performance
Some checks are pending
Build Snapshot Release / build (push) Waiting to run
Release Please / release-please (push) Waiting to run
Test / test-nix (push) Waiting to run
Test / test-win (push) Waiting to run

This commit is contained in:
Gareth George
2025-01-07 21:12:45 -08:00
parent dbcaa7b4fb
commit d9cf79b48a

View File

@@ -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,
}
}