随笔分类 -  Clickhouse

摘要:[root@db01 ~]# strace -T -tt clickhouse-client -udefault --password 123 --query="select count(*) from tb1_all;" 2>&1 |tee strace.log 阅读全文
posted @ 2022-08-31 15:32 捧花大王 阅读(20) 评论(0) 推荐(0) 编辑
摘要:[root@mysql-host1 /data/bifrost/data]# cat db.Bifrost | python3 -mjson.tool { "Version": "v1.8.0-beta.01", "ToServer": { "dba_test-tb1_all": { "Plugin 阅读全文
posted @ 2022-08-23 12:24 捧花大王 阅读(22) 评论(0) 推荐(0) 编辑
摘要:-- 官方文档 https://clickhouse.com/docs/zh/sql-reference/aggregate-functions/parametric-functions/#function-sequencecount 对于事件进行连续跟踪分析能力,适用漏斗或跟踪埋点数据 -- 实际 阅读全文
posted @ 2022-08-22 17:05 捧花大王 阅读(324) 评论(0) 推荐(0) 编辑
摘要:{ "query": { "bool": { "filter": [ { "range": { "time_use": { "gte": "1" } } }, { "match_phrase": { "time_unit": "s" } } ] } } } 阅读全文
posted @ 2022-08-10 10:53 捧花大王 阅读(226) 评论(0) 推荐(0) 编辑
摘要:-- 每天的慢SQL数量 select event_date, count(*) num from system.query_log ql where ql.query_duration_ms > 1000 and event_date >= '2022-07-01' and event_date 阅读全文
posted @ 2022-08-02 11:53 捧花大王 阅读(172) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示