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

minor optimization possible with .only? #116

Open
jerch opened this issue Apr 27, 2022 · 1 comment
Open

minor optimization possible with .only? #116

jerch opened this issue Apr 27, 2022 · 1 comment
Labels
enhancement New feature or request

Comments

@jerch
Copy link
Collaborator

jerch commented Apr 27, 2022

In theory we know all local fields, that are needed to update a cf, thus could lower the db/ORM/memory stress by only loading those fields with .only.

Needs some investigation, whether the savings are worth the trouble, because there is a nasty downside - if a local field was forgotten in the self-depends rule, the field value gets loaded lazy for every single object, thus runtime might explode again for bigger changesets.

@jerch jerch added the enhancement New feature or request label Apr 27, 2022
@jerch
Copy link
Collaborator Author

jerch commented Oct 31, 2023

This is also linked to the issue, that we currently dont have any measures in place to enforce dependency strictness between depends and the function. Also see #135 (comment).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant