Currently we request data with query like SELECT * FROM column_table/.sys/primary_index_stats.
It's not an effective way to gather stats, since table could have a lot of rows.
We need to optimize request, so it will be like SELECT SUM(Rows) AS Rows, SUM(Bytes) AS BytesCompressed, SUM(RawBytes) AS BytesUncompressed from column_table/.sys/primary_index_stats
We need to discuss, whether this way of gathering stats is really needed
Currently we request data with query like
SELECT * FROM column_table/.sys/primary_index_stats
.It's not an effective way to gather stats, since table could have a lot of rows.
SELECT SUM(Rows) AS Rows, SUM(Bytes) AS BytesCompressed, SUM(RawBytes) AS BytesUncompressed from column_table/.sys/primary_index_stats
https://github.com/ydb-platform/ydb-embedded-ui/blob/main/src/store/reducers/olapStats.ts