Describe the suggested improvement
I opened Particular/NServiceBus.SqlServer#1708 which has been resolved via Particular/NServiceBus.SqlServer#1728
The same issue exists in this repository for Outbox and Saga operations using the MSSQL dialect.
The path through SqlDialect.AddJsonParameter for MsSqlServer dialect never sets the size of the parameter meaning numerous plans get cached for varying lengths of saga data or outbox operations values.
Additional Context
No response
Describe the suggested improvement
I opened Particular/NServiceBus.SqlServer#1708 which has been resolved via Particular/NServiceBus.SqlServer#1728
The same issue exists in this repository for Outbox and Saga operations using the MSSQL dialect.
The path through
SqlDialect.AddJsonParameterforMsSqlServerdialect never sets the size of the parameter meaning numerous plans get cached for varying lengths of saga data or outbox operations values.Additional Context
No response