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

Safeguard from triggering needless feature gathering when referincing feature list model gets passed the same feature #4645

Merged
merged 1 commit into from
Oct 15, 2023

Conversation

nirvn
Copy link
Member

@nirvn nirvn commented Oct 15, 2023

Our referencing feature list model was needlessly triggering (possibly costly) features fetches when the referencing feature property was set with the exact same feature (which does happen when QML builds our feature form item). This offers yet another nice optimization for our feature form.

This PR also fixes #3031 . It doesn't fix the root cause of it (it freezes in the OGR connection pool, stuck in a loop evaluating expressions et al), but by axing the number of feature fetches by half, the connection pool never gets saturated.

… feature list model gets passed the same feature
@qfield-fairy
Copy link
Collaborator

@nirvn nirvn enabled auto-merge (rebase) October 15, 2023 07:57
@nirvn nirvn merged commit 438c0c8 into master Oct 15, 2023
21 checks passed
@nirvn nirvn deleted the referencing_feature_needless_gather branch October 15, 2023 09:51
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.

Expressions like represent_value in related layers cause freezing
3 participants