Skip to content

Instantly share code, notes, and snippets.

@spetrunia
Created February 23, 2021 17:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save spetrunia/ae1f329b1f0e533ce8c7e6817b283b74 to your computer and use it in GitHub Desktop.
Save spetrunia/ae1f329b1f0e533ce8c7e6817b283b74 to your computer and use it in GitHub Desktop.
MariaDB [j2]> explain format=json select * from t10 join (select t11.a, 12.b from t11, t12 limit 10) T\G
*************************** 1. row ***************************
EXPLAIN: {
"query_block": {
"select_id": 1,
"table": {
"table_name": "t10",
"access_type": "ALL",
"rows": 1,
"filtered": 100
},
"block-nl-join": {
"table": {
"table_name": "<derived2>",
"access_type": "ALL",
"rows": 2,
"filtered": 100
},
"buffer_type": "flat",
"buffer_size": "173",
"join_type": "BNL",
"materialized": {
"query_block": {
"select_id": 2,
"table": {
"table_name": "t11",
"access_type": "ALL",
"rows": 1,
"filtered": 100
},
"block-nl-join": {
"table": {
"table_name": "t12",
"access_type": "ALL",
"rows": 1,
"filtered": 100
},
"buffer_type": "flat",
"buffer_size": "65",
"join_type": "BNL"
}
}
}
}
}
}
1 row in set (0.002 sec)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment