Skip to content

Commit bee0845

Browse files
authored
Add hints to TEvRead for scan queries (#10308)
1 parent 8a05ebd commit bee0845

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

ydb/core/protos/tx_datashard.proto

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1827,6 +1827,24 @@ message TEvRead {
18271827
// Limits total number of rows which iterator can read.
18281828
optional uint64 TotalRowsLimit = 12;
18291829

1830+
enum EHint {
1831+
// No hits. This is the default.
1832+
HINT_NONE = 0;
1833+
1834+
// This hint should be specified for batch queries. DataShard will
1835+
// attempt to run this query as a scan when possible, minimizing
1836+
// effects on concurrent OLTP queries.
1837+
HINT_BATCH = 1;
1838+
1839+
// This hint should be specified for low priority queries. DataShard
1840+
// will attempt to use low-priority reads when possible, minimizing
1841+
// effects on concurrent OLTP queries.
1842+
HINT_LOW_PRIORITY = 2;
1843+
}
1844+
1845+
// Optional bit flags with hints
1846+
optional uint32 Hints = 13;
1847+
18301848
// Request must contain either keys, queries or program
18311849
// mixed requests are not supported
18321850

0 commit comments

Comments
 (0)