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

feat: refine miner_sector_deal_v2 performance issue #1300

Merged
merged 4 commits into from
May 16, 2024

Conversation

Terryhung
Copy link
Collaborator

@Terryhung Terryhung commented May 16, 2024

Description

ProviderSectors is a nested HAMT structure, therefore it is hard to do the reversed search from dealID to ProviderID. It make the performance issue for miner_sector_deal_v2.

Solution

Use the new field: SectorNumber in DealState and combine with market.Proposals to refine the performance of miner_sector_deal_v2.

@Terryhung Terryhung marked this pull request as ready for review May 16, 2024 16:01
@Terryhung Terryhung merged commit 8273f89 into master May 16, 2024
7 checks passed
@Terryhung Terryhung deleted the terryhung/add-sectornumber-to-refine-miner-sector branch May 16, 2024 16:02
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.

1 participant