Skip to content

Commit 311d1ed

Browse files
authored
YDBDOCS-740: mention column-oriented tables in the Grafana article (#8705)
1 parent 5247823 commit 311d1ed

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

ydb/docs/en/core/integrations/grafana.md

+6-1
Original file line numberDiff line numberDiff line change
@@ -98,11 +98,16 @@ GROUP BY `responseStatus`, `timestamp`
9898
ORDER BY `timestamp`
9999
```
100100

101+
{% note tip %}
102+
103+
For this kind of queries, using [column-oriented tables](../concepts/datamodel/table.md#column-oriented-tables) will likely be beneficial in terms of performance.
104+
105+
{% endnote %}
106+
101107
### Tables { #tables }
102108

103109
Table visualizations will always be available for any valid {{ ydb-short-name }} query that returns exactly one result set.
104110

105-
106111
![Table](../_assets/grafana/table.png)
107112

108113
### Visualizing logs with the Logs Panel

ydb/docs/ru/core/integrations/grafana.md

+7
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ datasources:
8383
#### Многострочные временные ряды
8484

8585
Чтобы создать многострочный временной ряд, результаты запроса должны содержать в себе как минимум три поля:
86+
8687
* поле с типом данных `Date`, `Datetime` или `Timestamp` (на текущий момент поддержана работа со временем только во временной зоне UTC)
8788
* метрика - поле с типом `Int64`, `Int32`, `Int16`, `Int8`, `Uint64`, `Uint32`, `Uint16`, `Uint8`, `Double` или `Float`
8889
* либо метрика, либо поле с типом `String` или `Utf8` - значение для разбиения метрик по отдельным рядам.
@@ -99,6 +100,12 @@ GROUP BY `responseStatus`, `timestamp`
99100
ORDER BY `timestamp`
100101
```
101102

103+
{% note tip %}
104+
105+
Для таких запросов использование [колоночных таблиц](../concepts/datamodel/table.md#column-oriented-tables) может быть полезным с точки зрения производительности.
106+
107+
{% endnote %}
108+
102109
### Таблицы { #tables }
103110

104111
Табличное представление доступно для любого валидного {{ ydb-short-name }} запроса, возвращающего ровно один набор результатов.

0 commit comments

Comments
 (0)