Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Avoid needless save when adding a child to a parent that is already part of its dataset #5723

Merged
merged 1 commit into from
Oct 12, 2024

Conversation

nirvn
Copy link
Member

@nirvn nirvn commented Oct 10, 2024

Unconditionally calling save() of a parent feature when adding children can be needlessly costly on online datasets, let's only do it when we absolutely need it (i.e. when a parent feature isn't created yet).

@qfield-fairy
Copy link
Collaborator

@nirvn nirvn merged commit 7ae9dd1 into master Oct 12, 2024
25 checks passed
@nirvn nirvn deleted the avoid_needless_save branch October 12, 2024 02:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants