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

Adjust transaction table indexes #9225

Merged
merged 8 commits into from
Sep 3, 2024
Merged

Adjust transaction table indexes #9225

merged 8 commits into from
Sep 3, 2024

Conversation

jnels124
Copy link
Contributor

@jnels124 jnels124 commented Sep 2, 2024

Description:

Adjust transaction indexes for v2 to improve /api/v1/transactions?account.id and /api/v1/accounts/{id} performance

Related issue(s):

Fixes #9176
Fixes #5432

Notes for reviewer:

Checklist

  • Documented (Code comments, README, etc.)
  • Tested (unit, integration, etc.)

@jnels124 jnels124 added database Area: Database citus Area: Citus labels Sep 2, 2024
@jnels124 jnels124 added this to the 0.113.0 milestone Sep 2, 2024
@jnels124 jnels124 self-assigned this Sep 2, 2024
Signed-off-by: Jesse Nelson <jesse@hashgraph.com>
@jnels124 jnels124 requested a review from a team September 2, 2024 15:35
jascks
jascks previously approved these changes Sep 2, 2024
Copy link
Contributor

@jascks jascks left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link

codecov bot commented Sep 2, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 92.53%. Comparing base (e653779) to head (3625fef).
Report is 1 commits behind head on main.

Additional details and impacted files
@@             Coverage Diff              @@
##               main    #9225      +/-   ##
============================================
- Coverage     92.84%   92.53%   -0.31%     
- Complexity     4758     6997    +2239     
============================================
  Files           672      902     +230     
  Lines         21638    29562    +7924     
  Branches       2824     3731     +907     
============================================
+ Hits          20090    27356    +7266     
- Misses          987     1442     +455     
- Partials        561      764     +203     

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

@steven-sheehy
Copy link
Member

Probably we should also adjust the doc that shows which endpoints use which index

Signed-off-by: Jesse Nelson <jesse@hashgraph.com>
@steven-sheehy steven-sheehy changed the title Adjust transaction Table Indexes Adjust transaction table indexes Sep 2, 2024
Signed-off-by: Jesse Nelson <jesse@hashgraph.com>
steven-sheehy
steven-sheehy previously approved these changes Sep 2, 2024
Copy link
Member

@steven-sheehy steven-sheehy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

jascks
jascks previously approved these changes Sep 3, 2024
Copy link
Contributor

@jascks jascks left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@steven-sheehy steven-sheehy added the enhancement Type: New feature label Sep 3, 2024
@jnels124 jnels124 dismissed stale reviews from jascks and steven-sheehy via ff37cc3 September 3, 2024 14:54
steven-sheehy
steven-sheehy previously approved these changes Sep 3, 2024
@jnels124 jnels124 requested a review from jascks September 3, 2024 16:08
jascks
jascks previously approved these changes Sep 3, 2024
Copy link
Contributor

@jascks jascks left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Signed-off-by: Jesse Nelson <jesse@hashgraph.com>
@jnels124 jnels124 dismissed stale reviews from jascks and steven-sheehy via 080906a September 3, 2024 16:37
mgoelswirlds
mgoelswirlds previously approved these changes Sep 3, 2024
Copy link
Member

@mgoelswirlds mgoelswirlds left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

jascks
jascks previously approved these changes Sep 3, 2024
Copy link
Contributor

@jascks jascks left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

steven-sheehy
steven-sheehy previously approved these changes Sep 3, 2024
xin-hedera
xin-hedera previously approved these changes Sep 3, 2024
Copy link
Collaborator

@xin-hedera xin-hedera left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link

sonarcloud bot commented Sep 3, 2024

@jnels124 jnels124 merged commit 7cf2463 into main Sep 3, 2024
35 checks passed
@jnels124 jnels124 deleted the jtn-transacton-index branch September 3, 2024 18:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
citus Area: Citus database Area: Database enhancement Type: New feature
Projects
None yet
5 participants