AzureRmStorageTable icon indicating copy to clipboard operation
AzureRmStorageTable copied to clipboard

Features/batch

Open bszimmer opened this issue 3 years ago • 3 comments

TableBatchOperation Support

Continuing work started by @davidroberts63 in PR #69

Summary of changes

New Class

Added an AzTableBatchOperation class that wraps the [Microsoft.Azure.Cosmos.Table.TableBatchOperation] class. It keeps a separate instance for each partition of the table, since operating on multiple partitions is not supported in one batch operation.

Functions

New functions

  • New-AzTableBatch Creates and returns (and optionally populates) a new AzTableBatchOperation class to use with subsequent commands.
  • Invoke-AzTableBatch Iterates over each partition in the AzTableBatchOperation object and invokes the related batch operation

Updated functions

  • Add-AzTableRow
  • Update-AzTableRow
  • Remove-AzTableRow

These functions now support passing an AzTableBatchOperation object instead of a table object

Tests

New tests for New-AzTableBatch and Invoke-AzTableBatch.
Updated tests for the existing functions to test batch functionality

Docs

Updated docs for existing functions and added new docs for New-AzTableBatch and Invoke-AzTableBatch

Hopefully this is helpful. Please let me know if there's anything you'd like changed.

bszimmer avatar Feb 18 '22 19:02 bszimmer

Thanks @bszimmer, I'll review it.

paulomarquesc avatar Feb 22 '22 18:02 paulomarquesc

@paulomarquesc - did you have a chance to review this yet?

bszimmer avatar Mar 16 '22 22:03 bszimmer

@paulomarquesc - did you have a chance to review this yet?

Not yet.

paulomarquesc avatar Apr 02 '22 00:04 paulomarquesc