diff --git a/src/YesSql.Core/Commands/BatchCommand.cs b/src/YesSql.Core/Commands/BatchCommand.cs index 53eec3db..0a5b23a9 100644 --- a/src/YesSql.Core/Commands/BatchCommand.cs +++ b/src/YesSql.Core/Commands/BatchCommand.cs @@ -9,6 +9,7 @@ namespace YesSql.Commands { public class BatchCommand : IIndexCommand { + [Obsolete("The field is not used anymore since the current batching implementation doesn't need it.")] public static int DefaultBuilderCapacity = 10 * 1024; public List Queries { get; set; } = new List(); @@ -54,14 +55,6 @@ public async Task ExecuteAsync(DbConnection connection, DbTransaction transactio logger.LogTrace(command); } - if (command.Length > DefaultBuilderCapacity) - { - if (logger.IsEnabled(LogLevel.Warning)) - { - logger.LogWarning("The default capacity of the BatchCommand StringBuilder {Default} might not be sufficient. It can be increased with BatchCommand.DefaultBuilderCapacity to at least {Suggested}", DefaultBuilderCapacity, command.Length); - } - } - Command.Transaction = transaction; Command.CommandText = command;