-
Notifications
You must be signed in to change notification settings - Fork 31
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
Instance with many repeating group wont open #822
Comments
Very related to #345, and in some ways related to #377. Nice to know about this limitation, and there are been thoughts and plans to run expressions a little less often (i.e. by doing it once and passing around the resolved nodes using a top-level react context). Is there an easy way for me to reproduce this issue? I don't have access to your data model, so I'd love to get my hands on something I can use to replicate this (without creating 120+ rows myself). |
We've discussed this a bit further on Slack, and I now have some test instance data for me to reproduce the issue. This issue is currently blocking the release of this app, which should be in production on 01.feb, so we should have a fix (or workaround) in time before that. |
@ivarne @FTLems When testing out your sample with 124 rows in a repeating group, on my computer it takes ~456ms to open the repeating group. Of this, resolving expressions now take ~66ms. From what I can tell from the flame graph above (spanning ~456ms), the big blocks taking time now are:
I think this is at a workable state right now, but the large refactor needed to optimize this caused a few breakages I need to address and fix before releasing it. As mentioned, please test out the branch as it is right now and let me know if you find this usable or not! I'll keep working on fixing the breakages so that we'll be able to release this very soon. |
Thanks for prioritizing this. Just tried this branch yesterday, and it was significant improvent. I agree that this is a workable state and we can use this for our app. 👍 |
Description of the bug
We have app: KRT-1012a-1 which is abo-schema (We instanciate to users mailbox).
This app contains a reapeating group:
If there are many repeating group (maybe 120 stk), it takes12 sek to open the group after clicking Rediger knapp. In general the entire app is very slow.
Also, it cant handle that many components in summary-page, and the entire summary-page appears white after it should iterate the repeating group here.
The instance is:
/instance/50164456/78c06a1a-9684-4af5-bc39-30b243733bb3
Note. The repeating groups are empty and only contain one field of data (component 5.1). User has to fill in the rest.
Steps To Reproduce
Additional Information
No response
The text was updated successfully, but these errors were encountered: