Skip to content
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

adding index for status field #112

Merged
merged 1 commit into from
Mar 27, 2024

Conversation

Chengxuan
Copy link
Contributor

Without an index for the status field, the polling cycle will look up more and more transactions to find "Pending" ones, which causing the performance to decrease:

image

Signed-off-by: Chengxuan Xing <chengxuan.xing@kaleido.io>
@Chengxuan Chengxuan requested a review from a team as a code owner March 27, 2024 11:10
@Chengxuan
Copy link
Contributor Author

We don't update status very often, only twice in the lifetime for an uninterrupted transaction. So the impact of HOT update is not too significant.

@peterbroadhurst
Copy link
Contributor

Great find 🚀

@peterbroadhurst peterbroadhurst merged commit 15ae850 into hyperledger:main Mar 27, 2024
2 checks passed
@peterbroadhurst peterbroadhurst deleted the adding_status_index branch March 27, 2024 11:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants