Skip to content

Commit a637fc9

Browse files
committed
add changelog information for tablet targeting
Signed-off-by: Nick Van Wiggeren <[email protected]>
1 parent 5c0bc2d commit a637fc9

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

changelog/24.0/24.0.0/summary.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
- **[Major Changes](#major-changes)**
77
- **[New Support](#new-support)**
88
- [Window function pushdown for sharded keyspaces](#window-function-pushdown)
9+
- [Tablet targeting via USE statement](#tablet-targeting)
910
- **[Minor Changes](#minor-changes)**
1011
- **[VTGate](#minor-changes-vtgate)**
1112
- [New default for `--legacy-replication-lag-algorithm` flag](#vtgate-new-default-legacy-replication-lag-algorithm)
@@ -24,6 +25,22 @@ Previously, all window function queries required single-shard routing, which lim
2425

2526
For examples and more details, see the [documentation](https://vitess.io/docs/24.0/reference/compatibility/mysql-compatibility/#window-functions).
2627

28+
#### <a id="tablet-targeting"/>Tablet targeting via USE statement</a>
29+
30+
VTGate now supports routing queries to a specific tablet by alias using an extended `USE` statement syntax:
31+
32+
```sql
33+
USE keyspace:shard@tablet_type|tablet_alias;
34+
```
35+
36+
For example, to target a specific primary tablet:
37+
38+
```sql
39+
USE commerce:-80@primary|zone1-0000000100;
40+
```
41+
42+
Once set, all subsequent queries in the session route to the specified tablet until cleared with a standard `USE keyspace` or `USE keyspace@tablet_type` statement. This is useful for debugging, per-tablet monitoring, cache warming, and other operational tasks where targeting a specific tablet is required.
43+
2744
## <a id="minor-changes"/>Minor Changes</a>
2845

2946
### <a id="minor-changes-vtgate"/>VTGate</a>

0 commit comments

Comments
 (0)