Skip to content

implement performance optimizations#9

Merged
isdaniel merged 1 commit into
mainfrom
chore/rel-v0.2.0
May 8, 2026
Merged

implement performance optimizations#9
isdaniel merged 1 commit into
mainfrom
chore/rel-v0.2.0

Conversation

@isdaniel
Copy link
Copy Markdown
Owner

@isdaniel isdaniel commented May 8, 2026

enhance sequence synchronization by using a temporary table for applied counts
implement performance optimizations for migration process & rel v.0.2.0

enhance sequence synchronization by using a temporary table for applied counts
@codecov
Copy link
Copy Markdown

codecov Bot commented May 8, 2026

Codecov Report

❌ Patch coverage is 95.27559% with 12 lines in your changes missing coverage. Please review.
✅ Project coverage is 89.96%. Comparing base (730da06) to head (03484cc).

Files with missing lines Patch % Lines
pg_dbmigrator/src/orchestrator.rs 0.00% 8 Missing ⚠️
pg_dbmigrator/src/sequences.rs 98.35% 4 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main       #9      +/-   ##
==========================================
+ Coverage   89.49%   89.96%   +0.47%     
==========================================
  Files          16       16              
  Lines        5633     5850     +217     
==========================================
+ Hits         5041     5263     +222     
+ Misses        592      587       -5     

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copy link
Copy Markdown

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request bumps the version to 0.2.0 and introduces several performance optimizations, including parallel pre-flight checks using tokio::join! and batched sequence synchronization via PL/pgSQL to reduce network round-trips. It also refines table discovery to exclude internal and temporary schemas and improves integration test stability. Feedback suggests restricting the visibility of the sequence SQL builder to pub(crate) to prevent potential misuse of its internal logic regarding uninitialized sequences.

Comment thread pg_dbmigrator/src/sequences.rs
@isdaniel isdaniel merged commit d5f4ba6 into main May 8, 2026
19 checks passed
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.

1 participant