TransactionGetMultiReplicasFromPreferredServerGroupMode
in
Strategy to deal with potential read skews while reading multiple documents.
Essentially when a transaction reads document X and then Y, and another transaction commits a change to Y inbetween those reads - read skew has occurred.
Tags
Table of Contents
- DISABLE_READ_SKEW_DETECTION = "disableReadSkewDetection"
- No read skew detection should be attempted. Once the documents are fetched, they will be returned immediately.
- PRIORITISE_LATENCY = "prioritiseLatency"
- Some time-bounded effort will be made to detect and avoid read skew.
- PRIORITISE_READ_SKEW_DETECTION = "prioritiseReadSkewDetection"
- Great effort will be made to detect and avoid read skew.
Constants
DISABLE_READ_SKEW_DETECTION
No read skew detection should be attempted. Once the documents are fetched, they will be returned immediately.
public
mixed
DISABLE_READ_SKEW_DETECTION
= "disableReadSkewDetection"
Tags
PRIORITISE_LATENCY
Some time-bounded effort will be made to detect and avoid read skew.
public
mixed
PRIORITISE_LATENCY
= "prioritiseLatency"
Tags
PRIORITISE_READ_SKEW_DETECTION
Great effort will be made to detect and avoid read skew.
public
mixed
PRIORITISE_READ_SKEW_DETECTION
= "prioritiseReadSkewDetection"