Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
This PR adds a default command timeout of 5 minutes (300 seconds) to the system dates UTC migration to prevent timeout issues on databases with large tables. The migration updates numerous date columns across multiple tables, which can be time-consuming on production databases with significant data volumes.
- Sets CommandTimeout to 300 seconds for the MigrateSystemDatesToUtc migration
- Preserves any existing longer timeout configured via connection string
- Addresses issue #21013 where migrations were timing out on large databases
This was referenced Dec 8, 2025
Closed
Bump Umbraco.Cms.Persistence.EFCore from 17.0.0 to 17.0.1
karl-sjogren/umbraco-extend-everything#134
Closed
Merged
This was referenced Jan 26, 2026
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.
Prerequisites
Addresses #21013
Description
Although as noted in the discussion on the linked issue we can resolve this by configuring a command timeout in the connection string, it makes sense to use a long one by default for these migration queries.
So this PR will set a timeout of 5 minutes unless a longer one is already configured.
Testing
Use a SQL update like the following to re-run the migration and verify with a breakpoint that the
CommandTimeoutis set as expected.If set in the connection string to a value longer than 300 seconds, e.g. with the following, then the configured value should be kept: