dotConnect for Oracle Documentation
Devart.Data.Oracle Namespace / OracleDataAdapter Class / UpdateBatchSize Property

In This Topic
    UpdateBatchSize Property (OracleDataAdapter)
    In This Topic
    Gets or sets the number of rows that are processed in each round-trip to the server.
    Syntax
    'Declaration
     
    Public Overrides Property UpdateBatchSize As Integer
    public override int UpdateBatchSize {get; set;}

    Property Value

    The number of rows to process per batch.

    Value is Effect
    0 There is no limit on the batch size.
    1 Disables batch updating.
    more than 1 Changes are sent using batches of UpdateBatchSize operations at a time.

    When setting this to a value other than 1, all the commands associated with the OracleDataAdapter should have their Devart.Common.DbCommandBase.UpdatedRowSource property set to None or OutputParameters. An exception is thrown otherwise.

    Remarks

    Gets or sets a value that enables or disables batch processing support, and specifies the number of commands that can be executed in a batch.

    Use the UpdateBatchSize property to update a data source with changes from a OracleDataSet. This can increase application performance by reducing the number of round-trips to the server.

    Executing an extremely large batch could decrease performance. Therefore, you should test for the optimum batch size setting before implementing your application.

    An System.ArgumentOutOfRangeException is thrown if the value is set to a number less than zero.

    Requirements

    Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also