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

perf(db-postgres): do not push database schema if not changed #10155

Merged
merged 4 commits into from
Dec 27, 2024

Conversation

r1tsuu
Copy link
Member

@r1tsuu r1tsuu commented Dec 23, 2024

Based on #10154

If the actual database schema is not changed (no new columns, enums, indexes, tables) - skip calling Drizzle push. This, potentially can significantly reduce overhead on reloads in development mode especially when using remote databases.

If for whatever reason you need to preserve the current behavior you can use PAYLOAD_FORCE_DRIZZLE_PUSH=true env flag.

@DanRibbens DanRibbens merged commit 98666eb into main Dec 27, 2024
66 checks passed
@DanRibbens DanRibbens deleted the perf/optimize-schema-push branch December 27, 2024 15:12
Copy link
Contributor

🚀 This is included in version v3.12.0

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

Successfully merging this pull request may close these issues.

2 participants