You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A user in our public chat reported an issue where the /v2/contracts/{chainId} endpoint hangs after reaching a certain matchId.
I investigated and found that running the query below takes a long time, but if you set LIMIT 1, it returns quickly. This slowdown happens because there’s a large gap of non-137 chain contracts before matchId 4403388, causing a delay before returning results.
SELECTsourcify_matches.id, sourcify_matches.creation_match, sourcify_matches.runtime_match, nullif(concat('0x', encode(contract_deployments.address, 'hex')), '0x') as address, to_char(sourcify_matches.created_at, 'YYYY-MM-DD"T"HH24:MI:SS"Z"') as verified_at
FROMpublic.sourcify_matchesJOINpublic.verified_contractsONverified_contracts.id=sourcify_matches.verified_contract_idJOINpublic.contract_deploymentsONcontract_deployments.id=verified_contracts.deployment_idWHEREsourcify_matches.id<4403388andcontract_deployments.chain_id=137ORDER BYsourcify_matches.idDESCLIMIT2;
The user later identified the exact gap:
seems like the issue is fixed now. After '1152336', it jumped to '4403507' (quite a big jump), but its working now.
The text was updated successfully, but these errors were encountered:
A user in our public chat reported an issue where the
/v2/contracts/{chainId}
endpoint hangs after reaching a certainmatchId
.I investigated and found that running the query below takes a long time, but if you set LIMIT 1, it returns quickly. This slowdown happens because there’s a large gap of non-137 chain contracts before matchId 4403388, causing a delay before returning results.
The user later identified the exact gap:
The text was updated successfully, but these errors were encountered: