Skip to content

Conversation

@rafaelcr
Copy link
Collaborator

@rafaelcr rafaelcr commented Jul 21, 2025

Optimize the queries that prune and restore transactions from the mempool by processing sponsored and non-sponsored transactions separately to optimize the postgres query plan.

Related to #2271

@github-actions
Copy link

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

@codecov
Copy link

codecov bot commented Jul 21, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@rafaelcr rafaelcr requested a review from CharlieC3 July 21, 2025 23:22
@rafaelcr rafaelcr marked this pull request as ready for review July 21, 2025 23:22
@rafaelcr rafaelcr enabled auto-merge (squash) July 22, 2025 16:24
Copy link
Member

@CharlieC3 CharlieC3 left a comment

Choose a reason for hiding this comment

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

:shipit: Nice work!

@rafaelcr rafaelcr merged commit 0b196f0 into develop Jul 22, 2025
27 checks passed
@rafaelcr rafaelcr deleted the fix/prune-restore branch July 22, 2025 16:27
hirosystems-release-bot bot added a commit that referenced this pull request Aug 6, 2025
## [8.12.0](v8.11.6...v8.12.0) (2025-08-06)

### Features

* Add exclude_function_args parameter to reduce transaction response sizes ([#2312](#2312)) ([852a60e](852a60e))
* add replaced_by_tx_id to replaced mempool transactions ([#2271](#2271)) ([a70c3d1](a70c3d1))
* **prometheus:** add chain tip metrics ([#2333](#2333)) ([bde1037](bde1037))
* SNP integration ([#2291](#2291)) ([9a159e1](9a159e1))

### Bug Fixes

* drop redundant db indexes ([#2329](#2329)) ([0ddd6a6](0ddd6a6))
* ensure some ops only run when SNP is not enabled ([fd4717b](fd4717b))
* only ingest snp chain events to avoid db bloat ([287f572](287f572))
* optimize queries to prune and restore mempool rbf txs ([#2327](#2327)) ([0b196f0](0b196f0))
* optimize replace-by-fee mempool calculations ([#2326](#2326)) ([01998bc](01998bc))
* parallelize mempool rbf updates ([#2328](#2328)) ([e7347e5](e7347e5))
* update snp image in tests ([c7c0dbb](c7c0dbb))
@hirosystems-release-bot
Copy link
Contributor

🎉 This PR is included in version 8.12.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants