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

Some locked fields take extraordinarily long to validate #193

Closed
jsangmeister opened this issue May 12, 2022 · 2 comments
Closed

Some locked fields take extraordinarily long to validate #193

jsangmeister opened this issue May 12, 2022 · 2 comments
Milestone

Comments

@jsangmeister
Copy link
Contributor

I don't know why, but removing this get from prefetch, reduces the time for the write in the datastore-service by roundabout 33%.

profile method with locked fields from request user in prefetch/removed from prefetch, poll with 100 users:
/app/openslides_backend/services/datastore/http_engine.py:37(retrieve) tottime: 0.000/0.000 cumtime:0.455/0.304

The difference are the 2 locked fields user.group_$meeting_ids and user.organization_management_level.
Could you have a look into the datastore, why the impact of these 2 fields is so big? The percentage remains constant, even with 2000 votes intest.

Originally posted by @r-peschke in OpenSlides/openslides-backend#1318 (comment)

@jsangmeister jsangmeister added this to the 4.0 Release milestone May 12, 2022
@jsangmeister jsangmeister self-assigned this May 12, 2022
@rrenkert rrenkert modified the milestones: 4.0 Release, 4.1 Release Nov 3, 2022
@jsangmeister jsangmeister removed their assignment Nov 3, 2022
@r-peschke
Copy link
Member

r-peschke commented Nov 3, 2022

We should check this issue, if the behavior is still the same. With #199 and #203, initiated by backend issue1363, we accelerated the locked-fields reading by roundabout factor 10.

@jsangmeister
Copy link
Contributor Author

Since template fields were removed, I'm closing this issue. If further problems occur which are not related to template fields, we can open a new one.

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

No branches or pull requests

3 participants