mirror of
https://github.com/garethgeorge/backrest.git
synced 2025-10-30 12:17:03 +00:00
fix: ogid caching for better insert / update performance
This commit is contained in:
@@ -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,
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user