Skip to content

Remove redundant group.save() in addValidatedProof#1067

Open
MozirDmitriy wants to merge 1 commit intosemaphore-protocol:mainfrom
MozirDmitriy:hore/remove-redundant-group-save
Open

Remove redundant group.save() in addValidatedProof#1067
MozirDmitriy wants to merge 1 commit intosemaphore-protocol:mainfrom
MozirDmitriy:hore/remove-redundant-group-save

Conversation

@MozirDmitriy
Copy link

The group.save() call in addValidatedProof saved the Group entity without any modifications. Since Group.validatedProofs is defined via @derivedFrom(field: "group"), The Graph resolves the relation from the child (ValidatedProof.group) and does not require saving the parent. Removing this avoids an unnecessary store write during indexing.

@MozirDmitriy MozirDmitriy requested a review from a team as a code owner November 10, 2025 17:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant