Share via


SqlNullabilityProcessor.CalculateParameterBucketSize Method

Definition

Gets the bucket size into which the parameters are padded when generating a parameterized collection when using multiple parameters. This helps with query plan bloat.

[Microsoft.EntityFrameworkCore.Infrastructure.EntityFrameworkInternal]
protected virtual int CalculateParameterBucketSize(int count, Microsoft.EntityFrameworkCore.Storage.RelationalTypeMapping elementTypeMapping);
[<Microsoft.EntityFrameworkCore.Infrastructure.EntityFrameworkInternal>]
abstract member CalculateParameterBucketSize : int * Microsoft.EntityFrameworkCore.Storage.RelationalTypeMapping -> int
override this.CalculateParameterBucketSize : int * Microsoft.EntityFrameworkCore.Storage.RelationalTypeMapping -> int
Protected Overridable Function CalculateParameterBucketSize (count As Integer, elementTypeMapping As RelationalTypeMapping) As Integer

Parameters

count
Int32

Number of value parameters.

elementTypeMapping
RelationalTypeMapping

The type mapping for the collection element.

Returns

Attributes

Applies to