Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {
- "query_block": {
- "select_id": 1,
- "cost_info": {
- "query_cost": "778.49"
- },
- "nested_loop": [
- {
- "table": {
- "table_name": "tst_batch",
- "access_type": "ALL",
- "rows_examined_per_scan": 32,
- "rows_produced_per_join": 3,
- "filtered": "10.00",
- "cost_info": {
- "read_cost": "3.13",
- "eval_cost": "0.32",
- "prefix_cost": "3.45",
- "data_read_per_join": "3K"
- },
- "used_columns": [
- "created_at",
- "updated_at",
- "id",
- "organisation_id",
- "name",
- "created_date",
- "expected_start_date",
- "expected_finish_date",
- "end_date",
- "version_number",
- "type"
- ],
- "attached_condition": "(`reference`.`tst_batch`.`end_date` is null)"
- }
- },
- {
- "table": {
- "table_name": "tst_batch_test_case_1",
- "access_type": "ref",
- "possible_keys": [
- "batch_id"
- ],
- "key": "batch_id",
- "used_key_parts": [
- "batch_id"
- ],
- "key_length": "4",
- "ref": [
- "reference.tst_batch.id"
- ],
- "rows_examined_per_scan": 21,
- "rows_produced_per_join": 68,
- "filtered": "100.00",
- "cost_info": {
- "read_cost": "17.13",
- "eval_cost": "6.85",
- "prefix_cost": "27.43",
- "data_read_per_join": "420K"
- },
- "used_columns": [
- "created_at",
- "updated_at",
- "id",
- "batch_id",
- "assign_id",
- "tc_code",
- "tc_name",
- "tc_created_for_version",
- "tc_family_name",
- "tc_sub_family_name",
- "tc_sub_sub_family_name",
- "tc_criticality"
- ]
- }
- },
- {
- "table": {
- "table_name": "tst_batch_step_1",
- "access_type": "ref",
- "possible_keys": [
- "batch_test_case_id"
- ],
- "key": "batch_test_case_id",
- "used_key_parts": [
- "batch_test_case_id"
- ],
- "key_length": "4",
- "ref": [
- "reference.tst_batch_test_case_1.id"
- ],
- "rows_examined_per_scan": 31,
- "rows_produced_per_join": 2145,
- "filtered": "100.00",
- "cost_info": {
- "read_cost": "536.48",
- "eval_cost": "214.59",
- "prefix_cost": "778.49",
- "data_read_per_join": "57M"
- },
- "used_columns": [
- "created_at",
- "updated_at",
- "id",
- "batch_test_case_id",
- "s_step_number",
- "s_menu1",
- "s_menu2",
- "s_menu3",
- "s_menu4",
- "s_menu5",
- "s_do",
- "s_what_where1",
- "s_what_where2",
- "s_what_where3",
- "s_what_where4",
- "s_what_where5",
- "s_what_where6",
- "s_what_where7",
- "s_what_where8",
- "s_action1",
- "s_action2",
- "s_file_to_upload",
- "s_close_window",
- "s_open_window",
- "s_look1",
- "s_look2",
- "s_link_img",
- "s_validate_input",
- "s_available_actions",
- "s_available_values",
- "s_status",
- "s_comment",
- "s_screenshot_link",
- "s_completion_date"
- ]
- }
- }
- ],
- "select_list_subqueries": [
- {
- "dependent": true,
- "cacheable": false,
- "query_block": {
- "select_id": 8,
- "cost_info": {
- "query_cost": "3.39"
- },
- "table": {
- "table_name": "tst_batch_step",
- "access_type": "ref",
- "possible_keys": [
- "batch_test_case_id"
- ],
- "key": "batch_test_case_id",
- "used_key_parts": [
- "batch_test_case_id"
- ],
- "key_length": "4",
- "ref": [
- "reference.tst_batch_test_case_1.id"
- ],
- "rows_examined_per_scan": 31,
- "rows_produced_per_join": 31,
- "filtered": "100.00",
- "using_index": true,
- "cost_info": {
- "read_cost": "0.26",
- "eval_cost": "3.13",
- "prefix_cost": "3.39",
- "data_read_per_join": "859K"
- },
- "used_columns": [
- "batch_test_case_id",
- "s_step_number"
- ]
- }
- }
- },
- {
- "dependent": true,
- "cacheable": false,
- "query_block": {
- "select_id": 6,
- "cost_info": {
- "query_cost": "237.66"
- },
- "nested_loop": [
- {
- "table": {
- "table_name": "tst_batch_test_case",
- "access_type": "ref",
- "possible_keys": [
- "batch_id"
- ],
- "key": "batch_id",
- "used_key_parts": [
- "batch_id"
- ],
- "key_length": "4",
- "ref": [
- "reference.tst_batch.id"
- ],
- "rows_examined_per_scan": 21,
- "rows_produced_per_join": 21,
- "filtered": "100.00",
- "using_index": true,
- "cost_info": {
- "read_cost": "0.82",
- "eval_cost": "2.14",
- "prefix_cost": "2.96",
- "data_read_per_join": "131K"
- },
- "used_columns": [
- "id",
- "batch_id"
- ]
- }
- },
- {
- "table": {
- "table_name": "tst_batch_step",
- "access_type": "ref",
- "possible_keys": [
- "batch_test_case_id"
- ],
- "key": "batch_test_case_id",
- "used_key_parts": [
- "batch_test_case_id"
- ],
- "key_length": "4",
- "ref": [
- "reference.tst_batch_test_case.id"
- ],
- "rows_examined_per_scan": 31,
- "rows_produced_per_join": 21,
- "filtered": "100.00",
- "not_exists": true,
- "cost_info": {
- "read_cost": "167.65",
- "eval_cost": "2.14",
- "prefix_cost": "237.67",
- "data_read_per_join": "587K"
- },
- "used_columns": [
- "batch_test_case_id",
- "s_status"
- ],
- "attached_condition": "(<if>(is_not_null_compl(tst_batch_step), (`reference`.`tst_batch_step`.`s_status` is null), true) and <if>(is_not_null_compl(tst_batch_step), <if>(found_match(tst_batch_step), false, true), true))"
- }
- }
- ]
- }
- },
- {
- "dependent": true,
- "cacheable": false,
- "query_block": {
- "select_id": 5,
- "cost_info": {
- "query_cost": "75.61"
- },
- "nested_loop": [
- {
- "table": {
- "table_name": "tst_batch_test_case",
- "access_type": "ref",
- "possible_keys": [
- "PRIMARY",
- "batch_id"
- ],
- "key": "batch_id",
- "used_key_parts": [
- "batch_id"
- ],
- "key_length": "4",
- "ref": [
- "reference.tst_batch.id"
- ],
- "rows_examined_per_scan": 21,
- "rows_produced_per_join": 21,
- "filtered": "100.00",
- "using_index": true,
- "cost_info": {
- "read_cost": "0.82",
- "eval_cost": "2.14",
- "prefix_cost": "2.96",
- "data_read_per_join": "131K"
- },
- "used_columns": [
- "id",
- "batch_id"
- ]
- }
- },
- {
- "table": {
- "table_name": "tst_batch_step",
- "access_type": "ref",
- "possible_keys": [
- "batch_test_case_id"
- ],
- "key": "batch_test_case_id",
- "used_key_parts": [
- "batch_test_case_id"
- ],
- "key_length": "4",
- "ref": [
- "reference.tst_batch_test_case.id"
- ],
- "rows_examined_per_scan": 31,
- "rows_produced_per_join": 670,
- "filtered": "100.00",
- "using_index": true,
- "cost_info": {
- "read_cost": "5.59",
- "eval_cost": "67.06",
- "prefix_cost": "75.61",
- "data_read_per_join": "17M"
- },
- "used_columns": [
- "id",
- "batch_test_case_id"
- ]
- }
- }
- ]
- }
- },
- {
- "dependent": true,
- "cacheable": false,
- "query_block": {
- "select_id": 4,
- "cost_info": {
- "query_cost": "2.96"
- },
- "table": {
- "table_name": "tst_batch_test_case",
- "access_type": "ref",
- "possible_keys": [
- "batch_id"
- ],
- "key": "batch_id",
- "used_key_parts": [
- "batch_id"
- ],
- "key_length": "4",
- "ref": [
- "reference.tst_batch.id"
- ],
- "rows_examined_per_scan": 21,
- "rows_produced_per_join": 21,
- "filtered": "100.00",
- "using_index": true,
- "cost_info": {
- "read_cost": "0.82",
- "eval_cost": "2.14",
- "prefix_cost": "2.96",
- "data_read_per_join": "131K"
- },
- "used_columns": [
- "id",
- "batch_id"
- ]
- }
- }
- },
- {
- "dependent": true,
- "cacheable": false,
- "query_block": {
- "select_id": 3,
- "cost_info": {
- "query_cost": "237.66"
- },
- "nested_loop": [
- {
- "table": {
- "table_name": "tst_batch_test_case",
- "access_type": "ref",
- "possible_keys": [
- "PRIMARY",
- "batch_id"
- ],
- "key": "batch_id",
- "used_key_parts": [
- "batch_id"
- ],
- "key_length": "4",
- "ref": [
- "reference.tst_batch.id"
- ],
- "rows_examined_per_scan": 21,
- "rows_produced_per_join": 21,
- "filtered": "100.00",
- "using_index": true,
- "cost_info": {
- "read_cost": "0.82",
- "eval_cost": "2.14",
- "prefix_cost": "2.96",
- "data_read_per_join": "131K"
- },
- "used_columns": [
- "id",
- "batch_id"
- ]
- }
- },
- {
- "table": {
- "table_name": "tst_batch_step",
- "access_type": "ref",
- "possible_keys": [
- "batch_test_case_id"
- ],
- "key": "batch_test_case_id",
- "used_key_parts": [
- "batch_test_case_id"
- ],
- "key_length": "4",
- "ref": [
- "reference.tst_batch_test_case.id"
- ],
- "rows_examined_per_scan": 31,
- "rows_produced_per_join": 67,
- "filtered": "10.00",
- "cost_info": {
- "read_cost": "167.65",
- "eval_cost": "6.71",
- "prefix_cost": "237.67",
- "data_read_per_join": "1M"
- },
- "used_columns": [
- "id",
- "batch_test_case_id",
- "s_status"
- ],
- "attached_condition": "(`reference`.`tst_batch_step`.`s_status` = 'Not Valid')"
- }
- }
- ]
- }
- },
- {
- "dependent": true,
- "cacheable": false,
- "query_block": {
- "select_id": 2,
- "cost_info": {
- "query_cost": "237.66"
- },
- "nested_loop": [
- {
- "table": {
- "table_name": "tst_batch_test_case",
- "access_type": "ref",
- "possible_keys": [
- "PRIMARY",
- "batch_id"
- ],
- "key": "batch_id",
- "used_key_parts": [
- "batch_id"
- ],
- "key_length": "4",
- "ref": [
- "reference.tst_batch.id"
- ],
- "rows_examined_per_scan": 21,
- "rows_produced_per_join": 21,
- "filtered": "100.00",
- "using_index": true,
- "cost_info": {
- "read_cost": "0.82",
- "eval_cost": "2.14",
- "prefix_cost": "2.96",
- "data_read_per_join": "131K"
- },
- "used_columns": [
- "id",
- "batch_id"
- ]
- }
- },
- {
- "table": {
- "table_name": "tst_batch_step",
- "access_type": "ref",
- "possible_keys": [
- "batch_test_case_id"
- ],
- "key": "batch_test_case_id",
- "used_key_parts": [
- "batch_test_case_id"
- ],
- "key_length": "4",
- "ref": [
- "reference.tst_batch_test_case.id"
- ],
- "rows_examined_per_scan": 31,
- "rows_produced_per_join": 67,
- "filtered": "10.00",
- "cost_info": {
- "read_cost": "167.65",
- "eval_cost": "6.71",
- "prefix_cost": "237.67",
- "data_read_per_join": "1M"
- },
- "used_columns": [
- "id",
- "batch_test_case_id",
- "s_status"
- ],
- "attached_condition": "(`reference`.`tst_batch_step`.`s_status` = 'KO')"
- }
- }
- ]
- }
- }
- ]
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement