Skip to content

Optimize getTransactionsByTopics #1199

Description

@benjlevesque

Dropping the legacy storage (#1117) brought to light an issue in using the subgraph as backend, which requires a non-optimized workaround: first finding all channelIds referenced for some topics, then looping through the channelIds to fetch the body.

Blocked by RequestNetwork/storage-subgraph#9. This could be done in a single call once RequestNetwork/storage-subgraph#9 is resolved.

I'm omitting the link to the code on purpose (at this time, #1117 isn't closed), but for future references, the code in question is in the thegraph-data-access package, in SubgraphClient.getTransactionsByTopics

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

Status
✅ Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions