-
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
Backend Performance #701
Comments
@fredericalpers
=> Here is a list of APIs Which need optimization:
=> This is a list of queries which can be optimized and All functions which can limit the number of calls However, to list "accurately and completely and give more specific details" about "the parts need to refactor".
=> The "consolidate JavaScript and CSS scripts" is resolved at #573
In my understanding, the problem you mentioned:
performance.mp4Please confirm to me whether my understanding of your desire is correct? |
@yeneastgate please go ahead and try to optimize all APIs and investigate further on which queries can be optimized. As mentioned in our meeting we specifically face problems when using the Gutenberg Editor and it's preview. Therefore we want to implement caching. Any other suggestions for performance improvements are also welcome. Thank you :) |
@fredericalpers 2.Here is the list of queries that need to be optimized 3.For Introduce a caching mechanism for the backend |
@yeneastgate please keep investigating, thank you |
@fredericalpers After investigating:
|
@yeneastgate Are those results only including the caching mechanism or also other API optimizations? |
@fredericalpers this results only for the caching mechanism. |
@yeneastgate do you think we can improve the performance more through API call optimization or should we move this part to a different issue? |
|
Currently, the logic gets the page ID for "Pages using the shortcode". We need to handle two actions in core WordPress ('save_post' and 'wp_trash_post'). However, in the current code, the logic of this part is always called even when the End User does not use the behavior "update page" (save_post) and "trash page" ( wp_trash_post) => Solution: We will only load "the logic to get the page ID for 'Pages using the shortcode'" when the End User uses the behavior "update page" and "trash page" => I tried implementing in this branch "https://github.com/onOffice-Web-Org/oo-wp-plugin/tree/43305-backend-performance", and here are the results (the loading time decreased from 24,05s to 2,62s) Please let me know your opinion about this. Thanks! |
@fredericalpers To give you an overview of the changes in Backend Performance, I'd like to list the following improvements:
Note: We have clearly stated details about each solution in the comments above. |
@yeneastgate This seems to be promising, thank you :) I will get back to you asap. |
@yeneastgate please go ahead and create the pull requests :) thank you |
@fredericalpers
Note: During retesting:
|
@dai-eastgate @yeneastgate, here's some information about our WP blocks:
|
@yeneastgate and @dai-eastgate we will discuss, if Preview Mode of ACF Fields is necessary for the first steps. |
Initiative
Optimize backend performance for the onOffice for WP-Websites Plugin.
Epic
Analyse and improve the performance of the plugin backend.
User Story
As a real estate agent relying on the onOffice for WP-Websites Plugin, I've experienced performance issues in the backend, particularly when utilizing the Gutenberg Editor and displaying property lists or forms. The presence of redundant database queries and excessive API calls can lead to timeouts and errors. To ensure a fast, reliable and efficient backend experience, I request the optimiziation of the plugin's performance by reviewing and reducing/bundling uncessary API calls and scripts and perhaps implementing a caching mechanism for the backend.
The current backend performance of the onOffice for WP-Websites Plugin reduces productivity, especially when dealing with the Gutenberg Editor and property lists / form displays. The optimization efforts should focus on identifying and rectifying/bundling redundant API calls and scripts to enhance the overall efficiency of the backend.
Tasks
-- Avoid making multiple calls to the same service or database if the data can be aggregated into one call.
-- Use a query that returns multiple results sets from the database if possible.
-- When working with a loop, make sure to call the database outside of the loop.
-- Asynchronous processing for long-running requests
-- Compress responses to reduce transfer time
-- Introduce a caching mechanism for the backend, allowing frequently accessed data to be stored and retrieved locally to minimize redundant queries.
-- Implement a cache expiry strategy to ensure that cached data remains up-to-date, reflecting any changes made through onOffice enterprise.
By addressing the performance issues in the backend and implement optimizations, the onOffice for WP-Websites Plugin can offer real estates agents a smoother and more responsive experience, particulalry when working the Gutenberg Editor and managing property lists and forms.
The text was updated successfully, but these errors were encountered: