Repository navigation
chore(jobsdb): multi-consumer compaction improvements - #7248
Merged
Merged
Conversation
atzoum
force-pushed
the
chore.jobsdbmcImpr
branch
from
August 6, 2026 12:02
d981da9 to
83857a7
Compare
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #7248 +/- ##
==========================================
- Coverage 80.27% 79.89% -0.38%
==========================================
Files 600 600
Lines 67034 67042 +8
==========================================
- Hits 53811 53563 -248
- Misses 10070 10334 +264
+ Partials 3153 3145 -8 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
ktgowtham
approved these changes
Aug 10, 2026
This was referenced Aug 17, 2026
Closed
Merged
mihir20
pushed a commit
that referenced
this pull request
Aug 17, 2026
🤖 I have created a release *beep* *boop* --- ## [1.83.0-rc.1](v1.82.0...v1.83.0-rc.1) (2026-08-17) ### Features * add OriginalID and OriginalDestinationID to support replay event transformations ([#7274](#7274)) ([28d38e9](28d38e9)) * bingads integration tests ([#7253](#7253)) ([fdb8c0a](fdb8c0a)) * **processor:** fork event processing for rsources pipelines ([#7235](#7235)) ([707ea06](707ea06)) ### Bug Fixes * pyt contract tests data race ([#7247](#7247)) ([9e62d0c](9e62d0c)) ### Miscellaneous * bump sqlconnect-go to v1.30.2 ([#7251](#7251)) ([f5d6175](f5d6175)) * **jobsdb:** multi-consumer compaction improvements ([#7248](#7248)) ([b4af86c](b4af86c)) * pyt contract tests for candidate releases ([#7252](#7252)) ([149e91a](149e91a)) * pyt contract tests for transformations auth ([#7239](#7239)) ([ac4a859](ac4a859)) * **router:** support per-partition noOfWorkers override ([#7270](#7270)) ([9d6f7cf](9d6f7cf)) * sync release v1.82.0 to main branch ([#7243](#7243)) ([a6e29f2](a6e29f2)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). Co-authored-by: rudderstack-github-actions[bot] <236995729+rudderstack-github-actions[bot]@users.noreply.github.com>
mihir20
pushed a commit
that referenced
this pull request
Aug 18, 2026
🤖 I have created a release *beep* *boop* --- ## [1.83.0](v1.82.0...v1.83.0) (2026-08-17) ### Features * add OriginalID and OriginalDestinationID to support replay event transformations ([#7274](#7274)) ([28d38e9](28d38e9)) * bingads integration tests ([#7253](#7253)) ([fdb8c0a](fdb8c0a)) * **processor:** fork event processing for rsources pipelines ([#7235](#7235)) ([707ea06](707ea06)) ### Bug Fixes * pyt contract tests data race ([#7247](#7247)) ([9e62d0c](9e62d0c)) ### Miscellaneous * bump sqlconnect-go to v1.30.2 ([#7251](#7251)) ([f5d6175](f5d6175)) * **jobsdb:** multi-consumer compaction improvements ([#7248](#7248)) ([b4af86c](b4af86c)) * pyt contract tests for candidate releases ([#7252](#7252)) ([149e91a](149e91a)) * pyt contract tests for transformations auth ([#7239](#7239)) ([ac4a859](ac4a859)) * **router:** support per-partition noOfWorkers override ([#7270](#7270)) ([9d6f7cf](9d6f7cf)) * sync release v1.82.0 to main branch ([#7243](#7243)) ([a6e29f2](a6e29f2)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). Co-authored-by: rudderstack-github-actions[bot] <236995729+rudderstack-github-actions[bot]@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Performance optimizations around the compaction probe (
checkIfCompactDS):(job_id) INCLUDE (consumers)index on multi-consumer jobs tables. The join only needsarray_length(consumers, 1), so withconsumersin the index that side stays index-only and skips the heap.autovacuum_vacuum_insert_scale_factorto 0.02 on new jobs and job status tables. They're append-only, so only insert-driven autovacuum ever runs on them, and the 0.2 default lets them grow 20% between vacuums — leaving the visibility map that stale and costing every index-only scan a heap fetch for those rows.Measured on a couple of live datasets, the probe went from ~4.1 to ~2.4 µs per job.
Existing datasets keep the old plan until compaction creates new ones — the index and the autovacuum setting only apply to newly created tables.
Linear Ticket
Resolves PIPE-3240
Security