-
Notifications
You must be signed in to change notification settings - Fork 498
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
Reduce number of history requests to database. #2111
Comments
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. The OpenNebula Dev Team |
up |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. The OpenNebula Dev Team |
This issue has been automatically closed due to lack of activity/feedback. Please reopen if you have further input or need to bump this. The OpenNebula Dev Team |
Not only that we use slow method to read the history, but we read it very often. E.g. for Possible improvements:
|
- oned load only last 2 history records (not the full list) - Dump all history records only if needed in VirtualMachine::to_xml. - Dump conforms XML schecam and removes VM template from history records. Speed up of onevm show command: - for small SQLite DB is for VM with 500 histories: 130 ms down to 5 ms - for big MySQL DB VM with 687 histories: 1000 ms down to 200 ms
- oned load only last 2 history records (not the full list) - Dump all history records only if needed in VirtualMachine::to_xml. - Dump conforms XML schecam and removes VM template from history records. Speed up of onevm show command: - for small SQLite DB is for VM with 500 histories: 130 ms down to 5 ms - for big MySQL DB VM with 687 histories: 1000 ms down to 200 ms Signed-off-by: Kristian Feldsam <[email protected]>
- oned load only last 2 history records (not the full list) - Dump all history records only if needed in VirtualMachine::to_xml. - Dump conforms XML schecam and removes VM template from history records. Speed up of onevm show command: - for small SQLite DB is for VM with 500 histories: 130 ms down to 5 ms - for big MySQL DB VM with 687 histories: 1000 ms down to 200 ms (cherry picked from commit e13c329)
Enhancement Request
Description
Hi I just found that i have a lot requests to my database like:
I not understand why just not use:
Use case
Only one request instead of many will greatly increase the productivity of operations.
It should bring more performance for db connection with less load.
Progress Status
The text was updated successfully, but these errors were encountered: