Table of Contents

TXDataTenantConnectionPool.InvalidateShard Method

Drops the cached information and the connection pool of a shard, so a fresh pool is built on next use.

Remarks

Call it after changing the shard connection settings (for example, after rotating credentials). Connections already in use remain valid until released; new requests get connections from a newly created pool.

Syntax

Unit: XData.Comp.TenantConnectionPool

procedure TXDataTenantConnectionPool.InvalidateShard(const ShardId: string);

Parameters

<-> Parameter Type Description
const ShardId string The id of the shard to invalidate.

See also