Migrator partial-export can exceed 2100 SQL parameter limitation for large exports of multiple projects #5144
Labels
feature/migrator
kind/bug
This issue represents a verified problem we are committed to solving
size/small
~1 day
Milestone
Using the new abilities shipped in #5129 you can export enough projects to cause subsequent queries to fail. Most of the queries use a SQL Query like
SELECT * FROM DeploymentProcess WHERE Id IN (@project1, @project2, ... , @project999999)
.We should review each of these queries to find a different style of query requiring less parameters, or batch the queries into sets.
What I expected to happen
All of the projects and their dependencies should export successfully.
Log excerpt
Affected versions
Octopus Server: 2018.9.13
Workarounds
Exporting smaller batches may alleviate this problem, however importing in batches may cause shared things like Certificates, Accounts, Variable Sets, etc, to end up with the wrong scoping.
The text was updated successfully, but these errors were encountered: