Advertisement
Guest User

Explain MariaDB

a guest
Feb 18th, 2022
139
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
JSON 7.03 KB | None | 0 0
  1. {
  2.   "query_block": {
  3.     "select_id": 1,
  4.     "table": {
  5.       "table_name": "tst_batch",
  6.       "access_type": "ALL",
  7.       "rows": 32,
  8.       "filtered": 100,
  9.       "attached_condition": "tst_batch.end_date is null"
  10.     },
  11.     "table": {
  12.       "table_name": "tst_batch_test_case_1",
  13.       "access_type": "ref",
  14.       "possible_keys": ["batch_id"],
  15.       "key": "batch_id",
  16.       "key_length": "4",
  17.       "used_key_parts": ["batch_id"],
  18.       "ref": ["portail2.tst_batch.id"],
  19.       "rows": 10,
  20.       "filtered": 100
  21.     },
  22.     "table": {
  23.       "table_name": "tst_batch_step_1",
  24.       "access_type": "ref",
  25.       "possible_keys": ["batch_test_case_id"],
  26.       "key": "batch_test_case_id",
  27.       "key_length": "4",
  28.       "used_key_parts": ["batch_test_case_id"],
  29.       "ref": ["portail2.tst_batch_test_case_1.id"],
  30.       "rows": 15,
  31.       "filtered": 100,
  32.       "attached_condition": "trigcond(trigcond(tst_batch_test_case_1.`id` is not null))"
  33.     },
  34.     "subqueries": [
  35.       {
  36.         "expression_cache": {
  37.           "state": "uninitialized",
  38.           "query_block": {
  39.             "select_id": 8,
  40.             "outer_ref_condition": "tst_batch_test_case_1.`id` is not null",
  41.             "table": {
  42.               "table_name": "tst_batch_step",
  43.               "access_type": "ref",
  44.               "possible_keys": ["batch_test_case_id"],
  45.               "key": "batch_test_case_id",
  46.               "key_length": "4",
  47.               "used_key_parts": ["batch_test_case_id"],
  48.               "ref": ["portail2.tst_batch_test_case_1.id"],
  49.               "rows": 15,
  50.               "filtered": 100,
  51.               "using_index": true
  52.             }
  53.           }
  54.         }
  55.       },
  56.       {
  57.         "expression_cache": {
  58.           "state": "uninitialized",
  59.           "query_block": {
  60.             "select_id": 6,
  61.             "table": {
  62.               "table_name": "tst_batch_test_case",
  63.               "access_type": "ref",
  64.               "possible_keys": ["batch_id"],
  65.               "key": "batch_id",
  66.               "key_length": "4",
  67.               "used_key_parts": ["batch_id"],
  68.               "ref": ["portail2.tst_batch.id"],
  69.               "rows": 10,
  70.               "filtered": 100,
  71.               "attached_condition": "!<in_optimizer>(tst_batch_test_case.`id`,<exists>(subquery#7))",
  72.               "using_index": true
  73.             },
  74.             "subqueries": [
  75.               {
  76.                 "query_block": {
  77.                   "select_id": 7,
  78.                   "table": {
  79.                     "table_name": "tst_batch_step",
  80.                     "access_type": "ref",
  81.                     "possible_keys": ["batch_test_case_id"],
  82.                     "key": "batch_test_case_id",
  83.                     "key_length": "4",
  84.                     "used_key_parts": ["batch_test_case_id"],
  85.                     "ref": ["portail2.tst_batch_test_case.id"],
  86.                     "rows": 15,
  87.                     "filtered": 100,
  88.                     "index_condition": "<cache>(tst_batch_test_case.`id`) = tst_batch_step.batch_test_case_id",
  89.                     "attached_condition": "tst_batch_step.s_status is null"
  90.                   }
  91.                 }
  92.               }
  93.             ]
  94.           }
  95.         }
  96.       },
  97.       {
  98.         "expression_cache": {
  99.           "state": "uninitialized",
  100.           "query_block": {
  101.             "select_id": 5,
  102.             "table": {
  103.               "table_name": "tst_batch_test_case",
  104.               "access_type": "ref",
  105.               "possible_keys": ["PRIMARY", "batch_id"],
  106.               "key": "batch_id",
  107.               "key_length": "4",
  108.               "used_key_parts": ["batch_id"],
  109.               "ref": ["portail2.tst_batch.id"],
  110.               "rows": 10,
  111.               "filtered": 100,
  112.               "using_index": true
  113.             },
  114.             "table": {
  115.               "table_name": "tst_batch_step",
  116.               "access_type": "ref",
  117.               "possible_keys": ["batch_test_case_id"],
  118.               "key": "batch_test_case_id",
  119.               "key_length": "4",
  120.               "used_key_parts": ["batch_test_case_id"],
  121.               "ref": ["portail2.tst_batch_test_case.id"],
  122.               "rows": 15,
  123.               "filtered": 100,
  124.               "using_index": true
  125.             }
  126.           }
  127.         }
  128.       },
  129.       {
  130.         "expression_cache": {
  131.           "state": "uninitialized",
  132.           "query_block": {
  133.             "select_id": 4,
  134.             "table": {
  135.               "table_name": "tst_batch_test_case",
  136.               "access_type": "ref",
  137.               "possible_keys": ["batch_id"],
  138.               "key": "batch_id",
  139.               "key_length": "4",
  140.               "used_key_parts": ["batch_id"],
  141.               "ref": ["portail2.tst_batch.id"],
  142.               "rows": 10,
  143.               "filtered": 100,
  144.               "using_index": true
  145.             }
  146.           }
  147.         }
  148.       },
  149.       {
  150.         "expression_cache": {
  151.           "state": "uninitialized",
  152.           "query_block": {
  153.             "select_id": 3,
  154.             "table": {
  155.               "table_name": "tst_batch_test_case",
  156.               "access_type": "ref",
  157.               "possible_keys": ["PRIMARY", "batch_id"],
  158.               "key": "batch_id",
  159.               "key_length": "4",
  160.               "used_key_parts": ["batch_id"],
  161.               "ref": ["portail2.tst_batch.id"],
  162.               "rows": 10,
  163.               "filtered": 100,
  164.               "using_index": true
  165.             },
  166.             "table": {
  167.               "table_name": "tst_batch_step",
  168.               "access_type": "ref",
  169.               "possible_keys": ["batch_test_case_id"],
  170.               "key": "batch_test_case_id",
  171.               "key_length": "4",
  172.               "used_key_parts": ["batch_test_case_id"],
  173.               "ref": ["portail2.tst_batch_test_case.id"],
  174.               "rows": 15,
  175.               "filtered": 100,
  176.               "attached_condition": "tst_batch_step.s_status = 'Not Valid'"
  177.             }
  178.           }
  179.         }
  180.       },
  181.       {
  182.         "expression_cache": {
  183.           "state": "uninitialized",
  184.           "query_block": {
  185.             "select_id": 2,
  186.             "table": {
  187.               "table_name": "tst_batch_test_case",
  188.               "access_type": "ref",
  189.               "possible_keys": ["PRIMARY", "batch_id"],
  190.               "key": "batch_id",
  191.               "key_length": "4",
  192.               "used_key_parts": ["batch_id"],
  193.               "ref": ["portail2.tst_batch.id"],
  194.               "rows": 10,
  195.               "filtered": 100,
  196.               "using_index": true
  197.             },
  198.             "table": {
  199.               "table_name": "tst_batch_step",
  200.               "access_type": "ref",
  201.               "possible_keys": ["batch_test_case_id"],
  202.               "key": "batch_test_case_id",
  203.               "key_length": "4",
  204.               "used_key_parts": ["batch_test_case_id"],
  205.               "ref": ["portail2.tst_batch_test_case.id"],
  206.               "rows": 15,
  207.               "filtered": 100,
  208.               "attached_condition": "tst_batch_step.s_status = 'KO'"
  209.             }
  210.           }
  211.         }
  212.       }
  213.     ]
  214.   }
  215. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement