Skip to content

Conversation

@rafaelcr
Copy link
Collaborator

@rafaelcr rafaelcr commented Dec 23, 2025

Adds a new principal_tx_counts table that keeps track of canonical transaction counts relevant to any principal. Speeds up retrieval queries considerably because it avoids calling COUNT(*) for principals with a very large number of transactions.

Also deletes some dead code from the postgers write store.

@github-actions
Copy link

github-actions bot commented Dec 23, 2025

Vercel deployment URL: https://stacks-blockchain-4ukbs39q0-hirosystems.vercel.app 🚀

@codecov
Copy link

codecov bot commented Dec 23, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@rafaelcr rafaelcr marked this pull request as ready for review December 23, 2025 21:42
Copy link
Contributor

@rmottley-hiro rmottley-hiro left a comment

Choose a reason for hiding this comment

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

LGTM!

@rafaelcr rafaelcr merged commit 51c8a85 into next Dec 29, 2025
27 checks passed
@rafaelcr rafaelcr deleted the fix/tx-count branch December 29, 2025 15:24
hirosystems-release-bot bot added a commit that referenced this pull request Dec 29, 2025
## [9.0.0-next.8](v9.0.0-next.7...v9.0.0-next.8) (2025-12-29)

### Bug Fixes

* optimize principal transaction count calculations ([#2415](#2415)) ([51c8a85](51c8a85))
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.

3 participants