filecoin-project / lily

capturing on-chain state for the filecoin network
Other
48 stars 45 forks source link

feat: refine miner_sector_deal_v2 performance issue #1300

Closed Terryhung closed 5 months ago

Terryhung commented 5 months ago

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.