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

[backport] api: v2alpha1: Use subquery instead of left join for transaction list. (#6269) #6277

Merged
merged 2 commits into from
Aug 21, 2024

Conversation

kacpersaw
Copy link
Contributor

Removed the LEFT JOIN from IterateTransactionsOps because it was too slow for handling queries.
Instead, a subquery with SELECT is used to retrieve tx ids for addresses used in transactions.

#6269)

Removed the LEFT JOIN from IterateTransactionsOps because it was too slow for handling queries. 
Instead, a subquery with SELECT is used to retrieve tx ids for addresses used in transactions.

Added CustomQuery field to sql builder to allow more complex expressions.
Fixed transaction test generator.
Copy link

codecov bot commented Aug 21, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 81.7%. Comparing base (f07c531) to head (cb5bfee).
Report is 8 commits behind head on v1.6.

Additional details and impacted files
@@           Coverage Diff           @@
##            v1.6   #6277     +/-   ##
=======================================
- Coverage   81.7%   81.7%   -0.1%     
=======================================
  Files        301     301             
  Lines      32306   32285     -21     
=======================================
- Hits       26416   26393     -23     
  Misses      4170    4170             
- Partials    1720    1722      +2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@fasmat fasmat merged commit faf78f5 into v1.6 Aug 21, 2024
23 checks passed
@fasmat fasmat deleted the backport-6269 branch August 21, 2024 14:02
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.

2 participants