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

API: Skip inner transaction fetching when possible. #1402

Merged
merged 3 commits into from
Jan 4, 2023

Conversation

winder
Copy link
Contributor

@winder winder commented Jan 4, 2023

Summary

If contiguous transactions are being returned, there is no need to fetch the inner transactions. This is significantly easier for postgres to process and in some cases yields significantly less redundant data.

Test Plan

New unit tests. Manually tested pagination comparing results before and after this change.

@winder winder changed the title Skip inner transaction fetching when possible. API: Skip inner transaction fetching when possible. Jan 4, 2023
@winder winder added the Enhancement New feature or request label Jan 4, 2023
@codecov
Copy link

codecov bot commented Jan 4, 2023

Codecov Report

Merging #1402 (e401443) into hotfix/2.15.1 (b02b5ff) will increase coverage by 0.03%.
The diff coverage is 100.00%.

@@                Coverage Diff                @@
##           hotfix/2.15.1    #1402      +/-   ##
=================================================
+ Coverage          65.03%   65.07%   +0.03%     
=================================================
  Files                 52       52              
  Lines               8315     8333      +18     
=================================================
+ Hits                5408     5423      +15     
- Misses              2433     2435       +2     
- Partials             474      475       +1     
Impacted Files Coverage Δ
idb/idb.go 69.35% <ø> (ø)
idb/postgres/postgres.go 65.02% <100.00%> (+0.15%) ⬆️

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement New feature or request Team Lamprey
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants