File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -68,13 +68,15 @@ SELECT formatReadableSize(sum(memory_usage)) FROM system.processes;
68
68
SELECT formatReadableSize(sum (bytes_allocated)) FROM system .dictionaries ;
69
69
```
70
70
71
- ## Output total memory used by primary keys {#output-total-memory-used-by-primary-keys}
71
+ ## Output total memory used by primary keys and index granularity {#output-total-memory-used-by-primary-keys}
72
72
73
73
``` sql
74
74
SELECT
75
- sumIf(data_uncompressed_bytes, part_type = ' InMemory' ) as memory_parts,
75
+ sumIf(data_uncompressed_bytes, part_type = ' InMemory' ) AS memory_parts,
76
76
formatReadableSize(sum (primary_key_bytes_in_memory)) AS primary_key_bytes_in_memory,
77
- formatReadableSize(sum (primary_key_bytes_in_memory_allocated)) AS primary_key_bytes_in_memory_allocated
77
+ formatReadableSize(sum (primary_key_bytes_in_memory_allocated)) AS primary_key_bytes_in_memory_allocated,
78
+ formatReadableSize(sum (index_granularity_bytes_in_memory)) AS index_granularity_bytes_in_memory,
79
+ formatReadableSize(sum (index_granularity_bytes_in_memory_allocated)) AS index_granularity_bytes_in_memory_allocated
78
80
FROM system .parts ;
79
81
```
80
82
You can’t perform that action at this time.
0 commit comments