Skip to content

Add ANALYZE to the sync_schemas step#42

Merged
timb07 merged 1 commit into
mainfrom
add-analyze
Jun 18, 2025
Merged

Add ANALYZE to the sync_schemas step#42
timb07 merged 1 commit into
mainfrom
add-analyze

Conversation

@timb07
Copy link
Copy Markdown
Contributor

@timb07 timb07 commented Jun 18, 2025

Prior to this change, the repacked table might have no statistics, or out-of-date statistics (if autoanalyze had been triggered during backfilling).

This change adds an explicit ANALYZE command to the sync_schemas step to ensure that the table statistics are reasonably up to date.

Prior to this change, the repacked table might have no statistics, or
out-of-date statistics (if autoanalyze had been triggered during
backfilling).

This change adds an explicit ANALYZE command to the sync_schemas step to
ensure that the table statistics are reasonably up to date.
@github-actions
Copy link
Copy Markdown

Coverage Report Results

Name Stmts Miss Branch BrPart Cover
src/psycopack/__init__.py 6 0 0 0 100%
src/psycopack/_commands.py 111 0 8 0 100%
src/psycopack/_conn.py 5 0 0 0 100%
src/psycopack/_const.py 3 0 0 0 100%
src/psycopack/_cur.py 24 0 2 0 100%
src/psycopack/_identifiers.py 12 0 2 0 100%
src/psycopack/_introspect.py 157 0 14 0 100%
src/psycopack/_logging.py 2 0 0 0 100%
src/psycopack/_psycopg.py 5 0 0 0 100%
src/psycopack/_registry.py 58 0 6 0 100%
src/psycopack/_repack.py 350 0 116 0 100%
src/psycopack/_tracker.py 165 0 36 0 100%
tests/conftest.py 19 0 0 0 100%
tests/factories.py 33 0 4 0 100%
tests/test_cur.py 20 0 2 0 100%
tests/test_fixtures.py 5 0 0 0 100%
tests/test_package.py 3 0 0 0 100%
tests/test_repack.py 692 0 0 0 100%
TOTAL 1670 0 190 0 100%

1 empty file skipped.

@timb07 timb07 requested review from felcury and marcelofern June 18, 2025 03:40
Copy link
Copy Markdown
Collaborator

@marcelofern marcelofern left a comment

Choose a reason for hiding this comment

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

LGTM.

@timb07 timb07 merged commit 956d036 into main Jun 18, 2025
9 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.

2 participants