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

Removing unused BatchCommand.DefaultBuilderCapacity #584

Merged

Conversation

Piedone
Copy link
Contributor

@Piedone Piedone commented Jul 26, 2024

Fixes #572.

@@ -9,8 +9,6 @@ namespace YesSql.Commands
{
public class BatchCommand : IIndexCommand
{
public static int DefaultBuilderCapacity = 10 * 1024;
Copy link
Contributor

@hyzx86 hyzx86 Aug 20, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a static attribute that allows developers to modify it, to adapt the maximum number of parameters for different databases

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The issue is that this property is never used in any concrete way. It's possible that at some point I actually used a StringBuilder, but this is not the case anymore and the current implementation (string.Concat) is actually better than StringBuilder. So this should be removed. This is a breaking change though and maybe it should be made obsolete instead.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Obsoleted it instead.

@sebastienros sebastienros enabled auto-merge (squash) August 20, 2024 18:55
@sebastienros sebastienros merged commit aa058f4 into sebastienros:main Aug 20, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

BatchCommand.DefaultBuilderCapacity is not used
3 participants