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

[Merged by Bors] - api: v2alpha1: Use subquery instead of left join for transaction list. #6269

Closed
wants to merge 2 commits into from

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.

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

@kacpersaw
Copy link
Contributor Author

bors merge

spacemesh-bors bot pushed a commit that referenced this pull request Aug 20, 2024
#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 20, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 82.0%. Comparing base (dfcb513) to head (1704039).
Report is 3 commits behind head on develop.

Additional details and impacted files
@@            Coverage Diff            @@
##           develop   #6269     +/-   ##
=========================================
- Coverage     82.0%   82.0%   -0.1%     
=========================================
  Files          307     307             
  Lines        34105   34106      +1     
=========================================
- Hits         27990   27989      -1     
+ Misses        4337    4336      -1     
- Partials      1778    1781      +3     

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

@spacemesh-bors
Copy link

Pull request successfully merged into develop.

Build succeeded:

@spacemesh-bors spacemesh-bors bot changed the title api: v2alpha1: Use subquery instead of left join for transaction list. [Merged by Bors] - api: v2alpha1: Use subquery instead of left join for transaction list. Aug 20, 2024
@spacemesh-bors spacemesh-bors bot closed this Aug 20, 2024
@spacemesh-bors spacemesh-bors bot deleted the v2alpha1-optimize-tx-list branch August 20, 2024 10:13
kacpersaw added a commit that referenced this pull request Aug 21, 2024
#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.
fasmat pushed a commit that referenced this pull request Aug 21, 2024
…action list. (#6269) (#6277)

* api: v2alpha1: Use subquery instead of left join for transaction list.  (#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.

* Update CHANGELOG
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants