Skip to content

Features/batch#71

Open
bszimmer wants to merge 16 commits intopaulomarquesc:masterfrom
bszimmer:features/batch
Open

Features/batch#71
bszimmer wants to merge 16 commits intopaulomarquesc:masterfrom
bszimmer:features/batch

Conversation

@bszimmer
Copy link

@bszimmer bszimmer commented Feb 18, 2022

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.

@paulomarquesc
Copy link
Owner

Thanks @bszimmer, I'll review it.

@bszimmer
Copy link
Author

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

@paulomarquesc
Copy link
Owner

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

Not yet.

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.

3 participants