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

Support efficient query for related account with method filter #896

Open
ptrus opened this issue Jan 22, 2025 · 0 comments · May be fixed by #897
Open

Support efficient query for related account with method filter #896

ptrus opened this issue Jan 22, 2025 · 0 comments · May be fixed by #897
Assignees

Comments

@ptrus
Copy link
Member

ptrus commented Jan 22, 2025

We currently lack an efficient index for the "related_account" + "method type" filter combination when fetching transactions. To handle this efficiently, we would need to de-normalize and duplicate the "method type" field in the "runtime_related_transactions" table (and similarly for consensus tables).

This would allow us to create an index that includes both the "related_account" and "method type" fields.

Since this is a very common and useful filtering combination, this de-normalization is justified for this case, but we should aim to limit such changes where possible.

@ptrus ptrus self-assigned this Jan 22, 2025
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 a pull request may close this issue.

1 participant