About Can Sayn
Can Sayın is experienced Database Administrator in open source relational and NoSql databases, working in complicated infrastructures. Over 5 years industry experience, he gain managing database systems. He is working at ChistaDATA Inc. His areas of interest are generally on open source systems.
Contact: Website

Comparing query_log With Different Intervals

The query filters the data from the ‘system.query_log’ table to include only entries of type 2 (QueryFinish) and 4 (ExceptionWhileProcessing) and groups the results by the ‘normalized_query_hash’. The results are then sorted by the difference […]

Check ClickHouse Disks

Following query will show you ClickHouse Disks via reading system.disks table. SELECT name, path, formatReadableSize(sum(free_space)) as free_space, formatReadableSize(sum(total_space)) as total_space, formatReadableSize(sum(keep_free_space)) as keep_free_space, type FROM system.disks GROUP BY name, path, type FORMAT PrettyCompact Example Output: […]

Check Queries That Being Processed In ClickHouse

Following sql query will show you queries that being processed. SELECT user, address as client, elapsed as time_seconds, formatReadableSize(memory_usage) as memory, formatReadableSize(read_bytes) as read, read_rows, total_rows_approx as total_rows, query_id, substring(query,1,40) as query FROM system.processes ORDER […]

Removing Empty Parts In ClickHouse

The new feature of empty part removal was introduced in version 20.12. If TTL removes all rows from a part, older versions leave empty parts (with 0 rows) (see https://github.com/ClickHouse/ClickHouse/issues/5491). If you establish a TTL […]

1 2 3 4 8