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

storage: optimize RuntimeEvmVerifiedContractEvents query #838

Merged
merged 1 commit into from
Dec 19, 2024

Conversation

ptrus
Copy link
Member

@ptrus ptrus commented Dec 18, 2024

Optimize RuntimeEvmVerifiedContractEvents query by switching DECODE to ENCODE for address comparison to leverage existing indexes on chain.runtime_events.

The query benefits a bit by partially using ix_runtime_events_evm_specific_contract_events.

@ptrus ptrus force-pushed the ptrus/feature/evm-abi-idx branch from 2e466e0 to a36b2ae Compare December 18, 2024 18:38
@ptrus ptrus self-assigned this Dec 18, 2024
@ptrus ptrus force-pushed the ptrus/feature/evm-abi-idx branch from a36b2ae to f4af120 Compare December 19, 2024 07:27
@ptrus ptrus merged commit 5356ee9 into main Dec 19, 2024
16 checks passed
@ptrus ptrus deleted the ptrus/feature/evm-abi-idx branch December 19, 2024 07:33
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