Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions ydb/public/api/protos/ydb_query_stats.proto
Original file line number Diff line number Diff line change
@@ -1,15 +1,34 @@
syntax = "proto3";
option cc_enable_arenas = true;

import "ydb/public/api/protos/ydb_value.proto";

package Ydb.TableStats;
option java_package = "com.yandex.ydb";

message KeyRange {
// Left border
TypedValue from_key = 1;

// Right border
TypedValue to_key = 3;
}

// Describes select, update (insert, upsert, replace) and delete operations
message OperationStats {
uint64 rows = 1;
uint64 bytes = 2;
}

message KeyNodeEntry {
KeyRange bounds = 1;
uint32 node_id = 2;
}

message DataDistribution {
repeated KeyNodeEntry entry = 1;
}

// Describes all operations on a table
message TableAccessStats {
string name = 1;
Expand All @@ -18,6 +37,7 @@ message TableAccessStats {
OperationStats updates = 4;
OperationStats deletes = 5;
uint64 partitions_count = 6;
DataDistribution distribution = 7;
}

message QueryPhaseStats {
Expand Down
1 change: 1 addition & 0 deletions ydb/public/api/protos/ydb_table.proto
Original file line number Diff line number Diff line change
Expand Up @@ -879,6 +879,7 @@ message QueryStatsCollection {
STATS_COLLECTION_BASIC = 2; // Aggregated stats of reads, updates and deletes per table
STATS_COLLECTION_FULL = 3; // Add execution stats and plan on top of STATS_COLLECTION_BASIC
STATS_COLLECTION_PROFILE = 4; // Detailed execution stats including stats for individual tasks and channels
STATS_COLLECTION_DATA_DISTRIBUTION = 5; // Basic statictic and data distribution
}
}

Expand Down