By using db<>fiddle, you agree to license everything you submit by Creative Commons CC0.
id |
---|
1 |
2 |
id |
---|
1 |
2 |
id | monitor_id | node_id | response_time |
---|---|---|---|
3 | 1 | 1 | 0.100000 |
1 | 1 | 1 | 0.500000 |
4 | 1 | 2 | 0.200000 |
2 | 1 | 2 | 0.300000 |
7 | 2 | 1 | 0.300000 |
5 | 2 | 1 | 0.800000 |
8 | 2 | 2 | 0.400000 |
6 | 2 | 2 | 0.900000 |
monitor_id | node_id | average_response_time |
---|---|---|
1 | 1 | 0.00 |
1 | 2 | 0.00 |
2 | 1 | 0.00 |
2 | 2 | 0.00 |
monitor_id | node_id | average_response_time |
---|---|---|
1 | 1 | 0.3000000000 |
1 | 2 | 0.2500000000 |
2 | 1 | 0.5500000000 |
2 | 2 | 0.6500000000 |
monitor_id | node_id | average_response_time |
---|---|---|
1 | 1 | 0.30 |
1 | 2 | 0.25 |
2 | 1 | 0.55 |
2 | 2 | 0.65 |
id | select_type | table | partitions | type | possible_keys | key | key_len | ref | rows | filtered | Extra |
---|---|---|---|---|---|---|---|---|---|---|---|
1 | SIMPLE | monitor_checks | null | index | monitor_checks_monitor_id_node_id_response_time_index | monitor_checks_monitor_id_node_id_response_time_index | 17 | null | 1 | 100.00 | Using index |
id | select_type | table | partitions | type | possible_keys | key | key_len | ref | rows | filtered | Extra |
---|---|---|---|---|---|---|---|---|---|---|---|
1 | UPDATE | monitor_node | null | ALL | monitor_node_monitor_id_node_id_unique,monitor_node_node_id_foreign | null | null | null | 1 | 100.00 | null |
1 | PRIMARY | <derived2> | null | ref | <auto_key0> | <auto_key0> | 8 | fiddle_EOUGJMVCUUXRNHQAXATU.monitor_node.monitor_id,fiddle_EOUGJMVCUUXRNHQAXATU.monitor_node.node_id | 2 | 100.00 | null |
2 | DERIVED | monitor_checks | null | index | monitor_checks_monitor_id_node_id_response_time_index | monitor_checks_monitor_id_node_id_response_time_index | 17 | null | 1 | 100.00 | Using index |