-
Notifications
You must be signed in to change notification settings - Fork 648
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
Add voting statistics during maintenance time #2247
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks.
I think the new code would more or less impact performance due to
- sorting due to new indices, and
- updating more data.
It would be a surprise if it does not. A full replay would show the difference more clearly.
BTW please bump DB_VERSION
since the database scheme is updated.
added a new commit |
So the only thing missing is a performance report. See #1401 (comment) for an example. Thanks. |
develop#a758bb0 + this pr replay log
4.0.0 replay log
|
Some performance test data, the previous comment has a detailed replay log.
|
So it increases replay time by around |
User Story
Many times we need to query the actual voting power of users. Currently, we only rely on some centralized timed tasks for voting power statistics, which is inconvenient and easy to make mistakes. This PR is calculated during the maintenance period. And provide some query API.
Performance data
After testing, the current voting statistics can be completed within 1s and can be received.
More
Do we need to provide some apis to query the data of all followers.
Impacts
Describe which portion(s) of BitShares Core may be impacted by your request. Please tick at least one box.