Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update addIndex method to automatically execute an analyze to refresh… #5

Merged
merged 1 commit into from
Feb 8, 2024

Conversation

ndousson
Copy link
Collaborator

@ndousson ndousson commented Feb 8, 2024

💁 What?

Update addIndex method to execute a ANALYZE after the index creation to refresh table statistics allowing PG to improve its usage of the index.

🏗️ How to do it?

Update the safe-migration package by adding the ANALYSE statement on index creation

✅ Acceptance Criteria

Table statistics are up-to-date after a index creation

📔 Resources

PostgresQL ANALYZE documentation:

https://www.postgresql.org/docs/current/sql-analyze.html

@ndousson ndousson merged commit 14bbd95 into main Feb 8, 2024
4 checks passed
@ndousson ndousson deleted the dx-217 branch February 8, 2024 13:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants