Logo

Monitoring

85c1a8aa-c722-411d-a0d8-b5296d3ba488
30 ms
QueryFinish
redash

Hostname of the server executing the query

duet-ubuntu

Initial user (for distributed query execution)

Initial query id (for distributed query execution)

initial_address (IP address that the parent query was launched from)

::ffff:172.19.0.4

initial_port (The client port that was used to make the parent query)

35460

Initial query starting time (for distributed query execution)

2025-03-14 05:54:15

Columns

[ "home_assistant.statistics.created", "home_assistant.statistics.created_ts", "home_assistant.statistics.id", "home_assistant.statistics.last_reset", "home_assistant.statistics.last_reset_ts", "home_assistant.statistics.max", "home_assistant.statistics.mean", "home_assistant.statistics.metadata_id", "home_assistant.statistics.min", "home_assistant.statistics.start", "home_assistant.statistics.start_ts", "home_assistant.statistics.state", "home_assistant.statistics.sum", "home_assistant.statistics_meta.has_mean", "home_assistant.statistics_meta.has_sum", "home_assistant.statistics_meta.id", "home_assistant.statistics_meta.name", "home_assistant.statistics_meta.source", "home_assistant.statistics_meta.statistic_id", "home_assistant.statistics_meta.unit_of_measurement", "home_assistant.v_statistics_join.`m.id`", "home_assistant.v_statistics_join.created", "home_assistant.v_statistics_join.created_ts", "home_assistant.v_statistics_join.has_mean", "home_assistant.v_statistics_join.has_sum", "home_assistant.v_statistics_join.id", "home_assistant.v_statistics_join.last_reset", "home_assistant.v_statistics_join.last_reset_ts", "home_assistant.v_statistics_join.max", "home_assistant.v_statistics_join.mean", "home_assistant.v_statistics_join.metadata_id", "home_assistant.v_statistics_join.min", "home_assistant.v_statistics_join.name", "home_assistant.v_statistics_join.source", "home_assistant.v_statistics_join.start", "home_assistant.v_statistics_join.start_ts", "home_assistant.v_statistics_join.state", "home_assistant.v_statistics_join.statistic_id", "home_assistant.v_statistics_join.sum", "home_assistant.v_statistics_join.unit_of_measurement" ]

Partitions

[ "home_assistant.statistics.all", "home_assistant.statistics_meta.all" ]

Interface that the query was initiated from (1 — TCP, 2 — HTTP)

2

HTTP method (0 = TCP, 1 = GET, 2 = POST)

2

HTTP user agent

python-requests/2.32.3

Distributed depth

0

Revision

54495

Profile events

{ "Query": "1", "SelectQuery": "1", "InitialQuery": "1", "QueriesWithSubqueries": "3", "SelectQueriesWithSubqueries": "3", "FileOpen": "32", "ReadBufferFromFileDescriptorReadBytes": "1976645", "ReadCompressedBytes": "1346347", "CompressedReadBufferBlocks": "192", "CompressedReadBufferBytes": "11349655", "OpenedFileCacheHits": "2", "OpenedFileCacheMisses": "32", "OpenedFileCacheMicroseconds": "5", "IOBufferAllocs": "190", "IOBufferAllocBytes": "5966261", "FunctionExecute": "24", "MarkCacheHits": "2", "MarkCacheMisses": "16", "CreatedReadBufferOrdinary": "34", "DiskReadElapsedMicroseconds": "686", "GlobalThreadPoolJobs": "3", "LocalThreadPoolExpansions": "2", "LocalThreadPoolThreadCreationMicroseconds": "89", "LocalThreadPoolJobs": "5", "JoinBuildTableRowCount": "1", "JoinProbeTableRowCount": "147456", "JoinResultRowCount": "2659", "SelectedParts": "2", "SelectedPartsTotal": "2", "SelectedRanges": "2", "SelectedMarks": "35", "SelectedMarksTotal": "35", "SelectedRows": "155707", "SelectedBytes": "14918093", "RowsReadByMainReader": "155707", "RowsReadByPrewhereReaders": "59", "WaitMarksLoadMicroseconds": "375", "LoadedMarksFiles": "16", "LoadedMarksCount": "560", "LoadedMarksMemoryBytes": "3232", "ContextLock": "68", "RWLockAcquiredReadLocks": "3", "PartsLockHoldMicroseconds": "7", "RealTimeMicroseconds": "57384", "UserTimeMicroseconds": "23663", "SystemTimeMicroseconds": "4360", "SoftPageFaults": "3804", "OSCPUWaitMicroseconds": "13", "OSCPUVirtualTimeMicroseconds": "28019", "OSWriteBytes": "8192", "OSReadChars": "1976320", "OSWriteChars": "8192", "ThreadPoolReaderPageCacheHit": "44", "ThreadPoolReaderPageCacheHitBytes": "1976645", "ThreadPoolReaderPageCacheHitElapsedMicroseconds": "686", "SynchronousReadWaitMicroseconds": "695", "LogTrace": "24", "LogDebug": "8", "LoggerElapsedNanoseconds": "230142", "ConcurrencyControlSlotsGranted": "1", "ConcurrencyControlSlotsAcquired": "1" }

Settings

{ "max_insert_threads": "4", "max_threads": "1", "merge_tree_max_rows_to_use_cache": "10485760", "merge_tree_max_bytes_to_use_cache": "20132659200", "do_not_merge_across_partitions_select_final": "1", "enable_http_compression": "1", "http_connection_timeout": "10", "http_send_timeout": "3600", "http_receive_timeout": "300", "log_query_threads": "0", "enable_optimize_predicate_expression": "1", "use_query_cache": "0", "query_cache_nondeterministic_function_handling": "ignore", "query_cache_system_table_handling": "save", "async_insert": "1", "wait_for_async_insert": "1", "async_insert_use_adaptive_busy_timeout": "1", "allow_experimental_join_condition": "1" }

Used formats

Used functions

Used privileges

[ "SELECT(id, created, created_ts, metadata_id, start, start_ts, mean, min, max, last_reset, last_reset_ts, state, sum) ON home_assistant.statistics", "SELECT(id, created, created_ts, metadata_id, start, start_ts, mean, min, max, last_reset, last_reset_ts, state, sum, `m.id`, statistic_id, source, unit_of_measurement, has_mean, has_sum, name) ON home_assistant.v_statistics_join", "SELECT(id, statistic_id, source, unit_of_measurement, has_mean, has_sum, name) ON home_assistant.statistics_meta" ]

See the detailed explanation at the system.query_log document

Query Stages

duet-ubuntuQueryStart2025-03-14 05:54:15.8042621 day, 3 hours and 38 minutes0
0.00 B
0.00
0.00
0.00Unknown(0,0,'00000000-0000-0000-0000-000000000000')00NaN85c1a8aa-c722-411d-a0d8-b5296d3ba488
duet-ubuntuQueryFinish2025-03-14 05:54:15.8042621 day, 3 hours and 38 minutes30
14.17 MiB
155.71 thousand
0.00
1.00 thousandNone(0,0,'00000000-0000-0000-0000-000000000000')43NaN85c1a8aa-c722-411d-a0d8-b5296d3ba488
2 row(s) in 0.788 seconds.