1

I am currently setting up my shardmap manager, shard map ... via the PowerShell script provided here.

While the example uses int as ShardingKey type, I have a binary(16) ShardingKey, does anyone know how to determine and pass a high key of max binary(16) to Add-RangeMapping ?

Richard
  • 6,812
  • 5
  • 45
  • 60
Marcel
  • 189
  • 7

1 Answers1

1

The Add-RangeMapping function calls the Range(low, high) constructor. In order to create a range with a max high value, it would need to call the Range(low) constructor. So you'll have to edit the Add-RangeMapping function appropriately (or just directly call into the library code without using the Add-RangeMapping function).

The PowerShell helper scripts don't cover the complete Elastic Database Client Library surface area so you may find a few more gaps.

Jared Moore
  • 3,765
  • 26
  • 31
  • 1
    Thanks =) you! I was first considering to pass null for high. But then `HighIsMax` is not set. – Marcel Jul 11 '16 at 05:28