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

I1927 Accelerate poll.stop by reducing locked fields #1928

Merged

Conversation

r-peschke
Copy link
Member

@r-peschke r-peschke commented Oct 17, 2023

Removes unnecessary lock_fields for memory and performance issues. For not being punished with performance penalty and error prune changes in manual optimization of database calls, the caching ability is still used with locking calls.

Waiting for approval and decision, if this change should be taken to main branch or only be used for special cases

@r-peschke r-peschke added high enhancement General enhancement which is neither bug nor feature labels Oct 17, 2023
@r-peschke r-peschke added this to the 4.1 milestone Oct 17, 2023
@r-peschke r-peschke assigned r-peschke and rrenkert and unassigned r-peschke Oct 17, 2023
@r-peschke r-peschke force-pushed the I1927_try_by_reducing_unused_lock_fields branch from 4253127 to 3d23521 Compare October 18, 2023 09:36
@r-peschke r-peschke added the waiting Waiting for some other PR/feature; more details in comments label Oct 18, 2023
@jsangmeister
Copy link
Contributor

This solution is a little too specific and hacky for this situation, I think. But the general idea is good. How about we mark each field that will never change its value as constant in the models.yml and then never lock those fields in the datatstore adapter of the backend? This way, the solution would be nice and generic and also benefit all other actions instead of only poll.stop.

The "cleaner" solution in some sense would of course be to not even request those fields to be locked, but that would be very cumbersome to implement.

@jsangmeister jsangmeister modified the milestones: 4.1, 4.2 Dec 5, 2023
@jsangmeister
Copy link
Contributor

Opened #2172 to implement a cleaner solution of this. Closing this PR for now.

@r-peschke r-peschke reopened this Jun 18, 2024
@r-peschke r-peschke removed the waiting Waiting for some other PR/feature; more details in comments label Jun 18, 2024
@r-peschke r-peschke added this pull request to the merge queue Jun 18, 2024
Merged via the queue into OpenSlides:main with commit e4c013b Jun 18, 2024
5 checks passed
@r-peschke r-peschke deleted the I1927_try_by_reducing_unused_lock_fields branch June 18, 2024 12:53
@r-peschke
Copy link
Member Author

approximately 50% acceleration reported

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement General enhancement which is neither bug nor feature high
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants