OracleDataAdapter.UpdateBatchSize Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.
public:
virtual property int UpdateBatchSize { int get(); void set(int value); };
public override int UpdateBatchSize { get; set; }
member this.UpdateBatchSize : int with get, set
Public Overrides Property UpdateBatchSize As Integer
Property Value
The number of rows to process per batch.
Value: | Effect: |
---|---|
0 | There is no limit on the batch size. |
1 | Disables batch updating. |
> 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 have to have their UpdatedRowSource property set to None
or OutputParameters
. An exception is thrown otherwise.
Remarks
Use the UpdateBatchSize property to update a data source with changes from a DataSet. 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 you implement your application.
An ArgumentOutOfRangeException is thrown if the value is set to a number less than zero.
Applies to
See also
Σχόλια
https://aka.ms/ContentUserFeedback.
Σύντομα διαθέσιμα: Καθ' όλη τη διάρκεια του 2024 θα καταργήσουμε σταδιακά τα ζητήματα GitHub ως μηχανισμό ανάδρασης για το περιεχόμενο και θα το αντικαταστήσουμε με ένα νέο σύστημα ανάδρασης. Για περισσότερες πληροφορίες, ανατρέξτε στο θέμα:Υποβολή και προβολή σχολίων για