-
Notifications
You must be signed in to change notification settings - Fork 9
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
Each form leads to many queries for default values #557
Comments
@fredericalpers. After researching, I found that: Currently, in the code implement " if...else statement" to check for every case for type fields Please check with your IT department and give me your opinion on the matter. Thanks! |
@yeneastgate I will come back to you with an answer as soon as possible |
@yeneastgate Please go ahead and implement the suggested solution. If possible please document the performance improvements before and after. |
Yes, I got it. Thanks! |
@fredericalpers
B. However, during the test, I found a problem as follows:
=> How do you want to "default value" format for these fields below? C. The attached photo below shows the performance improvements before and after we refactor the code. Please let me know your opinion about this. Thanks! |
@yeneastgate thank you for the detailed feedback, I will have a look at it asap and let you know :) |
For now we will ignore those specific fields, so we can release the implemented improvements. We will discuss the fields internally on how we want to proceed with them. Thank you :) |
Ok, I got it. Thanks! |
Current state
The function onOffice\WPlugin\Field\DefaultValue\DefaultValueRead->readDefaultValuesSingleselect is called approximately 310 times (taking about 400 ms) per form.
A customer had 13 forms on his pages, which lead to loading times high enough that he reported "Service temporarily unavailable" errors.
Investigate
Investigate if the function has to be called that many times. If not please find a fix for a better performance.
Desired state
All performance enhancement is desirable. Ideally the performance should increase drastically.
The text was updated successfully, but these errors were encountered: