summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--mysql-test/main/analyze_format_json.result29
-rw-r--r--mysql-test/main/analyze_stmt_orderby.result16
-rw-r--r--mysql-test/main/brackets.result8
-rw-r--r--mysql-test/main/cte_recursive.result28
-rw-r--r--mysql-test/main/derived_cond_pushdown.result687
-rw-r--r--mysql-test/main/derived_view.result21
-rw-r--r--mysql-test/main/except.result20
-rw-r--r--mysql-test/main/except_all.result22
-rw-r--r--mysql-test/main/explain_json.result79
-rw-r--r--mysql-test/main/explain_json_format_partitions.result2
-rw-r--r--mysql-test/main/explain_json_innodb.result3
-rw-r--r--mysql-test/main/fetch_first.result1
-rw-r--r--mysql-test/main/having_cond_pushdown.result154
-rw-r--r--mysql-test/main/in_subq_cond_pushdown.result126
-rw-r--r--mysql-test/main/innodb_ext_key,off.rdiff6
-rw-r--r--mysql-test/main/innodb_ext_key.result2
-rw-r--r--mysql-test/main/intersect.result20
-rw-r--r--mysql-test/main/intersect_all.result20
-rw-r--r--mysql-test/main/join_cache.result2
-rw-r--r--mysql-test/main/opt_trace.result5
-rw-r--r--mysql-test/main/opt_trace_ucs2.result1
-rw-r--r--mysql-test/main/order_by.result13
-rw-r--r--mysql-test/main/order_by_pack_big.result4
-rw-r--r--mysql-test/main/range.result19
-rw-r--r--mysql-test/main/range_mrr_icp.result19
-rw-r--r--mysql-test/main/rowid_filter.result52
-rw-r--r--mysql-test/main/rowid_filter_aria.result52
-rw-r--r--mysql-test/main/rowid_filter_innodb.result57
-rw-r--r--mysql-test/main/rowid_filter_myisam.result8
-rw-r--r--mysql-test/main/set_operation.result14
-rw-r--r--mysql-test/main/show_analyze.result1
-rw-r--r--mysql-test/main/show_analyze_json.result34
-rw-r--r--mysql-test/main/show_explain_json.result39
-rw-r--r--mysql-test/main/statistics_json.result1
-rw-r--r--mysql-test/main/subselect4.result3
-rw-r--r--mysql-test/main/subselect_cache.result10
-rw-r--r--mysql-test/main/subselect_no_semijoin.result2
-rw-r--r--mysql-test/main/table_elim.result9
-rw-r--r--mysql-test/main/win.result13
-rw-r--r--mysql-test/main/win_empty_over.result2
-rw-r--r--mysql-test/suite/encryption/r/tempfiles_encrypted.result13
-rw-r--r--mysql-test/suite/federated/federatedx_create_handlers.result6
-rw-r--r--mysql-test/suite/json/r/json_table.result1
-rw-r--r--mysql-test/suite/json/r/json_table_mysql.result1
-rw-r--r--sql/opt_subselect.h3
-rw-r--r--sql/sql_explain.cc3
-rw-r--r--sql/sql_explain.h3
-rw-r--r--sql/sql_select.cc6
-rw-r--r--sql/sql_select.h3
-rw-r--r--storage/rocksdb/mysql-test/rocksdb/r/rocksdb_icp.result1
-rw-r--r--storage/rocksdb/mysql-test/rocksdb/r/rocksdb_icp_rev.result1
51 files changed, 1641 insertions, 4 deletions
diff --git a/mysql-test/main/analyze_format_json.result b/mysql-test/main/analyze_format_json.result
index 32e6ae0a67e..34761fb51b4 100644
--- a/mysql-test/main/analyze_format_json.result
+++ b/mysql-test/main/analyze_format_json.result
@@ -18,6 +18,7 @@ ANALYZE
"table": {
"table_name": "t0",
"access_type": "ALL",
+ "loops": 1,
"r_loops": 1,
"rows": 10,
"r_rows": 10,
@@ -56,6 +57,7 @@ ANALYZE
"table": {
"table_name": "t0",
"access_type": "ALL",
+ "loops": 1,
"r_loops": 1,
"rows": 10,
"r_rows": 10,
@@ -76,6 +78,7 @@ ANALYZE
"key_length": "5",
"used_key_parts": ["a"],
"ref": ["test.t0.a"],
+ "loops": 10,
"r_loops": 0,
"rows": 1,
"r_rows": null,
@@ -109,6 +112,7 @@ ANALYZE
"table": {
"table_name": "t0",
"access_type": "ALL",
+ "loops": 1,
"r_loops": 1,
"rows": 10,
"r_rows": 10,
@@ -129,6 +133,7 @@ ANALYZE
"key_length": "5",
"used_key_parts": ["a"],
"ref": ["test.t0.a"],
+ "loops": 10,
"r_loops": 10,
"rows": 1,
"r_rows": 1,
@@ -165,6 +170,7 @@ ANALYZE
"table": {
"table_name": "tbl1",
"access_type": "ALL",
+ "loops": 1,
"r_loops": 1,
"rows": 100,
"r_rows": 100,
@@ -181,6 +187,7 @@ ANALYZE
"table": {
"table_name": "tbl2",
"access_type": "ALL",
+ "loops": 100,
"r_loops": 1,
"rows": 100,
"r_rows": 100,
@@ -218,6 +225,7 @@ ANALYZE
"table": {
"table_name": "tbl1",
"access_type": "ALL",
+ "loops": 1,
"r_loops": 1,
"rows": 100,
"r_rows": 100,
@@ -234,6 +242,7 @@ ANALYZE
"table": {
"table_name": "tbl2",
"access_type": "ALL",
+ "loops": 100,
"r_loops": 1,
"rows": 100,
"r_rows": 100,
@@ -280,6 +289,7 @@ ANALYZE
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"r_loops": 1,
"rows": 10,
"r_rows": 10,
@@ -300,6 +310,7 @@ ANALYZE
"key_length": "5",
"used_key_parts": ["a"],
"ref": ["test.t1.a"],
+ "loops": 10,
"r_loops": 10,
"rows": 2,
"r_rows": 0.2,
@@ -344,6 +355,7 @@ ANALYZE
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"r_loops": 1,
"rows": 10,
"r_rows": 10,
@@ -414,6 +426,7 @@ ANALYZE
"key": "PRIMARY",
"key_length": "4",
"used_key_parts": ["pk"],
+ "loops": 1,
"r_loops": 1,
"rows": 10,
"r_rows": 10,
@@ -492,6 +505,7 @@ ANALYZE
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"r_loops": 1,
"rows": 5,
"r_rows": 5,
@@ -519,6 +533,7 @@ ANALYZE
"table_name": "t2",
"access_type": "ALL",
"possible_keys": ["key1", "key2", "key3", "key4"],
+ "loops": 5,
"r_loops": 5,
"rows": 1010,
"r_rows": 203.8,
@@ -565,6 +580,7 @@ ANALYZE
"table": {
"table_name": "tbl1",
"access_type": "ALL",
+ "loops": 1,
"r_loops": 1,
"rows": 10,
"r_rows": 10,
@@ -591,6 +607,7 @@ ANALYZE
"table": {
"table_name": "tbl2",
"access_type": "ALL",
+ "loops": 1,
"r_loops": 1,
"rows": 10,
"r_rows": 10,
@@ -650,6 +667,7 @@ ANALYZE
"table": {
"table_name": "t2",
"access_type": "ALL",
+ "loops": 1,
"r_loops": 1,
"rows": 256,
"r_rows": 256,
@@ -691,6 +709,7 @@ ANALYZE
"table": {
"table_name": "t2",
"access_type": "ALL",
+ "loops": 1,
"r_loops": 1,
"rows": 256,
"r_rows": 256,
@@ -746,6 +765,7 @@ ANALYZE
"table": {
"table_name": "t2",
"access_type": "ALL",
+ "loops": 1,
"r_loops": 1,
"rows": 256,
"r_rows": 256,
@@ -785,6 +805,7 @@ ANALYZE
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"r_loops": 1,
"rows": 2,
"r_rows": 2,
@@ -800,6 +821,7 @@ ANALYZE
"table": {
"table_name": "t2",
"access_type": "ALL",
+ "loops": 2,
"r_loops": 1,
"rows": 2,
"r_rows": 2,
@@ -831,6 +853,7 @@ ANALYZE
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"r_loops": 1,
"rows": 2,
"r_rows": 2,
@@ -897,6 +920,7 @@ ANALYZE
"table": {
"table_name": "t2",
"access_type": "ALL",
+ "loops": 1,
"r_loops": 1,
"rows": 2,
"r_rows": 2,
@@ -912,6 +936,7 @@ ANALYZE
"table": {
"table_name": "t3",
"access_type": "ALL",
+ "loops": 2,
"r_loops": 1,
"rows": 2,
"r_rows": 2,
@@ -943,6 +968,7 @@ ANALYZE
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"r_loops": 0,
"rows": 2,
"r_rows": null,
@@ -956,6 +982,7 @@ ANALYZE
"table": {
"table_name": "t2",
"access_type": "ALL",
+ "loops": 2,
"r_loops": 0,
"rows": 2,
"r_rows": null,
@@ -1007,6 +1034,7 @@ ANALYZE
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"r_loops": 1,
"rows": 10,
"r_rows": 10,
@@ -1041,6 +1069,7 @@ ANALYZE
"table": {
"table_name": "t2",
"access_type": "ALL",
+ "loops": 1,
"r_loops": 0,
"rows": 10,
"r_rows": null,
diff --git a/mysql-test/main/analyze_stmt_orderby.result b/mysql-test/main/analyze_stmt_orderby.result
index 80c630217ca..c3a3f2c562e 100644
--- a/mysql-test/main/analyze_stmt_orderby.result
+++ b/mysql-test/main/analyze_stmt_orderby.result
@@ -191,6 +191,7 @@ EXPLAIN
"table": {
"table_name": "t0",
"access_type": "ALL",
+ "loops": 1,
"rows": 10,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -206,6 +207,7 @@ EXPLAIN
"key_length": "5",
"used_key_parts": ["a"],
"ref": ["test.t0.a"],
+ "loops": 10,
"rows": 1,
"cost": "COST_REPLACED",
"filtered": 100
@@ -242,6 +244,7 @@ ANALYZE
"table": {
"table_name": "t0",
"access_type": "ALL",
+ "loops": 1,
"r_loops": 1,
"rows": 10,
"r_rows": 10,
@@ -262,6 +265,7 @@ ANALYZE
"key_length": "5",
"used_key_parts": ["a"],
"ref": ["test.t0.a"],
+ "loops": 10,
"r_loops": 10,
"rows": 1,
"r_rows": 0.4,
@@ -300,6 +304,7 @@ EXPLAIN
"table": {
"table_name": "t0",
"access_type": "ALL",
+ "loops": 1,
"rows": 10,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -317,6 +322,7 @@ EXPLAIN
"key_length": "5",
"used_key_parts": ["a"],
"ref": ["test.t0.a"],
+ "loops": 10,
"rows": 1,
"cost": "COST_REPLACED",
"filtered": 100
@@ -352,6 +358,7 @@ ANALYZE
"table": {
"table_name": "t0",
"access_type": "ALL",
+ "loops": 1,
"r_loops": 1,
"rows": 10,
"r_rows": 10,
@@ -374,6 +381,7 @@ ANALYZE
"key_length": "5",
"used_key_parts": ["a"],
"ref": ["test.t0.a"],
+ "loops": 10,
"r_loops": 10,
"rows": 1,
"r_rows": 0.4,
@@ -425,6 +433,7 @@ ANALYZE
"table": {
"table_name": "t2",
"access_type": "ALL",
+ "loops": 1,
"r_loops": 1,
"rows": 1000,
"r_rows": 1000,
@@ -483,6 +492,7 @@ ANALYZE
"table": {
"table_name": "t0",
"access_type": "ALL",
+ "loops": 1,
"r_loops": 1,
"rows": 10,
"r_rows": 10,
@@ -498,6 +508,7 @@ ANALYZE
"table": {
"table_name": "t3",
"access_type": "ALL",
+ "loops": 10,
"r_loops": 1,
"rows": 10,
"r_rows": 10,
@@ -570,6 +581,7 @@ ANALYZE
"table": {
"table_name": "t6",
"access_type": "ALL",
+ "loops": 1,
"r_loops": 1,
"rows": 5,
"r_rows": 5,
@@ -586,6 +598,7 @@ ANALYZE
"table": {
"table_name": "t5",
"access_type": "ALL",
+ "loops": 5,
"r_loops": 1,
"rows": 7,
"r_rows": 7,
@@ -630,6 +643,7 @@ EXPLAIN
"table": {
"table_name": "t6",
"access_type": "ALL",
+ "loops": 1,
"rows": 5,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -641,6 +655,7 @@ EXPLAIN
"table": {
"table_name": "t5",
"access_type": "ALL",
+ "loops": 5,
"rows": 7,
"cost": "COST_REPLACED",
"filtered": 100
@@ -700,6 +715,7 @@ ANALYZE
"key": "idx",
"key_length": "5",
"used_key_parts": ["col1"],
+ "loops": 1,
"r_loops": 1,
"rows": 7,
"r_rows": 20,
diff --git a/mysql-test/main/brackets.result b/mysql-test/main/brackets.result
index 73917dd635b..0403ce81d1d 100644
--- a/mysql-test/main/brackets.result
+++ b/mysql-test/main/brackets.result
@@ -270,6 +270,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 3,
"cost": "COST_REPLACED",
"filtered": 100
@@ -302,6 +303,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 3,
"cost": "COST_REPLACED",
"filtered": 100
@@ -339,6 +341,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 3,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -358,6 +361,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 3,
"cost": "COST_REPLACED",
"filtered": 100
@@ -397,6 +401,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 3,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -416,6 +421,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 3,
"cost": "COST_REPLACED",
"filtered": 100
@@ -466,6 +472,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 5,
"cost": "COST_REPLACED",
"filtered": 100
@@ -486,6 +493,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 5,
"cost": "COST_REPLACED",
"filtered": 100,
diff --git a/mysql-test/main/cte_recursive.result b/mysql-test/main/cte_recursive.result
index 6356d94f933..189689fa463 100644
--- a/mysql-test/main/cte_recursive.result
+++ b/mysql-test/main/cte_recursive.result
@@ -1345,6 +1345,7 @@ EXPLAIN
"table": {
"table_name": "<derived4>",
"access_type": "ALL",
+ "loops": 1,
"rows": 24,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -1363,6 +1364,7 @@ EXPLAIN
"table": {
"table_name": "folks",
"access_type": "ALL",
+ "loops": 1,
"rows": 12,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -1382,6 +1384,7 @@ EXPLAIN
"table": {
"table_name": "<derived3>",
"access_type": "ALL",
+ "loops": 1,
"rows": 12,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -1401,6 +1404,7 @@ EXPLAIN
"table": {
"table_name": "folks",
"access_type": "ALL",
+ "loops": 1,
"rows": 12,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -1421,6 +1425,7 @@ EXPLAIN
"table_name": "folks",
"access_type": "ALL",
"possible_keys": ["PRIMARY"],
+ "loops": 1,
"rows": 12,
"cost": "COST_REPLACED",
"filtered": 100
@@ -1431,6 +1436,7 @@ EXPLAIN
"table": {
"table_name": "<derived3>",
"access_type": "ALL",
+ "loops": 12,
"rows": 12,
"cost": "COST_REPLACED",
"filtered": 100
@@ -1463,6 +1469,7 @@ EXPLAIN
"table": {
"table_name": "<derived4>",
"access_type": "ALL",
+ "loops": 1,
"rows": 24,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -1518,6 +1525,7 @@ EXPLAIN
"table": {
"table_name": "<derived3>",
"access_type": "ALL",
+ "loops": 1,
"rows": 12,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -1536,6 +1544,7 @@ EXPLAIN
"table": {
"table_name": "v",
"access_type": "ALL",
+ "loops": 1,
"rows": 12,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -1551,6 +1560,7 @@ EXPLAIN
"key_length": "4",
"used_key_parts": ["id"],
"ref": ["test.v.father"],
+ "loops": 12,
"rows": 1,
"cost": "COST_REPLACED",
"filtered": 100
@@ -1565,6 +1575,7 @@ EXPLAIN
"key_length": "4",
"used_key_parts": ["id"],
"ref": ["test.v.mother"],
+ "loops": 12,
"rows": 1,
"cost": "COST_REPLACED",
"filtered": 100
@@ -1583,6 +1594,7 @@ EXPLAIN
"table": {
"table_name": "<derived4>",
"access_type": "ALL",
+ "loops": 1,
"rows": 2,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -1598,6 +1610,7 @@ EXPLAIN
"key_length": "4",
"used_key_parts": ["id"],
"ref": ["a.father"],
+ "loops": 2,
"rows": 1,
"cost": "COST_REPLACED",
"filtered": 100
@@ -1612,6 +1625,7 @@ EXPLAIN
"key_length": "4",
"used_key_parts": ["id"],
"ref": ["a.mother"],
+ "loops": 2,
"rows": 1,
"cost": "COST_REPLACED",
"filtered": 100
@@ -1853,6 +1867,7 @@ EXPLAIN
"table": {
"table_name": "<derived2>",
"access_type": "ALL",
+ "loops": 1,
"rows": 10,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -1871,6 +1886,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 10,
"cost": "COST_REPLACED",
"filtered": 100
@@ -1889,6 +1905,7 @@ EXPLAIN
"table": {
"table_name": "<derived2>",
"access_type": "ALL",
+ "loops": 1,
"rows": 10,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -2497,6 +2514,7 @@ ANALYZE
"table": {
"table_name": "<derived2>",
"access_type": "ALL",
+ "loops": 1,
"r_loops": 1,
"rows": 2,
"r_rows": 10,
@@ -2533,6 +2551,7 @@ ANALYZE
"table": {
"table_name": "<derived2>",
"access_type": "ALL",
+ "loops": 1,
"r_loops": 10,
"rows": 2,
"r_rows": 1,
@@ -3910,6 +3929,7 @@ ANALYZE
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"r_loops": 1,
"rows": 3,
"r_rows": 3,
@@ -3930,6 +3950,7 @@ ANALYZE
"key_length": "23",
"used_key_parts": ["a2"],
"ref": ["test.t1.a1"],
+ "loops": 3,
"r_loops": 3,
"rows": 1,
"r_rows": 0.333333333,
@@ -3986,6 +4007,7 @@ ANALYZE
"table_name": "tt2",
"access_type": "ALL",
"possible_keys": ["b1"],
+ "loops": 1,
"r_loops": 1,
"rows": 14,
"r_rows": 14,
@@ -4006,6 +4028,7 @@ ANALYZE
"key_length": "23",
"used_key_parts": ["a2"],
"ref": ["test.tt2.b1"],
+ "loops": 14,
"r_loops": 14,
"rows": 1,
"r_rows": 0.071428571,
@@ -4192,6 +4215,7 @@ ANALYZE
"table": {
"table_name": "<derived2>",
"access_type": "ALL",
+ "loops": 1,
"r_loops": 1,
"rows": 4,
"r_rows": 4,
@@ -4219,6 +4243,7 @@ ANALYZE
"table": {
"table_name": "s",
"access_type": "ALL",
+ "loops": 1,
"r_loops": 1,
"rows": 4,
"r_rows": 4,
@@ -4244,6 +4269,7 @@ ANALYZE
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"r_loops": 1,
"rows": 4,
"r_rows": 4,
@@ -4264,6 +4290,7 @@ ANALYZE
"key_length": "9",
"used_key_parts": ["a"],
"ref": ["test.t1.c"],
+ "loops": 4,
"r_loops": 4,
"rows": 2,
"r_rows": 0.5,
@@ -4354,6 +4381,7 @@ ANALYZE
"table": {
"table_name": "tt",
"access_type": "ALL",
+ "loops": 1,
"r_loops": 1,
"rows": 4,
"r_rows": 4,
diff --git a/mysql-test/main/derived_cond_pushdown.result b/mysql-test/main/derived_cond_pushdown.result
index ab0e09cbec6..5eae44eb028 100644
--- a/mysql-test/main/derived_cond_pushdown.result
+++ b/mysql-test/main/derived_cond_pushdown.result
@@ -128,6 +128,7 @@ EXPLAIN
"table": {
"table_name": "t2",
"access_type": "ALL",
+ "loops": 1,
"rows": 9,
"cost": "COST_REPLACED",
"filtered": 100
@@ -138,6 +139,7 @@ EXPLAIN
"table": {
"table_name": "<derived2>",
"access_type": "ALL",
+ "loops": 9,
"rows": 20,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -160,6 +162,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 20,
"cost": "COST_REPLACED",
"filtered": 100
@@ -219,6 +222,7 @@ EXPLAIN
"table": {
"table_name": "t2",
"access_type": "ALL",
+ "loops": 1,
"rows": 9,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -234,6 +238,7 @@ EXPLAIN
"key_length": "5",
"used_key_parts": ["a"],
"ref": ["test.t2.a"],
+ "loops": 9,
"rows": 2,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -251,6 +256,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 20,
"cost": "COST_REPLACED",
"filtered": 100
@@ -313,6 +319,7 @@ EXPLAIN
"table": {
"table_name": "t2",
"access_type": "ALL",
+ "loops": 1,
"rows": 9,
"cost": "COST_REPLACED",
"filtered": 100
@@ -323,6 +330,7 @@ EXPLAIN
"table": {
"table_name": "<derived2>",
"access_type": "ALL",
+ "loops": 9,
"rows": 20,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -345,6 +353,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 20,
"cost": "COST_REPLACED",
"filtered": 100
@@ -396,6 +405,7 @@ EXPLAIN
"table": {
"table_name": "t2",
"access_type": "ALL",
+ "loops": 1,
"rows": 9,
"cost": "COST_REPLACED",
"filtered": 100
@@ -406,6 +416,7 @@ EXPLAIN
"table": {
"table_name": "<derived2>",
"access_type": "ALL",
+ "loops": 9,
"rows": 20,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -428,6 +439,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 20,
"cost": "COST_REPLACED",
"filtered": 100
@@ -468,6 +480,7 @@ EXPLAIN
"table": {
"table_name": "t2",
"access_type": "ALL",
+ "loops": 1,
"rows": 9,
"cost": "COST_REPLACED",
"filtered": 100
@@ -478,6 +491,7 @@ EXPLAIN
"table": {
"table_name": "<derived2>",
"access_type": "ALL",
+ "loops": 9,
"rows": 20,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -500,6 +514,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 20,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -550,6 +565,7 @@ EXPLAIN
"table": {
"table_name": "t2",
"access_type": "ALL",
+ "loops": 1,
"rows": 9,
"cost": "COST_REPLACED",
"filtered": 100
@@ -560,6 +576,7 @@ EXPLAIN
"table": {
"table_name": "<derived2>",
"access_type": "ALL",
+ "loops": 9,
"rows": 20,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -582,6 +599,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 20,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -653,6 +671,7 @@ EXPLAIN
"table": {
"table_name": "t2",
"access_type": "ALL",
+ "loops": 1,
"rows": 9,
"cost": "COST_REPLACED",
"filtered": 100
@@ -663,6 +682,7 @@ EXPLAIN
"table": {
"table_name": "<derived2>",
"access_type": "ALL",
+ "loops": 9,
"rows": 20,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -685,6 +705,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 20,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -749,6 +770,7 @@ EXPLAIN
"table": {
"table_name": "t2",
"access_type": "ALL",
+ "loops": 1,
"rows": 9,
"cost": "COST_REPLACED",
"filtered": 100
@@ -759,6 +781,7 @@ EXPLAIN
"table": {
"table_name": "<derived2>",
"access_type": "ALL",
+ "loops": 9,
"rows": 20,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -781,6 +804,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 20,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -831,6 +855,7 @@ EXPLAIN
"table": {
"table_name": "t2",
"access_type": "ALL",
+ "loops": 1,
"rows": 9,
"cost": "COST_REPLACED",
"filtered": 100
@@ -841,6 +866,7 @@ EXPLAIN
"table": {
"table_name": "<derived2>",
"access_type": "ALL",
+ "loops": 9,
"rows": 20,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -863,6 +889,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 20,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -906,6 +933,7 @@ EXPLAIN
"table": {
"table_name": "t2",
"access_type": "ALL",
+ "loops": 1,
"rows": 9,
"cost": "COST_REPLACED",
"filtered": 100
@@ -916,6 +944,7 @@ EXPLAIN
"table": {
"table_name": "<derived2>",
"access_type": "ALL",
+ "loops": 9,
"rows": 20,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -938,6 +967,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 20,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -992,6 +1022,7 @@ EXPLAIN
"table": {
"table_name": "t",
"access_type": "ALL",
+ "loops": 1,
"rows": 9,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -1007,6 +1038,7 @@ EXPLAIN
"key_length": "5",
"used_key_parts": ["a"],
"ref": ["test.t.a"],
+ "loops": 9,
"rows": 2,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -1024,6 +1056,7 @@ EXPLAIN
"table": {
"table_name": "t1_double",
"access_type": "ALL",
+ "loops": 1,
"rows": 9,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -1066,6 +1099,7 @@ EXPLAIN
"table": {
"table_name": "t",
"access_type": "ALL",
+ "loops": 1,
"rows": 9,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -1081,6 +1115,7 @@ EXPLAIN
"key_length": "3",
"used_key_parts": ["a"],
"ref": ["test.t.a"],
+ "loops": 9,
"rows": 2,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -1098,6 +1133,7 @@ EXPLAIN
"table": {
"table_name": "t1_decimal",
"access_type": "ALL",
+ "loops": 1,
"rows": 9,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -1163,6 +1199,7 @@ EXPLAIN
"table": {
"table_name": "t2",
"access_type": "ALL",
+ "loops": 1,
"rows": 9,
"cost": "COST_REPLACED",
"filtered": 100
@@ -1173,6 +1210,7 @@ EXPLAIN
"table": {
"table_name": "<derived2>",
"access_type": "ALL",
+ "loops": 9,
"rows": 20,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -1195,6 +1233,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 20,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -1267,6 +1306,7 @@ EXPLAIN
"table": {
"table_name": "t2",
"access_type": "ALL",
+ "loops": 1,
"rows": 9,
"cost": "COST_REPLACED",
"filtered": 100
@@ -1277,6 +1317,7 @@ EXPLAIN
"table": {
"table_name": "<derived2>",
"access_type": "ALL",
+ "loops": 9,
"rows": 20,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -1299,6 +1340,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 20,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -1360,6 +1402,7 @@ EXPLAIN
"table": {
"table_name": "t2",
"access_type": "ALL",
+ "loops": 1,
"rows": 9,
"cost": "COST_REPLACED",
"filtered": 100
@@ -1370,6 +1413,7 @@ EXPLAIN
"table": {
"table_name": "<derived2>",
"access_type": "ALL",
+ "loops": 9,
"rows": 20,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -1392,6 +1436,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 20,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -1442,6 +1487,7 @@ EXPLAIN
"table": {
"table_name": "t2",
"access_type": "ALL",
+ "loops": 1,
"rows": 9,
"cost": "COST_REPLACED",
"filtered": 100
@@ -1452,6 +1498,7 @@ EXPLAIN
"table": {
"table_name": "<derived2>",
"access_type": "ALL",
+ "loops": 9,
"rows": 20,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -1474,6 +1521,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 20,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -1534,6 +1582,7 @@ EXPLAIN
"table": {
"table_name": "t2",
"access_type": "ALL",
+ "loops": 1,
"rows": 9,
"cost": "COST_REPLACED",
"filtered": 100
@@ -1544,6 +1593,7 @@ EXPLAIN
"table": {
"table_name": "<derived2>",
"access_type": "ALL",
+ "loops": 9,
"rows": 20,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -1566,6 +1616,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 20,
"cost": "COST_REPLACED",
"filtered": 100
@@ -1592,6 +1643,7 @@ EXPLAIN
"table": {
"table_name": "t2",
"access_type": "ALL",
+ "loops": 1,
"rows": 9,
"cost": "COST_REPLACED",
"filtered": 100
@@ -1602,6 +1654,7 @@ EXPLAIN
"table": {
"table_name": "<derived2>",
"access_type": "ALL",
+ "loops": 9,
"rows": 20,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -1624,6 +1677,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 20,
"cost": "COST_REPLACED",
"filtered": 100
@@ -1666,6 +1720,7 @@ EXPLAIN
"table": {
"table_name": "t2",
"access_type": "ALL",
+ "loops": 1,
"rows": 9,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -1681,6 +1736,7 @@ EXPLAIN
"key_length": "5",
"used_key_parts": ["b"],
"ref": ["test.t2.b"],
+ "loops": 9,
"rows": 2,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -1698,6 +1754,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 20,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -1736,6 +1793,7 @@ EXPLAIN
"table": {
"table_name": "t2",
"access_type": "ALL",
+ "loops": 1,
"rows": 9,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -1751,6 +1809,7 @@ EXPLAIN
"key_length": "5",
"used_key_parts": ["max_c"],
"ref": ["test.t2.d"],
+ "loops": 9,
"rows": 2,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -1768,6 +1827,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 20,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -1813,6 +1873,7 @@ EXPLAIN
"table": {
"table_name": "t2",
"access_type": "ALL",
+ "loops": 1,
"rows": 9,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -1828,6 +1889,7 @@ EXPLAIN
"key_length": "5",
"used_key_parts": ["a"],
"ref": ["test.t2.a"],
+ "loops": 9,
"rows": 2,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -1844,6 +1906,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 20,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -1880,6 +1943,7 @@ EXPLAIN
"table": {
"table_name": "t2",
"access_type": "ALL",
+ "loops": 1,
"rows": 9,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -1895,6 +1959,7 @@ EXPLAIN
"key_length": "10",
"used_key_parts": ["a", "b"],
"ref": ["test.t2.a", "test.t2.a"],
+ "loops": 9,
"rows": 2,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -1911,6 +1976,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 20,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -1952,6 +2018,7 @@ EXPLAIN
"table": {
"table_name": "t2",
"access_type": "ALL",
+ "loops": 1,
"rows": 9,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -1967,6 +2034,7 @@ EXPLAIN
"key_length": "5",
"used_key_parts": ["max_c"],
"ref": ["test.t2.c"],
+ "loops": 9,
"rows": 2,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -1983,6 +2051,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 20,
"cost": "COST_REPLACED",
"filtered": 100
@@ -2020,6 +2089,7 @@ EXPLAIN
"table": {
"table_name": "t2",
"access_type": "ALL",
+ "loops": 1,
"rows": 9,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -2031,6 +2101,7 @@ EXPLAIN
"table": {
"table_name": "<derived2>",
"access_type": "ALL",
+ "loops": 9,
"rows": 20,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -2049,6 +2120,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 20,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -2085,6 +2157,7 @@ EXPLAIN
"table": {
"table_name": "t2",
"access_type": "ALL",
+ "loops": 1,
"rows": 9,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -2096,6 +2169,7 @@ EXPLAIN
"table": {
"table_name": "<derived2>",
"access_type": "ALL",
+ "loops": 9,
"rows": 20,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -2114,6 +2188,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 20,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -2156,6 +2231,7 @@ EXPLAIN
"table": {
"table_name": "<derived2>",
"access_type": "ALL",
+ "loops": 1,
"rows": 12,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -2173,6 +2249,7 @@ EXPLAIN
"table": {
"table_name": "t1_char",
"access_type": "ALL",
+ "loops": 1,
"rows": 12,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -2191,6 +2268,7 @@ EXPLAIN
"table": {
"table_name": "t",
"access_type": "ALL",
+ "loops": 12,
"rows": 12,
"cost": "COST_REPLACED",
"filtered": 100
@@ -2244,6 +2322,7 @@ EXPLAIN
"table": {
"table_name": "t",
"access_type": "ALL",
+ "loops": 1,
"rows": 9,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -2259,6 +2338,7 @@ EXPLAIN
"key_length": "6",
"used_key_parts": ["a", "b"],
"ref": ["test.t.b", "test.t.b"],
+ "loops": 9,
"rows": 2,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -2275,6 +2355,7 @@ EXPLAIN
"table": {
"table_name": "t1_decimal",
"access_type": "ALL",
+ "loops": 1,
"rows": 9,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -2328,6 +2409,7 @@ EXPLAIN
"table": {
"table_name": "t2",
"access_type": "ALL",
+ "loops": 1,
"rows": 9,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -2339,6 +2421,7 @@ EXPLAIN
"table": {
"table_name": "<derived2>",
"access_type": "ALL",
+ "loops": 9,
"rows": 20,
"cost": "COST_REPLACED",
"filtered": 100
@@ -2360,6 +2443,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 20,
"cost": "COST_REPLACED",
"filtered": 100
@@ -2402,6 +2486,7 @@ EXPLAIN
"table": {
"table_name": "t2",
"access_type": "ALL",
+ "loops": 1,
"rows": 9,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -2417,6 +2502,7 @@ EXPLAIN
"key_length": "10",
"used_key_parts": ["a", "max_c"],
"ref": ["test.t2.a", "test.t2.c"],
+ "loops": 9,
"rows": 2,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -2433,6 +2519,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 20,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -2487,6 +2574,7 @@ EXPLAIN
"table": {
"table_name": "t2",
"access_type": "ALL",
+ "loops": 1,
"rows": 9,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -2498,6 +2586,7 @@ EXPLAIN
"table": {
"table_name": "<derived2>",
"access_type": "ALL",
+ "loops": 9,
"rows": 20,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -2519,6 +2608,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 20,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -2562,6 +2652,7 @@ EXPLAIN
"table": {
"table_name": "t2",
"access_type": "ALL",
+ "loops": 1,
"rows": 9,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -2577,6 +2668,7 @@ EXPLAIN
"key_length": "5",
"used_key_parts": ["max_c"],
"ref": ["test.t2.d"],
+ "loops": 9,
"rows": 2,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -2594,6 +2686,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 20,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -2637,6 +2730,7 @@ EXPLAIN
"table": {
"table_name": "t",
"access_type": "ALL",
+ "loops": 1,
"rows": 9,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -2652,6 +2746,7 @@ EXPLAIN
"key_length": "18",
"used_key_parts": ["b", "c"],
"ref": ["test.t.c", "test.t.c"],
+ "loops": 9,
"rows": 2,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -2669,6 +2764,7 @@ EXPLAIN
"table": {
"table_name": "t1_double",
"access_type": "ALL",
+ "loops": 1,
"rows": 9,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -2717,6 +2813,7 @@ EXPLAIN
"table": {
"table_name": "t",
"access_type": "ALL",
+ "loops": 1,
"rows": 9,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -2732,6 +2829,7 @@ EXPLAIN
"key_length": "9",
"used_key_parts": ["c"],
"ref": ["test.t.c"],
+ "loops": 9,
"rows": 2,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -2749,6 +2847,7 @@ EXPLAIN
"table": {
"table_name": "t1_double",
"access_type": "ALL",
+ "loops": 1,
"rows": 9,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -2828,6 +2927,7 @@ EXPLAIN
"table": {
"table_name": "<derived2>",
"access_type": "ALL",
+ "loops": 1,
"rows": 9,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -2845,6 +2945,7 @@ EXPLAIN
"table": {
"table_name": "t1_decimal",
"access_type": "ALL",
+ "loops": 1,
"rows": 9,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -2863,6 +2964,7 @@ EXPLAIN
"table": {
"table_name": "t",
"access_type": "ALL",
+ "loops": 9,
"rows": 9,
"cost": "COST_REPLACED",
"filtered": 100
@@ -2907,6 +3009,7 @@ EXPLAIN
"table": {
"table_name": "t2",
"access_type": "ALL",
+ "loops": 1,
"rows": 9,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -2922,6 +3025,7 @@ EXPLAIN
"key_length": "10",
"used_key_parts": ["a", "b"],
"ref": ["test.t2.a", "test.t2.a"],
+ "loops": 9,
"rows": 2,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -2939,6 +3043,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 20,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -2988,6 +3093,7 @@ EXPLAIN
"table": {
"table_name": "t2",
"access_type": "ALL",
+ "loops": 1,
"rows": 9,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -2999,6 +3105,7 @@ EXPLAIN
"table": {
"table_name": "<derived2>",
"access_type": "ALL",
+ "loops": 9,
"rows": 20,
"cost": "COST_REPLACED",
"filtered": 100
@@ -3019,6 +3126,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 20,
"cost": "COST_REPLACED",
"filtered": 100
@@ -3060,6 +3168,7 @@ EXPLAIN
"table": {
"table_name": "t2",
"access_type": "ALL",
+ "loops": 1,
"rows": 9,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -3075,6 +3184,7 @@ EXPLAIN
"key_length": "10",
"used_key_parts": ["a", "b"],
"ref": ["test.t2.a", "test.t2.b"],
+ "loops": 9,
"rows": 2,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -3091,6 +3201,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 20,
"cost": "COST_REPLACED",
"filtered": 100
@@ -3146,6 +3257,7 @@ EXPLAIN
"table": {
"table_name": "t2",
"access_type": "ALL",
+ "loops": 1,
"rows": 9,
"cost": "COST_REPLACED",
"filtered": 100
@@ -3156,6 +3268,7 @@ EXPLAIN
"table": {
"table_name": "<derived2>",
"access_type": "ALL",
+ "loops": 9,
"rows": 20,
"cost": "COST_REPLACED",
"filtered": 100
@@ -3177,6 +3290,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 20,
"cost": "COST_REPLACED",
"filtered": 100
@@ -3256,6 +3370,7 @@ EXPLAIN
"table": {
"table_name": "t2",
"access_type": "ALL",
+ "loops": 1,
"rows": 9,
"cost": "COST_REPLACED",
"filtered": 100
@@ -3266,6 +3381,7 @@ EXPLAIN
"table": {
"table_name": "<derived2>",
"access_type": "ALL",
+ "loops": 9,
"rows": 20,
"cost": "COST_REPLACED",
"filtered": 100
@@ -3287,6 +3403,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 20,
"cost": "COST_REPLACED",
"filtered": 100
@@ -3338,6 +3455,7 @@ EXPLAIN
"table": {
"table_name": "t2",
"access_type": "ALL",
+ "loops": 1,
"rows": 9,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -3349,6 +3467,7 @@ EXPLAIN
"table": {
"table_name": "<derived2>",
"access_type": "ALL",
+ "loops": 9,
"rows": 20,
"cost": "COST_REPLACED",
"filtered": 100
@@ -3370,6 +3489,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 20,
"cost": "COST_REPLACED",
"filtered": 100
@@ -3420,6 +3540,7 @@ EXPLAIN
"table": {
"table_name": "t2",
"access_type": "ALL",
+ "loops": 1,
"rows": 9,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -3435,6 +3556,7 @@ EXPLAIN
"key_length": "5",
"used_key_parts": ["a"],
"ref": ["test.t2.a"],
+ "loops": 9,
"rows": 2,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -3451,6 +3573,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 20,
"cost": "COST_REPLACED",
"filtered": 100
@@ -3472,6 +3595,7 @@ EXPLAIN
"key_length": "5",
"used_key_parts": ["a"],
"ref": ["test.t2.a"],
+ "loops": 18,
"rows": 2,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -3489,6 +3613,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 20,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -3559,6 +3684,7 @@ EXPLAIN
"table": {
"table_name": "t2",
"access_type": "ALL",
+ "loops": 1,
"rows": 9,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -3570,6 +3696,7 @@ EXPLAIN
"table": {
"table_name": "<derived2>",
"access_type": "ALL",
+ "loops": 9,
"rows": 20,
"cost": "COST_REPLACED",
"filtered": 100
@@ -3591,6 +3718,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 20,
"cost": "COST_REPLACED",
"filtered": 100
@@ -3612,6 +3740,7 @@ EXPLAIN
"key_length": "5",
"used_key_parts": ["b"],
"ref": ["v1.b"],
+ "loops": 180,
"rows": 2,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -3629,6 +3758,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 20,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -3679,6 +3809,7 @@ EXPLAIN
"table": {
"table_name": "t2",
"access_type": "ALL",
+ "loops": 1,
"rows": 9,
"cost": "COST_REPLACED",
"filtered": 100
@@ -3689,6 +3820,7 @@ EXPLAIN
"table": {
"table_name": "<derived2>",
"access_type": "ALL",
+ "loops": 9,
"rows": 20,
"cost": "COST_REPLACED",
"filtered": 100
@@ -3710,6 +3842,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 20,
"cost": "COST_REPLACED",
"filtered": 100
@@ -3727,6 +3860,7 @@ EXPLAIN
"table": {
"table_name": "<derived3>",
"access_type": "ALL",
+ "loops": 180,
"rows": 20,
"cost": "COST_REPLACED",
"filtered": 100
@@ -3748,6 +3882,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 20,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -3802,6 +3937,7 @@ EXPLAIN
"table": {
"table_name": "t2",
"access_type": "ALL",
+ "loops": 1,
"rows": 9,
"cost": "COST_REPLACED",
"filtered": 100
@@ -3812,6 +3948,7 @@ EXPLAIN
"table": {
"table_name": "<derived2>",
"access_type": "ALL",
+ "loops": 9,
"rows": 20,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -3833,6 +3970,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 20,
"cost": "COST_REPLACED",
"filtered": 100
@@ -3850,6 +3988,7 @@ EXPLAIN
"table": {
"table_name": "<derived3>",
"access_type": "ALL",
+ "loops": 180,
"rows": 20,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -3872,6 +4011,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 20,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -3917,6 +4057,7 @@ EXPLAIN
"table": {
"table_name": "t2",
"access_type": "ALL",
+ "loops": 1,
"rows": 9,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -3932,6 +4073,7 @@ EXPLAIN
"key_length": "10",
"used_key_parts": ["a", "b"],
"ref": ["test.t2.a", "test.t2.a"],
+ "loops": 9,
"rows": 2,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -3948,6 +4090,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 20,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -3970,6 +4113,7 @@ EXPLAIN
"key_length": "5",
"used_key_parts": ["a"],
"ref": ["test.t2.a"],
+ "loops": 18,
"rows": 2,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -3987,6 +4131,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 20,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -4029,6 +4174,7 @@ EXPLAIN
"table": {
"table_name": "t2",
"access_type": "ALL",
+ "loops": 1,
"rows": 9,
"cost": "COST_REPLACED",
"filtered": 100
@@ -4039,6 +4185,7 @@ EXPLAIN
"table": {
"table_name": "<derived2>",
"access_type": "ALL",
+ "loops": 9,
"rows": 20,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -4061,6 +4208,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 20,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -4083,6 +4231,7 @@ EXPLAIN
"key_length": "5",
"used_key_parts": ["b"],
"ref": ["v1.b"],
+ "loops": 180,
"rows": 2,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -4099,6 +4248,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 20,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -4152,6 +4302,7 @@ EXPLAIN
"table": {
"table_name": "<derived2>",
"access_type": "ALL",
+ "loops": 1,
"rows": 12,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -4169,6 +4320,7 @@ EXPLAIN
"table": {
"table_name": "t1_char",
"access_type": "ALL",
+ "loops": 1,
"rows": 12,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -4187,6 +4339,7 @@ EXPLAIN
"table": {
"table_name": "t",
"access_type": "ALL",
+ "loops": 12,
"rows": 12,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -4264,6 +4417,7 @@ EXPLAIN
"table": {
"table_name": "t2",
"access_type": "ALL",
+ "loops": 1,
"rows": 9,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -4279,6 +4433,7 @@ EXPLAIN
"key_length": "5",
"used_key_parts": ["a"],
"ref": ["test.t2.a"],
+ "loops": 9,
"rows": 2,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -4296,6 +4451,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 20,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -4314,6 +4470,7 @@ EXPLAIN
"table": {
"table_name": "<derived2>",
"access_type": "ALL",
+ "loops": 18,
"rows": 20,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -4335,6 +4492,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 20,
"cost": "COST_REPLACED",
"filtered": 100
@@ -4352,6 +4510,7 @@ EXPLAIN
"table": {
"table_name": "<derived3>",
"access_type": "ALL",
+ "loops": 360,
"rows": 20,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -4374,6 +4533,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 20,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -4434,6 +4594,7 @@ EXPLAIN
"table": {
"table_name": "t2",
"access_type": "ALL",
+ "loops": 1,
"rows": 9,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -4449,6 +4610,7 @@ EXPLAIN
"key_length": "5",
"used_key_parts": ["b"],
"ref": ["test.t2.b"],
+ "loops": 9,
"rows": 2,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -4466,6 +4628,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 20,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -4488,6 +4651,7 @@ EXPLAIN
"key_length": "5",
"used_key_parts": ["a"],
"ref": ["v1.a"],
+ "loops": 18,
"rows": 2,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -4505,6 +4669,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 20,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -4598,6 +4763,7 @@ EXPLAIN
"table": {
"table_name": "t2",
"access_type": "ALL",
+ "loops": 1,
"rows": 9,
"cost": "COST_REPLACED",
"filtered": 100
@@ -4608,6 +4774,7 @@ EXPLAIN
"table": {
"table_name": "<derived2>",
"access_type": "ALL",
+ "loops": 9,
"rows": 20,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -4630,6 +4797,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 20,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -4652,6 +4820,7 @@ EXPLAIN
"key_length": "5",
"used_key_parts": ["a"],
"ref": ["v1.a"],
+ "loops": 180,
"rows": 2,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -4669,6 +4838,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 20,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -4691,6 +4861,7 @@ EXPLAIN
"key_length": "5",
"used_key_parts": ["b"],
"ref": ["v1.b"],
+ "loops": 360,
"rows": 2,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -4708,6 +4879,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 20,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -4776,6 +4948,7 @@ EXPLAIN
"table": {
"table_name": "t2",
"access_type": "ALL",
+ "loops": 1,
"rows": 9,
"cost": "COST_REPLACED",
"filtered": 100
@@ -4786,6 +4959,7 @@ EXPLAIN
"table": {
"table_name": "<derived2>",
"access_type": "ALL",
+ "loops": 9,
"rows": 20,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -4808,6 +4982,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 20,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -4862,6 +5037,7 @@ EXPLAIN
"table": {
"table_name": "t2",
"access_type": "ALL",
+ "loops": 1,
"rows": 9,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -4877,6 +5053,7 @@ EXPLAIN
"key_length": "5",
"used_key_parts": ["a"],
"ref": ["test.t2.a"],
+ "loops": 9,
"rows": 2,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -4894,6 +5071,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 20,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -4955,6 +5133,7 @@ EXPLAIN
"table": {
"table_name": "t2",
"access_type": "ALL",
+ "loops": 1,
"rows": 9,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -4970,6 +5149,7 @@ EXPLAIN
"key_length": "5",
"used_key_parts": ["b"],
"ref": ["test.t2.b"],
+ "loops": 9,
"rows": 2,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -4987,6 +5167,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 20,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -5013,6 +5194,7 @@ EXPLAIN
"table": {
"table_name": "t2",
"access_type": "ALL",
+ "loops": 1,
"rows": 9,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -5024,6 +5206,7 @@ EXPLAIN
"table": {
"table_name": "<derived4>",
"access_type": "ALL",
+ "loops": 9,
"rows": 20,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -5045,6 +5228,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 20,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -5129,6 +5313,7 @@ EXPLAIN
"table": {
"table_name": "t2",
"access_type": "ALL",
+ "loops": 1,
"rows": 9,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -5140,6 +5325,7 @@ EXPLAIN
"table": {
"table_name": "<derived3>",
"access_type": "ALL",
+ "loops": 9,
"rows": 20,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -5161,6 +5347,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 20,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -5187,6 +5374,7 @@ EXPLAIN
"table": {
"table_name": "t2",
"access_type": "ALL",
+ "loops": 1,
"rows": 9,
"cost": "COST_REPLACED",
"filtered": 100
@@ -5197,6 +5385,7 @@ EXPLAIN
"table": {
"table_name": "<derived4>",
"access_type": "ALL",
+ "loops": 9,
"rows": 20,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -5219,6 +5408,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 20,
"cost": "COST_REPLACED",
"filtered": 100
@@ -5314,6 +5504,7 @@ EXPLAIN
"table": {
"table_name": "t2",
"access_type": "ALL",
+ "loops": 1,
"rows": 9,
"cost": "COST_REPLACED",
"filtered": 100
@@ -5324,6 +5515,7 @@ EXPLAIN
"table": {
"table_name": "<derived3>",
"access_type": "ALL",
+ "loops": 9,
"rows": 20,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -5346,6 +5538,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 20,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -5372,6 +5565,7 @@ EXPLAIN
"table": {
"table_name": "t2",
"access_type": "ALL",
+ "loops": 1,
"rows": 9,
"cost": "COST_REPLACED",
"filtered": 100
@@ -5382,6 +5576,7 @@ EXPLAIN
"table": {
"table_name": "<derived4>",
"access_type": "ALL",
+ "loops": 9,
"rows": 20,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -5404,6 +5599,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 20,
"cost": "COST_REPLACED",
"filtered": 100
@@ -5500,6 +5696,7 @@ EXPLAIN
"table": {
"table_name": "t2",
"access_type": "ALL",
+ "loops": 1,
"rows": 9,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -5511,6 +5708,7 @@ EXPLAIN
"table": {
"table_name": "<derived4>",
"access_type": "ALL",
+ "loops": 9,
"rows": 20,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -5533,6 +5731,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 20,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -5559,6 +5758,7 @@ EXPLAIN
"table": {
"table_name": "t2",
"access_type": "ALL",
+ "loops": 1,
"rows": 9,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -5570,6 +5770,7 @@ EXPLAIN
"table": {
"table_name": "<derived5>",
"access_type": "ALL",
+ "loops": 9,
"rows": 20,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -5592,6 +5793,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 20,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -5618,6 +5820,7 @@ EXPLAIN
"table": {
"table_name": "t2",
"access_type": "ALL",
+ "loops": 1,
"rows": 9,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -5633,6 +5836,7 @@ EXPLAIN
"key_length": "5",
"used_key_parts": ["max_c"],
"ref": ["test.t2.c"],
+ "loops": 9,
"rows": 2,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -5650,6 +5854,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 20,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -5712,6 +5917,7 @@ EXPLAIN
"table": {
"table_name": "t2",
"access_type": "ALL",
+ "loops": 1,
"rows": 9,
"cost": "COST_REPLACED",
"filtered": 100
@@ -5722,6 +5928,7 @@ EXPLAIN
"table": {
"table_name": "<derived2>",
"access_type": "ALL",
+ "loops": 9,
"rows": 40,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -5749,6 +5956,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 20,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -5774,6 +5982,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 20,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -5841,6 +6050,7 @@ EXPLAIN
"table": {
"table_name": "t2",
"access_type": "ALL",
+ "loops": 1,
"rows": 9,
"cost": "COST_REPLACED",
"filtered": 100
@@ -5851,6 +6061,7 @@ EXPLAIN
"table": {
"table_name": "<derived2>",
"access_type": "ALL",
+ "loops": 9,
"rows": 40,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -5879,6 +6090,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 20,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -5904,6 +6116,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 20,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -5958,6 +6171,7 @@ EXPLAIN
"table": {
"table_name": "t2",
"access_type": "ALL",
+ "loops": 1,
"rows": 9,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -5969,6 +6183,7 @@ EXPLAIN
"table": {
"table_name": "<derived2>",
"access_type": "ALL",
+ "loops": 9,
"rows": 40,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -5996,6 +6211,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 20,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -6021,6 +6237,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 20,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -6073,6 +6290,7 @@ EXPLAIN
"table": {
"table_name": "t",
"access_type": "ALL",
+ "loops": 1,
"rows": 12,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -6088,6 +6306,7 @@ EXPLAIN
"key_length": "2",
"used_key_parts": ["a"],
"ref": ["test.t.a"],
+ "loops": 12,
"rows": 2,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -6105,6 +6324,7 @@ EXPLAIN
"table": {
"table_name": "t1_char",
"access_type": "ALL",
+ "loops": 1,
"rows": 12,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -6161,6 +6381,7 @@ EXPLAIN
"table": {
"table_name": "t2",
"access_type": "ALL",
+ "loops": 1,
"rows": 9,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -6172,6 +6393,7 @@ EXPLAIN
"table": {
"table_name": "<derived4>",
"access_type": "ALL",
+ "loops": 9,
"rows": 20,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -6193,6 +6415,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 20,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -6211,6 +6434,7 @@ EXPLAIN
"table": {
"table_name": "<derived2>",
"access_type": "ALL",
+ "loops": 180,
"rows": 40,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -6239,6 +6463,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 20,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -6264,6 +6489,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 20,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -6327,6 +6553,7 @@ EXPLAIN
"table": {
"table_name": "t2",
"access_type": "ALL",
+ "loops": 1,
"rows": 9,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -6342,6 +6569,7 @@ EXPLAIN
"key_length": "5",
"used_key_parts": ["a"],
"ref": ["test.t2.a"],
+ "loops": 9,
"rows": 6,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -6365,6 +6593,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 20,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -6390,6 +6619,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 20,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -6415,6 +6645,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 20,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -6523,6 +6754,7 @@ EXPLAIN
"table": {
"table_name": "t2",
"access_type": "ALL",
+ "loops": 1,
"rows": 9,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -6538,6 +6770,7 @@ EXPLAIN
"key_length": "5",
"used_key_parts": ["a"],
"ref": ["test.t2.a"],
+ "loops": 9,
"rows": 4,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -6557,6 +6790,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 20,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -6576,6 +6810,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 20,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -6662,6 +6897,7 @@ EXPLAIN
"table": {
"table_name": "t2",
"access_type": "ALL",
+ "loops": 1,
"rows": 9,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -6677,6 +6913,7 @@ EXPLAIN
"key_length": "5",
"used_key_parts": ["a"],
"ref": ["test.t2.a"],
+ "loops": 9,
"rows": 4,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -6696,6 +6933,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 20,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -6715,6 +6953,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 20,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -6769,6 +7008,7 @@ EXPLAIN
"table": {
"table_name": "t2",
"access_type": "ALL",
+ "loops": 1,
"rows": 9,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -6784,6 +7024,7 @@ EXPLAIN
"key_length": "5",
"used_key_parts": ["a"],
"ref": ["test.t2.a"],
+ "loops": 9,
"rows": 4,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -6803,6 +7044,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 20,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -6822,6 +7064,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 20,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -6873,6 +7116,7 @@ EXPLAIN
"table": {
"table_name": "t2",
"access_type": "ALL",
+ "loops": 1,
"rows": 9,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -6888,6 +7132,7 @@ EXPLAIN
"key_length": "5",
"used_key_parts": ["a"],
"ref": ["test.t2.a"],
+ "loops": 9,
"rows": 4,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -6911,6 +7156,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 20,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -6932,6 +7178,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 20,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -7002,6 +7249,7 @@ EXPLAIN
"table": {
"table_name": "t2",
"access_type": "ALL",
+ "loops": 1,
"rows": 9,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -7017,6 +7265,7 @@ EXPLAIN
"key_length": "5",
"used_key_parts": ["a"],
"ref": ["test.t2.a"],
+ "loops": 9,
"rows": 4,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -7040,6 +7289,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 20,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -7061,6 +7311,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 20,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -7133,6 +7384,7 @@ EXPLAIN
"table": {
"table_name": "<derived2>",
"access_type": "ALL",
+ "loops": 1,
"rows": 20,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -7149,6 +7401,7 @@ EXPLAIN
"table": {
"table_name": "<derived3>",
"access_type": "ALL",
+ "loops": 1,
"rows": 20,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -7166,6 +7419,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 20,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -7191,6 +7445,7 @@ EXPLAIN
"table": {
"table_name": "<derived4>",
"access_type": "ALL",
+ "loops": 20,
"rows": 20,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -7212,6 +7467,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 20,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -7262,6 +7518,7 @@ EXPLAIN
"table": {
"table_name": "t2",
"access_type": "ALL",
+ "loops": 1,
"rows": 9,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -7277,6 +7534,7 @@ EXPLAIN
"key_length": "5",
"used_key_parts": ["a"],
"ref": ["test.t2.a"],
+ "loops": 9,
"rows": 2,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -7292,6 +7550,7 @@ EXPLAIN
"table": {
"table_name": "<derived3>",
"access_type": "ALL",
+ "loops": 1,
"rows": 20,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -7309,6 +7568,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 20,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -7338,6 +7598,7 @@ EXPLAIN
"key_length": "5",
"used_key_parts": ["a"],
"ref": ["test.t2.a"],
+ "loops": 18,
"rows": 2,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -7355,6 +7616,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 20,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -7407,6 +7669,7 @@ EXPLAIN
"table": {
"table_name": "t2",
"access_type": "ALL",
+ "loops": 1,
"rows": 9,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -7422,6 +7685,7 @@ EXPLAIN
"key_length": "5",
"used_key_parts": ["a"],
"ref": ["test.t2.a"],
+ "loops": 9,
"rows": 2,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -7439,6 +7703,7 @@ EXPLAIN
"table": {
"table_name": "<derived3>",
"access_type": "ALL",
+ "loops": 1,
"rows": 20,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -7456,6 +7721,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 20,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -7485,6 +7751,7 @@ EXPLAIN
"key_length": "5",
"used_key_parts": ["a"],
"ref": ["test.t2.a"],
+ "loops": 18,
"rows": 2,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -7502,6 +7769,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 20,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -7639,6 +7907,7 @@ EXPLAIN
"table": {
"table_name": "t2",
"access_type": "ALL",
+ "loops": 1,
"rows": 9,
"cost": "COST_REPLACED",
"filtered": 100
@@ -7649,6 +7918,7 @@ EXPLAIN
"table": {
"table_name": "<derived2>",
"access_type": "ALL",
+ "loops": 9,
"rows": 20,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -7670,6 +7940,7 @@ EXPLAIN
"table": {
"table_name": "<derived3>",
"access_type": "ALL",
+ "loops": 1,
"rows": 20,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -7687,6 +7958,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 20,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -7716,6 +7988,7 @@ EXPLAIN
"key_length": "5",
"used_key_parts": ["a"],
"ref": ["v4.a"],
+ "loops": 180,
"rows": 2,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -7733,6 +8006,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 20,
"cost": "COST_REPLACED",
"filtered": 100
@@ -7778,6 +8052,7 @@ EXPLAIN
"table": {
"table_name": "<derived2>",
"access_type": "ALL",
+ "loops": 1,
"rows": 20,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -7795,6 +8070,7 @@ EXPLAIN
"table": {
"table_name": "<derived3>",
"access_type": "ALL",
+ "loops": 1,
"rows": 20,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -7812,6 +8088,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 20,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -7837,6 +8114,7 @@ EXPLAIN
"table": {
"table_name": "<derived4>",
"access_type": "ALL",
+ "loops": 20,
"rows": 20,
"cost": "COST_REPLACED",
"filtered": 100
@@ -7857,6 +8135,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 20,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -7904,6 +8183,7 @@ EXPLAIN
"table": {
"table_name": "<derived2>",
"access_type": "ALL",
+ "loops": 1,
"rows": 20,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -7921,6 +8201,7 @@ EXPLAIN
"table": {
"table_name": "<derived3>",
"access_type": "ALL",
+ "loops": 1,
"rows": 20,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -7938,6 +8219,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 20,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -7967,6 +8249,7 @@ EXPLAIN
"key_length": "5",
"used_key_parts": ["b"],
"ref": ["v4.a"],
+ "loops": 20,
"rows": 2,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -7983,6 +8266,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 20,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -8030,6 +8314,7 @@ EXPLAIN
"table": {
"table_name": "<derived2>",
"access_type": "ALL",
+ "loops": 1,
"rows": 20,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -8046,6 +8331,7 @@ EXPLAIN
"table": {
"table_name": "<derived3>",
"access_type": "ALL",
+ "loops": 1,
"rows": 20,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -8063,6 +8349,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 20,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -8092,6 +8379,7 @@ EXPLAIN
"key_length": "5",
"used_key_parts": ["b"],
"ref": ["v4.a"],
+ "loops": 20,
"rows": 2,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -8108,6 +8396,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 20,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -8155,6 +8444,7 @@ EXPLAIN
"table": {
"table_name": "<derived2>",
"access_type": "ALL",
+ "loops": 1,
"rows": 20,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -8171,6 +8461,7 @@ EXPLAIN
"table": {
"table_name": "<derived3>",
"access_type": "ALL",
+ "loops": 1,
"rows": 20,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -8188,6 +8479,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 20,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -8217,6 +8509,7 @@ EXPLAIN
"key_length": "5",
"used_key_parts": ["b"],
"ref": ["v4.a"],
+ "loops": 20,
"rows": 2,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -8233,6 +8526,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 20,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -8288,6 +8582,7 @@ EXPLAIN
"table": {
"table_name": "<derived2>",
"access_type": "ALL",
+ "loops": 1,
"rows": 20,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -8305,6 +8600,7 @@ EXPLAIN
"table": {
"table_name": "<derived3>",
"access_type": "ALL",
+ "loops": 1,
"rows": 20,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -8322,6 +8618,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 20,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -8351,6 +8648,7 @@ EXPLAIN
"key_length": "5",
"used_key_parts": ["max_c"],
"ref": ["v4.min_c"],
+ "loops": 20,
"rows": 2,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -8367,6 +8665,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 20,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -8421,6 +8720,7 @@ EXPLAIN
"table": {
"table_name": "t2",
"access_type": "ALL",
+ "loops": 1,
"rows": 9,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -8436,6 +8736,7 @@ EXPLAIN
"key_length": "5",
"used_key_parts": ["min_c"],
"ref": ["test.t2.c"],
+ "loops": 9,
"rows": 2,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -8453,6 +8754,7 @@ EXPLAIN
"table": {
"table_name": "<derived3>",
"access_type": "ALL",
+ "loops": 1,
"rows": 20,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -8470,6 +8772,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 20,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -8495,6 +8798,7 @@ EXPLAIN
"table": {
"table_name": "<derived4>",
"access_type": "ALL",
+ "loops": 18,
"rows": 20,
"cost": "COST_REPLACED",
"filtered": 100
@@ -8515,6 +8819,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 20,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -8686,6 +8991,7 @@ EXPLAIN
"table": {
"table_name": "t2",
"access_type": "ALL",
+ "loops": 1,
"rows": 2,
"cost": "COST_REPLACED",
"filtered": 50,
@@ -8709,6 +9015,7 @@ EXPLAIN
"key_length": "5",
"used_key_parts": ["c"],
"ref": ["func"],
+ "loops": 1,
"rows": 2,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -8721,6 +9028,7 @@ EXPLAIN
"table": {
"table_name": "t3",
"access_type": "ALL",
+ "loops": 1,
"rows": 4,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -8790,6 +9098,7 @@ EXPLAIN
"table": {
"table_name": "t2",
"access_type": "ALL",
+ "loops": 1,
"rows": 2,
"cost": "COST_REPLACED",
"filtered": 50,
@@ -8813,6 +9122,7 @@ EXPLAIN
"key_length": "5",
"used_key_parts": ["d"],
"ref": ["func"],
+ "loops": 1,
"rows": 2,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -8829,6 +9139,7 @@ EXPLAIN
"table": {
"table_name": "t4",
"access_type": "ALL",
+ "loops": 1,
"rows": 5,
"cost": "COST_REPLACED",
"filtered": 100
@@ -8891,6 +9202,7 @@ EXPLAIN
"table": {
"table_name": "<derived4>",
"access_type": "ALL",
+ "loops": 1,
"rows": 2,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -8904,6 +9216,7 @@ EXPLAIN
"table": {
"table_name": "t2",
"access_type": "ALL",
+ "loops": 1,
"rows": 2,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -8950,6 +9263,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 2,
"cost": "COST_REPLACED",
"filtered": 100
@@ -8964,6 +9278,7 @@ EXPLAIN
"key_length": "5",
"used_key_parts": ["b"],
"ref": ["test.t1.a"],
+ "loops": 2,
"rows": 2,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -8977,6 +9292,7 @@ EXPLAIN
"table": {
"table_name": "t2",
"access_type": "ALL",
+ "loops": 1,
"rows": 2,
"cost": "COST_REPLACED",
"filtered": 100
@@ -9010,6 +9326,7 @@ EXPLAIN
"table": {
"table_name": "<derived3>",
"access_type": "ALL",
+ "loops": 1,
"rows": 2,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -9023,6 +9340,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 2,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -9075,6 +9393,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 2,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -9097,6 +9416,7 @@ EXPLAIN
"key_length": "4",
"used_key_parts": ["pk2"],
"ref": ["func"],
+ "loops": 1,
"rows": 2,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -9109,6 +9429,7 @@ EXPLAIN
"table": {
"table_name": "t2",
"access_type": "ALL",
+ "loops": 1,
"rows": 3,
"cost": "COST_REPLACED",
"filtered": 100
@@ -9143,6 +9464,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 2,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -9165,6 +9487,7 @@ EXPLAIN
"key_length": "4",
"used_key_parts": ["pk2"],
"ref": ["func"],
+ "loops": 1,
"rows": 2,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -9177,6 +9500,7 @@ EXPLAIN
"table": {
"table_name": "t2",
"access_type": "ALL",
+ "loops": 1,
"rows": 3,
"cost": "COST_REPLACED",
"filtered": 100
@@ -9233,6 +9557,7 @@ EXPLAIN
"table": {
"table_name": "<derived3>",
"access_type": "ALL",
+ "loops": 1,
"rows": 2,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -9246,6 +9571,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 2,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -9295,6 +9621,7 @@ EXPLAIN
"table": {
"table_name": "<derived3>",
"access_type": "ALL",
+ "loops": 1,
"rows": 5,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -9312,6 +9639,7 @@ EXPLAIN
"table": {
"table_name": "t3",
"access_type": "ALL",
+ "loops": 1,
"rows": 5,
"cost": "COST_REPLACED",
"filtered": 100
@@ -9377,6 +9705,7 @@ EXPLAIN
"table": {
"table_name": "<derived3>",
"access_type": "ALL",
+ "loops": 1,
"rows": 2,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -9390,6 +9719,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 2,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -9448,6 +9778,7 @@ EXPLAIN
"table": {
"table_name": "<derived3>",
"access_type": "ALL",
+ "loops": 1,
"rows": 2,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -9461,6 +9792,7 @@ EXPLAIN
"table": {
"table_name": "t",
"access_type": "ALL",
+ "loops": 1,
"rows": 2,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -9477,6 +9809,7 @@ EXPLAIN
"table": {
"table_name": "<derived4>",
"access_type": "ALL",
+ "loops": 2,
"rows": 2,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -9498,6 +9831,7 @@ EXPLAIN
"key": "PRIMARY",
"key_length": "4",
"used_key_parts": ["pk"],
+ "loops": 1,
"rows": 1,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -9555,6 +9889,7 @@ EXPLAIN
"table": {
"table_name": "<derived2>",
"access_type": "ALL",
+ "loops": 1,
"rows": 3,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -9568,6 +9903,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 3,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -9626,6 +9962,7 @@ EXPLAIN
"table": {
"table_name": "<derived2>",
"access_type": "ALL",
+ "loops": 1,
"rows": 3,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -9639,6 +9976,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 3,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -9692,6 +10030,7 @@ EXPLAIN
"table": {
"table_name": "<derived2>",
"access_type": "ALL",
+ "loops": 1,
"rows": 3,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -9705,6 +10044,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 3,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -9758,6 +10098,7 @@ EXPLAIN
"table": {
"table_name": "<derived2>",
"access_type": "ALL",
+ "loops": 1,
"rows": 3,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -9771,6 +10112,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 3,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -9826,6 +10168,7 @@ EXPLAIN
"table": {
"table_name": "<derived2>",
"access_type": "ALL",
+ "loops": 1,
"rows": 3,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -9839,6 +10182,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 3,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -9892,6 +10236,7 @@ EXPLAIN
"table": {
"table_name": "<derived2>",
"access_type": "ALL",
+ "loops": 1,
"rows": 3,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -9905,6 +10250,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 3,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -9958,6 +10304,7 @@ EXPLAIN
"table": {
"table_name": "<derived2>",
"access_type": "ALL",
+ "loops": 1,
"rows": 3,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -9971,6 +10318,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 3,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -10007,6 +10355,7 @@ EXPLAIN
"table": {
"table_name": "<derived2>",
"access_type": "ALL",
+ "loops": 1,
"rows": 2,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -10020,6 +10369,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 2,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -10106,6 +10456,7 @@ EXPLAIN
"table": {
"table_name": "<derived3>",
"access_type": "ALL",
+ "loops": 1,
"rows": 2,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -10119,6 +10470,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 2,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -10141,6 +10493,7 @@ EXPLAIN
"table": {
"table_name": "t2",
"access_type": "ALL",
+ "loops": 1,
"rows": 2,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -10173,6 +10526,7 @@ EXPLAIN
"table": {
"table_name": "<derived3>",
"access_type": "ALL",
+ "loops": 1,
"rows": 2,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -10186,6 +10540,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 2,
"cost": "COST_REPLACED",
"filtered": 100
@@ -10207,6 +10562,7 @@ EXPLAIN
"table": {
"table_name": "t2",
"access_type": "ALL",
+ "loops": 1,
"rows": 128,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -10355,6 +10711,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 7,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -10370,6 +10727,7 @@ EXPLAIN
"key_length": "5",
"used_key_parts": ["b"],
"ref": ["test.t1.a"],
+ "loops": 7,
"rows": 2,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -10385,6 +10743,7 @@ EXPLAIN
"table": {
"table_name": "t2",
"access_type": "ALL",
+ "loops": 1,
"rows": 9,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -10420,6 +10779,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 7,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -10435,6 +10795,7 @@ EXPLAIN
"key_length": "5",
"used_key_parts": ["b"],
"ref": ["test.t1.a"],
+ "loops": 7,
"rows": 2,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -10450,6 +10811,7 @@ EXPLAIN
"table": {
"table_name": "t2",
"access_type": "ALL",
+ "loops": 1,
"rows": 9,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -10488,6 +10850,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 7,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -10503,6 +10866,7 @@ EXPLAIN
"key_length": "5",
"used_key_parts": ["b"],
"ref": ["test.t1.a"],
+ "loops": 7,
"rows": 2,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -10516,6 +10880,7 @@ EXPLAIN
"table": {
"table_name": "t2",
"access_type": "ALL",
+ "loops": 1,
"rows": 9,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -10550,6 +10915,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 7,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -10565,6 +10931,7 @@ EXPLAIN
"key_length": "5",
"used_key_parts": ["m"],
"ref": ["test.t1.a"],
+ "loops": 7,
"rows": 2,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -10581,6 +10948,7 @@ EXPLAIN
"table": {
"table_name": "t2",
"access_type": "ALL",
+ "loops": 1,
"rows": 9,
"cost": "COST_REPLACED",
"filtered": 100
@@ -10618,6 +10986,7 @@ EXPLAIN
"table": {
"table_name": "<derived3>",
"access_type": "ALL",
+ "loops": 1,
"rows": 2,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -10632,6 +11001,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 2,
"cost": "COST_REPLACED",
"filtered": 100
@@ -10675,6 +11045,7 @@ EXPLAIN
"key_length": "5",
"used_key_parts": ["i1"],
"ref": ["const"],
+ "loops": 1,
"rows": 1,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -10686,6 +11057,7 @@ EXPLAIN
"table": {
"table_name": "<derived3>",
"access_type": "ALL",
+ "loops": 1,
"rows": 2,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -10703,6 +11075,7 @@ EXPLAIN
"table": {
"table_name": "t2",
"access_type": "ALL",
+ "loops": 1,
"rows": 2,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -10743,6 +11116,7 @@ EXPLAIN
"table": {
"table_name": "<derived2>",
"access_type": "ALL",
+ "loops": 1,
"rows": 3,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -10757,6 +11131,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 3,
"cost": "COST_REPLACED",
"filtered": 100
@@ -10802,6 +11177,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 4,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -10817,6 +11193,7 @@ EXPLAIN
"key_length": "5",
"used_key_parts": ["id2"],
"ref": ["test.t1.id2"],
+ "loops": 4,
"rows": 2,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -10834,6 +11211,7 @@ EXPLAIN
"table": {
"table_name": "t2",
"access_type": "ALL",
+ "loops": 1,
"rows": 3,
"cost": "COST_REPLACED",
"filtered": 100
@@ -10906,6 +11284,7 @@ EXPLAIN
"table": {
"table_name": "t2",
"access_type": "ALL",
+ "loops": 1,
"rows": 2,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -10917,6 +11296,7 @@ EXPLAIN
"table": {
"table_name": "<derived2>",
"access_type": "ALL",
+ "loops": 2,
"rows": 3,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -10935,6 +11315,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 3,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -10996,6 +11377,7 @@ EXPLAIN
"table": {
"table_name": "t2",
"access_type": "ALL",
+ "loops": 1,
"rows": 2,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -11007,6 +11389,7 @@ EXPLAIN
"table": {
"table_name": "<derived2>",
"access_type": "ALL",
+ "loops": 2,
"rows": 3,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -11025,6 +11408,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 3,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -11118,6 +11502,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 5,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -11133,6 +11518,7 @@ EXPLAIN
"key_length": "10",
"used_key_parts": ["e", "max_f"],
"ref": ["test.t1.a", "test.t1.b"],
+ "loops": 5,
"rows": 1,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -11149,6 +11535,7 @@ EXPLAIN
"table": {
"table_name": "t2",
"access_type": "ALL",
+ "loops": 1,
"rows": 5,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -11221,6 +11608,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 5,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -11236,6 +11624,7 @@ EXPLAIN
"key_length": "10",
"used_key_parts": ["e", "max_f"],
"ref": ["test.t1.a", "test.t1.b"],
+ "loops": 5,
"rows": 1,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -11252,6 +11641,7 @@ EXPLAIN
"table": {
"table_name": "t2",
"access_type": "ALL",
+ "loops": 1,
"rows": 5,
"cost": "COST_REPLACED",
"filtered": 100
@@ -11323,6 +11713,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 5,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -11338,6 +11729,7 @@ EXPLAIN
"key_length": "8",
"used_key_parts": ["e", "max_f"],
"ref": ["test.t1.a", "test.t1.b"],
+ "loops": 5,
"rows": 1,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -11352,6 +11744,7 @@ EXPLAIN
"table": {
"table_name": "<derived3>",
"access_type": "ALL",
+ "loops": 1,
"rows": 5,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -11368,6 +11761,7 @@ EXPLAIN
"table": {
"table_name": "t2",
"access_type": "ALL",
+ "loops": 1,
"rows": 5,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -11446,6 +11840,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 5,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -11461,6 +11856,7 @@ EXPLAIN
"key_length": "8",
"used_key_parts": ["e", "max_f"],
"ref": ["test.t1.a", "test.t1.b"],
+ "loops": 5,
"rows": 1,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -11475,6 +11871,7 @@ EXPLAIN
"table": {
"table_name": "<derived3>",
"access_type": "ALL",
+ "loops": 1,
"rows": 5,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -11492,6 +11889,7 @@ EXPLAIN
"table": {
"table_name": "t2",
"access_type": "ALL",
+ "loops": 1,
"rows": 5,
"cost": "COST_REPLACED",
"filtered": 100
@@ -11561,6 +11959,7 @@ EXPLAIN
"table": {
"table_name": "<derived2>",
"access_type": "ALL",
+ "loops": 1,
"rows": 3,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -11578,6 +11977,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 3,
"cost": "COST_REPLACED",
"filtered": 100
@@ -11622,6 +12022,7 @@ EXPLAIN
"table": {
"table_name": "<derived2>",
"access_type": "ALL",
+ "loops": 1,
"rows": 3,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -11639,6 +12040,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 3,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -11683,6 +12085,7 @@ EXPLAIN
"table": {
"table_name": "<derived2>",
"access_type": "ALL",
+ "loops": 1,
"rows": 3,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -11699,6 +12102,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 3,
"cost": "COST_REPLACED",
"filtered": 100
@@ -11742,6 +12146,7 @@ EXPLAIN
"table": {
"table_name": "<derived2>",
"access_type": "ALL",
+ "loops": 1,
"rows": 3,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -11758,6 +12163,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 3,
"cost": "COST_REPLACED",
"filtered": 100
@@ -11821,6 +12227,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 2,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -11836,6 +12243,7 @@ EXPLAIN
"key_length": "5",
"used_key_parts": ["a"],
"ref": ["test.t1.a"],
+ "loops": 2,
"rows": 2,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -11851,6 +12259,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 2,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -11894,6 +12303,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 2,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -11909,6 +12319,7 @@ EXPLAIN
"key_length": "5",
"used_key_parts": ["a"],
"ref": ["test.t1.a"],
+ "loops": 2,
"rows": 2,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -11924,6 +12335,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 2,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -12030,6 +12442,7 @@ EXPLAIN
"table": {
"table_name": "<derived2>",
"access_type": "ALL",
+ "loops": 1,
"rows": 7,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -12046,6 +12459,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 7,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -12080,6 +12494,7 @@ EXPLAIN
"table": {
"table_name": "t2",
"access_type": "ALL",
+ "loops": 1,
"rows": 5,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -12095,6 +12510,7 @@ EXPLAIN
"key_length": "8",
"used_key_parts": ["c"],
"ref": ["test.t2.a"],
+ "loops": 5,
"rows": 2,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -12111,6 +12527,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 7,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -12148,6 +12565,7 @@ EXPLAIN
"table": {
"table_name": "t2",
"access_type": "ALL",
+ "loops": 1,
"rows": 5,
"cost": "COST_REPLACED",
"filtered": 100
@@ -12157,6 +12575,7 @@ EXPLAIN
"table": {
"table_name": "<derived2>",
"access_type": "ALL",
+ "loops": 5,
"rows": 7,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -12170,6 +12589,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 7,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -12227,6 +12647,7 @@ EXPLAIN
"table": {
"table_name": "<derived3>",
"access_type": "ALL",
+ "loops": 1,
"rows": 3,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -12244,6 +12665,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 3,
"cost": "COST_REPLACED",
"filtered": 100
@@ -12288,6 +12710,7 @@ EXPLAIN
"table": {
"table_name": "<derived3>",
"access_type": "ALL",
+ "loops": 1,
"rows": 3,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -12305,6 +12728,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 3,
"cost": "COST_REPLACED",
"filtered": 100
@@ -12349,6 +12773,7 @@ EXPLAIN
"table": {
"table_name": "<derived3>",
"access_type": "ALL",
+ "loops": 1,
"rows": 3,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -12366,6 +12791,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 3,
"cost": "COST_REPLACED",
"filtered": 100
@@ -12410,6 +12836,7 @@ EXPLAIN
"table": {
"table_name": "<derived3>",
"access_type": "ALL",
+ "loops": 1,
"rows": 3,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -12426,6 +12853,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 3,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -12491,6 +12919,7 @@ EXPLAIN
"table": {
"table_name": "<derived2>",
"access_type": "ALL",
+ "loops": 1,
"rows": 144,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -12504,6 +12933,7 @@ EXPLAIN
"table": {
"table_name": "<derived4>",
"access_type": "ALL",
+ "loops": 1,
"rows": 12,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -12516,6 +12946,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 12,
"cost": "COST_REPLACED",
"filtered": 100
@@ -12531,6 +12962,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 12,
"rows": 12,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -12581,6 +13013,7 @@ EXPLAIN
"table": {
"table_name": "<derived2>",
"access_type": "ALL",
+ "loops": 1,
"rows": 16,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -12594,6 +13027,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 8,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -12609,6 +13043,7 @@ EXPLAIN
"key_length": "4",
"used_key_parts": ["f"],
"ref": ["test.t1.f"],
+ "loops": 8,
"rows": 2,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -12621,6 +13056,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 8,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -12673,6 +13109,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 2,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -12688,6 +13125,7 @@ EXPLAIN
"key_length": "5",
"used_key_parts": ["f2"],
"ref": ["test.t1.f2"],
+ "loops": 2,
"rows": 2,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -12700,6 +13138,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 2,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -12733,6 +13172,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 2,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -12748,6 +13188,7 @@ EXPLAIN
"key_length": "5",
"used_key_parts": ["f2"],
"ref": ["test.t1.f2"],
+ "loops": 2,
"rows": 1,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -12761,6 +13202,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 2,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -12818,6 +13260,7 @@ EXPLAIN
"table": {
"table_name": "<derived2>",
"access_type": "ALL",
+ "loops": 1,
"rows": 2,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -13026,6 +13469,7 @@ EXPLAIN
"table": {
"table_name": "<derived2>",
"access_type": "ALL",
+ "loops": 1,
"rows": 2,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -13048,6 +13492,7 @@ EXPLAIN
"key_length": "5",
"used_key_parts": ["a"],
"ref": ["const"],
+ "loops": 1,
"rows": 1,
"cost": "COST_REPLACED",
"filtered": 100
@@ -13071,6 +13516,7 @@ EXPLAIN
"key_length": "5",
"used_key_parts": ["a"],
"ref": ["const"],
+ "loops": 1,
"rows": 1,
"cost": "COST_REPLACED",
"filtered": 100
@@ -13116,6 +13562,7 @@ EXPLAIN
"table": {
"table_name": "<derived2>",
"access_type": "ALL",
+ "loops": 1,
"rows": 3,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -13133,6 +13580,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 3,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -13173,6 +13621,7 @@ EXPLAIN
"table": {
"table_name": "t4",
"access_type": "ALL",
+ "loops": 1,
"rows": 3,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -13188,6 +13637,7 @@ EXPLAIN
"key_length": "23",
"used_key_parts": ["a", "f1(a)", "sum(b)"],
"ref": ["test.t4.a", "test.t4.b", "test.t4.c"],
+ "loops": 3,
"rows": 1,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -13204,6 +13654,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 3,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -13275,6 +13726,7 @@ EXPLAIN
"table": {
"table_name": "t2",
"access_type": "ALL",
+ "loops": 1,
"rows": 9,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -13290,6 +13742,7 @@ EXPLAIN
"key_length": "5",
"used_key_parts": ["a"],
"ref": ["test.t2.a"],
+ "loops": 9,
"rows": 2,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -13312,6 +13765,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 18,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -13337,6 +13791,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 18,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -13384,6 +13839,7 @@ EXPLAIN
"table": {
"table_name": "t2",
"access_type": "ALL",
+ "loops": 1,
"rows": 9,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -13395,6 +13851,7 @@ EXPLAIN
"table": {
"table_name": "<derived2>",
"access_type": "ALL",
+ "loops": 9,
"rows": 18,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -13422,6 +13879,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 18,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -13447,6 +13905,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 18,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -13493,6 +13952,7 @@ EXPLAIN
"table": {
"table_name": "t2",
"access_type": "ALL",
+ "loops": 1,
"rows": 9,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -13504,6 +13964,7 @@ EXPLAIN
"table": {
"table_name": "<derived2>",
"access_type": "ALL",
+ "loops": 9,
"rows": 18,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -13531,6 +13992,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 18,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -13556,6 +14018,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 18,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -13604,6 +14067,7 @@ EXPLAIN
"table": {
"table_name": "t2",
"access_type": "ALL",
+ "loops": 1,
"rows": 9,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -13619,6 +14083,7 @@ EXPLAIN
"key_length": "5",
"used_key_parts": ["a"],
"ref": ["test.t2.a"],
+ "loops": 9,
"rows": 2,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -13642,6 +14107,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 18,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -13667,6 +14133,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 18,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -13716,6 +14183,7 @@ EXPLAIN
"table": {
"table_name": "t2",
"access_type": "ALL",
+ "loops": 1,
"rows": 9,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -13731,6 +14199,7 @@ EXPLAIN
"key_length": "5",
"used_key_parts": ["a"],
"ref": ["test.t2.a"],
+ "loops": 9,
"rows": 2,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -13754,6 +14223,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 18,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -13779,6 +14249,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 18,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -13829,6 +14300,7 @@ EXPLAIN
"table": {
"table_name": "t2",
"access_type": "ALL",
+ "loops": 1,
"rows": 9,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -13844,6 +14316,7 @@ EXPLAIN
"key_length": "5",
"used_key_parts": ["a"],
"ref": ["test.t2.a"],
+ "loops": 9,
"rows": 2,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -13867,6 +14340,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 18,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -13892,6 +14366,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 18,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -13948,6 +14423,7 @@ EXPLAIN
"table": {
"table_name": "t2",
"access_type": "ALL",
+ "loops": 1,
"rows": 9,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -13963,6 +14439,7 @@ EXPLAIN
"key_length": "5",
"used_key_parts": ["a"],
"ref": ["test.t2.a"],
+ "loops": 9,
"rows": 2,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -13986,6 +14463,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 18,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -14011,6 +14489,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 18,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -14089,6 +14568,7 @@ EXPLAIN
"table": {
"table_name": "t2",
"access_type": "ALL",
+ "loops": 1,
"rows": 9,
"cost": "COST_REPLACED",
"filtered": 100
@@ -14099,6 +14579,7 @@ EXPLAIN
"table": {
"table_name": "<derived2>",
"access_type": "ALL",
+ "loops": 9,
"rows": 18,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -14127,6 +14608,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 18,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -14152,6 +14634,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 18,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -14259,6 +14742,7 @@ EXPLAIN
"table": {
"table_name": "t2",
"access_type": "ALL",
+ "loops": 1,
"rows": 9,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -14274,6 +14758,7 @@ EXPLAIN
"key_length": "5",
"used_key_parts": ["b"],
"ref": ["test.t2.b"],
+ "loops": 9,
"rows": 2,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -14297,6 +14782,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 18,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -14322,6 +14808,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 18,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -14381,6 +14868,7 @@ EXPLAIN
"table": {
"table_name": "t2",
"access_type": "ALL",
+ "loops": 1,
"rows": 9,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -14396,6 +14884,7 @@ EXPLAIN
"key_length": "5",
"used_key_parts": ["a"],
"ref": ["test.t2.a"],
+ "loops": 9,
"rows": 2,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -14418,6 +14907,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 18,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -14443,6 +14933,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 18,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -14492,6 +14983,7 @@ EXPLAIN
"table": {
"table_name": "t2",
"access_type": "ALL",
+ "loops": 1,
"rows": 9,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -14503,6 +14995,7 @@ EXPLAIN
"table": {
"table_name": "<derived2>",
"access_type": "ALL",
+ "loops": 9,
"rows": 18,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -14530,6 +15023,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 18,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -14555,6 +15049,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 18,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -14603,6 +15098,7 @@ EXPLAIN
"table": {
"table_name": "t2",
"access_type": "ALL",
+ "loops": 1,
"rows": 9,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -14614,6 +15110,7 @@ EXPLAIN
"table": {
"table_name": "<derived2>",
"access_type": "ALL",
+ "loops": 9,
"rows": 18,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -14641,6 +15138,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 18,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -14666,6 +15164,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 18,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -14718,6 +15217,7 @@ EXPLAIN
"table": {
"table_name": "t2",
"access_type": "ALL",
+ "loops": 1,
"rows": 9,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -14733,6 +15233,7 @@ EXPLAIN
"key_length": "5",
"used_key_parts": ["a"],
"ref": ["test.t2.a"],
+ "loops": 9,
"rows": 2,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -14756,6 +15257,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 18,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -14781,6 +15283,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 18,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -14830,6 +15333,7 @@ EXPLAIN
"table": {
"table_name": "t2",
"access_type": "ALL",
+ "loops": 1,
"rows": 9,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -14845,6 +15349,7 @@ EXPLAIN
"key_length": "5",
"used_key_parts": ["a"],
"ref": ["test.t2.a"],
+ "loops": 9,
"rows": 2,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -14868,6 +15373,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 18,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -14893,6 +15399,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 18,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -14945,6 +15452,7 @@ EXPLAIN
"table": {
"table_name": "t2",
"access_type": "ALL",
+ "loops": 1,
"rows": 9,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -14960,6 +15468,7 @@ EXPLAIN
"key_length": "5",
"used_key_parts": ["a"],
"ref": ["test.t2.a"],
+ "loops": 9,
"rows": 2,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -14983,6 +15492,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 18,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -15008,6 +15518,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 18,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -15064,6 +15575,7 @@ EXPLAIN
"table": {
"table_name": "t2",
"access_type": "ALL",
+ "loops": 1,
"rows": 9,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -15079,6 +15591,7 @@ EXPLAIN
"key_length": "5",
"used_key_parts": ["a"],
"ref": ["test.t2.a"],
+ "loops": 9,
"rows": 2,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -15102,6 +15615,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 18,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -15127,6 +15641,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 18,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -15203,6 +15718,7 @@ EXPLAIN
"table": {
"table_name": "t2",
"access_type": "ALL",
+ "loops": 1,
"rows": 9,
"cost": "COST_REPLACED",
"filtered": 100
@@ -15213,6 +15729,7 @@ EXPLAIN
"table": {
"table_name": "<derived2>",
"access_type": "ALL",
+ "loops": 9,
"rows": 18,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -15241,6 +15758,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 18,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -15266,6 +15784,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 18,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -15369,6 +15888,7 @@ EXPLAIN
"table": {
"table_name": "t2",
"access_type": "ALL",
+ "loops": 1,
"rows": 9,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -15384,6 +15904,7 @@ EXPLAIN
"key_length": "5",
"used_key_parts": ["b"],
"ref": ["test.t2.b"],
+ "loops": 9,
"rows": 2,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -15407,6 +15928,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 18,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -15432,6 +15954,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 18,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -15493,6 +16016,7 @@ EXPLAIN
"table": {
"table_name": "t2",
"access_type": "ALL",
+ "loops": 1,
"rows": 9,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -15508,6 +16032,7 @@ EXPLAIN
"key_length": "5",
"used_key_parts": ["a"],
"ref": ["test.t2.a"],
+ "loops": 9,
"rows": 3,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -15531,6 +16056,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 18,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -15552,6 +16078,7 @@ EXPLAIN
"table": {
"table_name": "<derived4>",
"access_type": "ALL",
+ "loops": 1,
"rows": 18,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -15575,6 +16102,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 18,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -15600,6 +16128,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 18,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -15670,6 +16199,7 @@ EXPLAIN
"table": {
"table_name": "t2",
"access_type": "ALL",
+ "loops": 1,
"rows": 9,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -15685,6 +16215,7 @@ EXPLAIN
"key_length": "5",
"used_key_parts": ["a"],
"ref": ["test.t2.a"],
+ "loops": 9,
"rows": 3,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -15708,6 +16239,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 18,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -15733,6 +16265,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 18,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -15758,6 +16291,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 18,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -15817,6 +16351,7 @@ EXPLAIN
"table": {
"table_name": "t2",
"access_type": "ALL",
+ "loops": 1,
"rows": 9,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -15832,6 +16367,7 @@ EXPLAIN
"key_length": "5",
"used_key_parts": ["a"],
"ref": ["test.t2.a"],
+ "loops": 9,
"rows": 3,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -15855,6 +16391,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 18,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -15880,6 +16417,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 18,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -15905,6 +16443,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 18,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -15966,6 +16505,7 @@ EXPLAIN
"table": {
"table_name": "t2",
"access_type": "ALL",
+ "loops": 1,
"rows": 9,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -15981,6 +16521,7 @@ EXPLAIN
"key_length": "5",
"used_key_parts": ["a"],
"ref": ["test.t2.a"],
+ "loops": 9,
"rows": 3,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -16004,6 +16545,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 18,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -16029,6 +16571,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 18,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -16054,6 +16597,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 18,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -16113,6 +16657,7 @@ EXPLAIN
"table": {
"table_name": "t2",
"access_type": "ALL",
+ "loops": 1,
"rows": 9,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -16128,6 +16673,7 @@ EXPLAIN
"key_length": "5",
"used_key_parts": ["a"],
"ref": ["test.t2.a"],
+ "loops": 9,
"rows": 2,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -16151,6 +16697,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 18,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -16176,6 +16723,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 18,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -16201,6 +16749,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 18,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -16260,6 +16809,7 @@ EXPLAIN
"table": {
"table_name": "t2",
"access_type": "ALL",
+ "loops": 1,
"rows": 9,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -16275,6 +16825,7 @@ EXPLAIN
"key_length": "5",
"used_key_parts": ["a"],
"ref": ["test.t2.a"],
+ "loops": 9,
"rows": 2,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -16298,6 +16849,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 18,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -16319,6 +16871,7 @@ EXPLAIN
"table": {
"table_name": "<derived4>",
"access_type": "ALL",
+ "loops": 1,
"rows": 18,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -16342,6 +16895,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 18,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -16367,6 +16921,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 18,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -16439,6 +16994,7 @@ EXPLAIN
"table": {
"table_name": "t2",
"access_type": "ALL",
+ "loops": 1,
"rows": 9,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -16454,6 +17010,7 @@ EXPLAIN
"key_length": "5",
"used_key_parts": ["a"],
"ref": ["test.t2.a"],
+ "loops": 9,
"rows": 3,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -16477,6 +17034,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 18,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -16498,6 +17056,7 @@ EXPLAIN
"table": {
"table_name": "<derived4>",
"access_type": "ALL",
+ "loops": 1,
"rows": 18,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -16521,6 +17080,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 18,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -16546,6 +17106,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 18,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -16580,6 +17141,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 18,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -16640,6 +17202,7 @@ EXPLAIN
"table": {
"table_name": "t2",
"access_type": "ALL",
+ "loops": 1,
"rows": 9,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -16655,6 +17218,7 @@ EXPLAIN
"key_length": "5",
"used_key_parts": ["a"],
"ref": ["test.t2.a"],
+ "loops": 9,
"rows": 2,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -16672,6 +17236,7 @@ EXPLAIN
"table": {
"table_name": "<derived3>",
"access_type": "ALL",
+ "loops": 1,
"rows": 18,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -16695,6 +17260,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 18,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -16720,6 +17286,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 18,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -16787,6 +17354,7 @@ EXPLAIN
"table": {
"table_name": "t2",
"access_type": "ALL",
+ "loops": 1,
"rows": 9,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -16802,6 +17370,7 @@ EXPLAIN
"key_length": "5",
"used_key_parts": ["a"],
"ref": ["test.t2.a"],
+ "loops": 9,
"rows": 2,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -16819,6 +17388,7 @@ EXPLAIN
"table": {
"table_name": "<derived3>",
"access_type": "ALL",
+ "loops": 1,
"rows": 18,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -16842,6 +17412,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 18,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -16867,6 +17438,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 18,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -16930,6 +17502,7 @@ EXPLAIN
"table": {
"table_name": "t2",
"access_type": "ALL",
+ "loops": 1,
"rows": 9,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -16945,6 +17518,7 @@ EXPLAIN
"key_length": "5",
"used_key_parts": ["a"],
"ref": ["test.t2.a"],
+ "loops": 9,
"rows": 2,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -16968,6 +17542,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 18,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -16993,6 +17568,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 18,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -17049,6 +17625,7 @@ EXPLAIN
"table": {
"table_name": "t2",
"access_type": "ALL",
+ "loops": 1,
"rows": 9,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -17064,6 +17641,7 @@ EXPLAIN
"key_length": "5",
"used_key_parts": ["a"],
"ref": ["test.t2.a"],
+ "loops": 9,
"rows": 2,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -17087,6 +17665,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 18,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -17112,6 +17691,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 18,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -17170,6 +17750,7 @@ EXPLAIN
"table": {
"table_name": "t2",
"access_type": "ALL",
+ "loops": 1,
"rows": 9,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -17185,6 +17766,7 @@ EXPLAIN
"key_length": "5",
"used_key_parts": ["a"],
"ref": ["test.t2.a"],
+ "loops": 9,
"rows": 2,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -17208,6 +17790,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 18,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -17233,6 +17816,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 18,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -17293,6 +17877,7 @@ EXPLAIN
"table": {
"table_name": "t2",
"access_type": "ALL",
+ "loops": 1,
"rows": 9,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -17308,6 +17893,7 @@ EXPLAIN
"key_length": "5",
"used_key_parts": ["a"],
"ref": ["test.t2.a"],
+ "loops": 9,
"rows": 3,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -17331,6 +17917,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 18,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -17356,6 +17943,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 18,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -17381,6 +17969,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 18,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -17446,6 +18035,7 @@ EXPLAIN
"table": {
"table_name": "t2",
"access_type": "ALL",
+ "loops": 1,
"rows": 9,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -17461,6 +18051,7 @@ EXPLAIN
"key_length": "5",
"used_key_parts": ["b"],
"ref": ["test.t2.b"],
+ "loops": 9,
"rows": 2,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -17478,6 +18069,7 @@ EXPLAIN
"key": "i1",
"key_length": "5",
"used_key_parts": ["a"],
+ "loops": 1,
"rows": 5,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -17530,6 +18122,7 @@ EXPLAIN
"table": {
"table_name": "t2",
"access_type": "ALL",
+ "loops": 1,
"rows": 9,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -17545,6 +18138,7 @@ EXPLAIN
"key_length": "5",
"used_key_parts": ["b"],
"ref": ["test.t2.b"],
+ "loops": 9,
"rows": 2,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -17568,6 +18162,7 @@ EXPLAIN
"key": "i1",
"key_length": "5",
"used_key_parts": ["a"],
+ "loops": 1,
"rows": 2,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -17591,6 +18186,7 @@ EXPLAIN
"key": "i1",
"key_length": "5",
"used_key_parts": ["a"],
+ "loops": 1,
"rows": 1,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -17647,6 +18243,7 @@ EXPLAIN
"table": {
"table_name": "t2",
"access_type": "ALL",
+ "loops": 1,
"rows": 9,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -17662,6 +18259,7 @@ EXPLAIN
"key_length": "5",
"used_key_parts": ["b"],
"ref": ["test.t2.b"],
+ "loops": 9,
"rows": 2,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -17685,6 +18283,7 @@ EXPLAIN
"key": "i1",
"key_length": "5",
"used_key_parts": ["a"],
+ "loops": 1,
"rows": 1,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -17708,6 +18307,7 @@ EXPLAIN
"table": {
"table_name": "t3",
"access_type": "ALL",
+ "loops": 1,
"rows": 20,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -17787,6 +18387,7 @@ EXPLAIN
"table": {
"table_name": "<derived2>",
"access_type": "ALL",
+ "loops": 1,
"rows": 16,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -17810,6 +18411,7 @@ EXPLAIN
"table_name": "t2",
"access_type": "ALL",
"possible_keys": ["idx"],
+ "loops": 1,
"rows": 20,
"cost": "COST_REPLACED",
"filtered": 80,
@@ -17906,6 +18508,7 @@ EXPLAIN
"table": {
"table_name": "<derived2>",
"access_type": "ALL",
+ "loops": 1,
"rows": 32,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -17933,6 +18536,7 @@ EXPLAIN
"table_name": "t2",
"access_type": "ALL",
"possible_keys": ["idx"],
+ "loops": 1,
"rows": 20,
"cost": "COST_REPLACED",
"filtered": 80,
@@ -17964,6 +18568,7 @@ EXPLAIN
"table_name": "t2",
"access_type": "ALL",
"possible_keys": ["idx"],
+ "loops": 1,
"rows": 20,
"cost": "COST_REPLACED",
"filtered": 80,
@@ -18020,6 +18625,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 8,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -18035,6 +18641,7 @@ EXPLAIN
"key_length": "24",
"used_key_parts": ["a", "c"],
"ref": ["test.t1.a", "test.t1.c"],
+ "loops": 8,
"rows": 2,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -18056,6 +18663,7 @@ EXPLAIN
"table": {
"table_name": "t2",
"access_type": "ALL",
+ "loops": 1,
"rows": 20,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -18165,6 +18773,7 @@ EXPLAIN
"table": {
"table_name": "<derived2>",
"access_type": "ALL",
+ "loops": 1,
"rows": 48,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -18192,6 +18801,7 @@ EXPLAIN
"table_name": "t2",
"access_type": "ALL",
"possible_keys": ["idx"],
+ "loops": 1,
"rows": 20,
"cost": "COST_REPLACED",
"filtered": 80,
@@ -18223,6 +18833,7 @@ EXPLAIN
"table_name": "t2",
"access_type": "ALL",
"possible_keys": ["idx"],
+ "loops": 1,
"rows": 20,
"cost": "COST_REPLACED",
"filtered": 80,
@@ -18249,6 +18860,7 @@ EXPLAIN
"table_name": "t2",
"access_type": "ALL",
"possible_keys": ["idx"],
+ "loops": 1,
"rows": 20,
"cost": "COST_REPLACED",
"filtered": 80,
@@ -18322,6 +18934,7 @@ EXPLAIN
"table": {
"table_name": "<derived2>",
"access_type": "ALL",
+ "loops": 1,
"rows": 16,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -18345,6 +18958,7 @@ EXPLAIN
"table_name": "t2",
"access_type": "ALL",
"possible_keys": ["idx"],
+ "loops": 1,
"rows": 20,
"cost": "COST_REPLACED",
"filtered": 80,
@@ -18414,6 +19028,7 @@ EXPLAIN
"table": {
"table_name": "<derived2>",
"access_type": "ALL",
+ "loops": 1,
"rows": 16,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -18437,6 +19052,7 @@ EXPLAIN
"table_name": "t2",
"access_type": "ALL",
"possible_keys": ["idx"],
+ "loops": 1,
"rows": 20,
"cost": "COST_REPLACED",
"filtered": 80,
@@ -18506,6 +19122,7 @@ EXPLAIN
"table": {
"table_name": "<derived2>",
"access_type": "ALL",
+ "loops": 1,
"rows": 20,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -18533,6 +19150,7 @@ EXPLAIN
"table": {
"table_name": "t2",
"access_type": "ALL",
+ "loops": 1,
"rows": 20,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -18629,6 +19247,7 @@ EXPLAIN
"key": "idx_b",
"key_length": "5",
"used_key_parts": ["b"],
+ "loops": 1,
"rows": 4,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -18645,6 +19264,7 @@ EXPLAIN
"key_length": "5",
"used_key_parts": ["a"],
"ref": ["test.t1.a"],
+ "loops": 4,
"rows": 2,
"cost": "COST_REPLACED",
"filtered": 50,
@@ -18664,6 +19284,7 @@ EXPLAIN
"key_length": "5",
"used_key_parts": ["a"],
"ref": ["test.t1.a"],
+ "loops": 1,
"rows": 1,
"cost": "COST_REPLACED",
"filtered": 100
@@ -18752,6 +19373,7 @@ EXPLAIN
"table_name": "t1",
"access_type": "ALL",
"possible_keys": ["idx_b"],
+ "loops": 1,
"rows": 12,
"cost": "COST_REPLACED",
"filtered": 83.33333588,
@@ -18767,6 +19389,7 @@ EXPLAIN
"key_length": "5",
"used_key_parts": ["a"],
"ref": ["test.t1.a"],
+ "loops": 10,
"rows": 2,
"cost": "COST_REPLACED",
"filtered": 50,
@@ -18786,6 +19409,7 @@ EXPLAIN
"key_length": "5",
"used_key_parts": ["a"],
"ref": ["test.t1.a"],
+ "loops": 1,
"rows": 1,
"cost": "COST_REPLACED",
"filtered": 100
@@ -18871,6 +19495,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 12,
"cost": "COST_REPLACED",
"filtered": 100
@@ -18885,6 +19510,7 @@ EXPLAIN
"key_length": "5",
"used_key_parts": ["a"],
"ref": ["test.t1.a"],
+ "loops": 12,
"rows": 2,
"cost": "COST_REPLACED",
"filtered": 50,
@@ -18905,6 +19531,7 @@ EXPLAIN
"key_length": "5",
"used_key_parts": ["a"],
"ref": ["test.t1.a"],
+ "loops": 1,
"rows": 1,
"cost": "COST_REPLACED",
"filtered": 100
@@ -18982,6 +19609,7 @@ EXPLAIN
"key": "idx_b",
"key_length": "5",
"used_key_parts": ["b"],
+ "loops": 1,
"rows": 2,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -18998,6 +19626,7 @@ EXPLAIN
"key_length": "133",
"used_key_parts": ["a", "c"],
"ref": ["test.t3.a", "test.t3.c"],
+ "loops": 2,
"rows": 2,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -19017,6 +19646,7 @@ EXPLAIN
"key_length": "133",
"used_key_parts": ["a", "c"],
"ref": ["test.t3.a", "test.t3.c"],
+ "loops": 1,
"rows": 1,
"cost": "COST_REPLACED",
"filtered": 100
@@ -19073,6 +19703,7 @@ EXPLAIN
"table_name": "t3",
"access_type": "ALL",
"possible_keys": ["idx_b"],
+ "loops": 1,
"rows": 12,
"cost": "COST_REPLACED",
"filtered": 83.33333588,
@@ -19088,6 +19719,7 @@ EXPLAIN
"key_length": "133",
"used_key_parts": ["a", "c"],
"ref": ["test.t3.a", "test.t3.c"],
+ "loops": 10,
"rows": 2,
"cost": "COST_REPLACED",
"filtered": 50,
@@ -19107,6 +19739,7 @@ EXPLAIN
"key_length": "133",
"used_key_parts": ["a", "c"],
"ref": ["test.t3.a", "test.t3.c"],
+ "loops": 1,
"rows": 1,
"cost": "COST_REPLACED",
"filtered": 100
@@ -19166,6 +19799,7 @@ EXPLAIN
"key": "idx_b",
"key_length": "5",
"used_key_parts": ["b"],
+ "loops": 1,
"rows": 2,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -19182,6 +19816,7 @@ EXPLAIN
"key_length": "133",
"used_key_parts": ["a", "c"],
"ref": ["test.t3.a", "test.t3.c"],
+ "loops": 2,
"rows": 2,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -19201,6 +19836,7 @@ EXPLAIN
"key_length": "133",
"used_key_parts": ["a", "c"],
"ref": ["test.t3.a", "test.t3.c"],
+ "loops": 1,
"rows": 1,
"cost": "COST_REPLACED",
"filtered": 100
@@ -19257,6 +19893,7 @@ EXPLAIN
"table_name": "t3",
"access_type": "ALL",
"possible_keys": ["idx_b"],
+ "loops": 1,
"rows": 12,
"cost": "COST_REPLACED",
"filtered": 83.33333588,
@@ -19272,6 +19909,7 @@ EXPLAIN
"key_length": "133",
"used_key_parts": ["a", "c"],
"ref": ["test.t3.a", "test.t3.c"],
+ "loops": 10,
"rows": 2,
"cost": "COST_REPLACED",
"filtered": 50,
@@ -19291,6 +19929,7 @@ EXPLAIN
"key_length": "133",
"used_key_parts": ["a", "c"],
"ref": ["test.t3.a", "test.t3.c"],
+ "loops": 1,
"rows": 1,
"cost": "COST_REPLACED",
"filtered": 100
@@ -19361,6 +20000,7 @@ EXPLAIN
"key": "idx",
"key_length": "133",
"used_key_parts": ["c", "b"],
+ "loops": 1,
"rows": 2,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -19377,6 +20017,7 @@ EXPLAIN
"key_length": "5",
"used_key_parts": ["a"],
"ref": ["test.t2.a"],
+ "loops": 2,
"rows": 1,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -19392,6 +20033,7 @@ EXPLAIN
"key_length": "128",
"used_key_parts": ["c"],
"ref": ["test.t3.c"],
+ "loops": 3,
"rows": 2,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -19411,6 +20053,7 @@ EXPLAIN
"key_length": "128",
"used_key_parts": ["c"],
"ref": ["test.t3.c"],
+ "loops": 1,
"rows": 2,
"cost": "COST_REPLACED",
"filtered": 100
@@ -19523,6 +20166,7 @@ EXPLAIN
"table": {
"table_name": "t2",
"access_type": "ALL",
+ "loops": 1,
"rows": 90,
"cost": "COST_REPLACED",
"filtered": 60,
@@ -19538,6 +20182,7 @@ EXPLAIN
"key_length": "5",
"used_key_parts": ["a"],
"ref": ["test.t2.a"],
+ "loops": 53.99999991,
"rows": 1,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -19553,6 +20198,7 @@ EXPLAIN
"key_length": "128",
"used_key_parts": ["c"],
"ref": ["test.t3.c"],
+ "loops": 80.99999987,
"rows": 10,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -19569,6 +20215,7 @@ EXPLAIN
"table_name": "t4",
"access_type": "ALL",
"possible_keys": ["idx_c"],
+ "loops": 1,
"rows": 160,
"cost": "COST_REPLACED",
"filtered": 100
@@ -19645,6 +20292,7 @@ EXPLAIN
"key": "idx",
"key_length": "133",
"used_key_parts": ["c", "b"],
+ "loops": 1,
"rows": 2,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -19661,6 +20309,7 @@ EXPLAIN
"key_length": "5",
"used_key_parts": ["a"],
"ref": ["test.t2.a"],
+ "loops": 2,
"rows": 1,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -19676,6 +20325,7 @@ EXPLAIN
"key_length": "128",
"used_key_parts": ["c"],
"ref": ["test.t3.c"],
+ "loops": 3,
"rows": 2,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -19704,6 +20354,7 @@ EXPLAIN
"key_length": "128",
"used_key_parts": ["c"],
"ref": ["test.t3.c"],
+ "loops": 1,
"rows": 2,
"cost": "COST_REPLACED",
"filtered": 100
@@ -20058,6 +20709,7 @@ EXPLAIN
"table": {
"table_name": "t2",
"access_type": "ALL",
+ "loops": 1,
"rows": 90,
"cost": "COST_REPLACED",
"filtered": 60,
@@ -20073,6 +20725,7 @@ EXPLAIN
"key_length": "5",
"used_key_parts": ["a"],
"ref": ["test.t2.a"],
+ "loops": 53.99999991,
"rows": 1,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -20088,6 +20741,7 @@ EXPLAIN
"key_length": "128",
"used_key_parts": ["c"],
"ref": ["test.t3.c"],
+ "loops": 80.99999987,
"rows": 10,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -20110,6 +20764,7 @@ EXPLAIN
"table_name": "t4",
"access_type": "ALL",
"possible_keys": ["idx_c"],
+ "loops": 1,
"rows": 160,
"cost": "COST_REPLACED",
"filtered": 100
@@ -20185,6 +20840,7 @@ EXPLAIN
"key": "a",
"key_length": "5",
"used_key_parts": ["a"],
+ "loops": 1,
"rows": 1,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -20201,6 +20857,7 @@ EXPLAIN
"key_length": "128",
"used_key_parts": ["c"],
"ref": ["test.t4.c"],
+ "loops": 1,
"rows": 2,
"cost": "COST_REPLACED",
"filtered": 50,
@@ -20222,6 +20879,7 @@ EXPLAIN
"key_length": "128",
"used_key_parts": ["c"],
"ref": ["test.t4.c"],
+ "loops": 1,
"rows": 2,
"cost": "COST_REPLACED",
"filtered": 100
@@ -20247,6 +20905,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 3,
"cost": "COST_REPLACED",
"filtered": 100
@@ -20257,6 +20916,7 @@ EXPLAIN
"table": {
"table_name": "t2",
"access_type": "ALL",
+ "loops": 3,
"rows": 4,
"cost": "COST_REPLACED",
"filtered": 100
@@ -20359,6 +21019,7 @@ EXPLAIN
"table_name": "t1",
"access_type": "ALL",
"possible_keys": ["PRIMARY"],
+ "loops": 1,
"rows": 2,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -20374,6 +21035,7 @@ EXPLAIN
"key_length": "4",
"used_key_parts": ["pk2"],
"ref": ["test.t1.pk1"],
+ "loops": 2,
"rows": 2,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -20392,6 +21054,7 @@ EXPLAIN
"key_length": "4",
"used_key_parts": ["pk2"],
"ref": ["test.t1.pk1"],
+ "loops": 1,
"rows": 1,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -20808,6 +21471,7 @@ ANALYZE
"table": {
"table_name": "<derived2>",
"access_type": "ALL",
+ "loops": 1,
"r_loops": 1,
"rows": 4,
"r_rows": 2,
@@ -20836,6 +21500,7 @@ ANALYZE
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"r_loops": 1,
"rows": 2,
"r_rows": 2,
@@ -20919,6 +21584,7 @@ EXPLAIN
"table": {
"table_name": "t3",
"access_type": "ALL",
+ "loops": 1,
"rows": 2,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -20934,6 +21600,7 @@ EXPLAIN
"key_length": "5",
"used_key_parts": ["a"],
"ref": ["test.t3.id"],
+ "loops": 2,
"rows": 1,
"cost": "COST_REPLACED",
"filtered": 100
@@ -20959,6 +21626,7 @@ EXPLAIN
"table": {
"table_name": "t2",
"access_type": "ALL",
+ "loops": 1,
"rows": 1007,
"cost": "COST_REPLACED",
"filtered": 100
@@ -20978,6 +21646,7 @@ EXPLAIN
"key_length": "5",
"used_key_parts": ["a"],
"ref": ["test.t3.id"],
+ "loops": 2,
"rows": 2,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -20993,6 +21662,7 @@ EXPLAIN
"key": "a",
"key_length": "5",
"used_key_parts": ["a"],
+ "loops": 1,
"rows": 7,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -21034,6 +21704,7 @@ EXPLAIN
"table": {
"table_name": "t3",
"access_type": "ALL",
+ "loops": 1,
"rows": 2,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -21049,6 +21720,7 @@ EXPLAIN
"key_length": "5",
"used_key_parts": ["a"],
"ref": ["test.t3.id"],
+ "loops": 2,
"rows": 1,
"cost": "COST_REPLACED",
"filtered": 100
@@ -21074,6 +21746,7 @@ EXPLAIN
"table": {
"table_name": "t2",
"access_type": "ALL",
+ "loops": 1,
"rows": 1007,
"cost": "COST_REPLACED",
"filtered": 100
@@ -21093,6 +21766,7 @@ EXPLAIN
"key_length": "5",
"used_key_parts": ["a"],
"ref": ["test.t3.id"],
+ "loops": 2,
"rows": 2,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -21112,6 +21786,7 @@ EXPLAIN
"key_length": "5",
"used_key_parts": ["a"],
"ref": ["test.t1.a"],
+ "loops": 1,
"rows": 1,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -21257,6 +21932,7 @@ EXPLAIN
"key": "t1_id",
"key_length": "5",
"used_key_parts": ["t1_id"],
+ "loops": 1,
"rows": 47,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -21273,6 +21949,7 @@ EXPLAIN
"key_length": "4",
"used_key_parts": ["id"],
"ref": ["test.t3.t1_id"],
+ "loops": 47,
"rows": 1,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -21288,6 +21965,7 @@ EXPLAIN
"key_length": "5",
"used_key_parts": ["t1_id"],
"ref": ["test.t3.t1_id"],
+ "loops": 47,
"rows": 2,
"cost": "COST_REPLACED",
"filtered": 50,
@@ -21306,6 +21984,7 @@ EXPLAIN
"key_length": "5",
"used_key_parts": ["t1_id"],
"ref": ["test.t1.id"],
+ "loops": 1,
"rows": 1,
"cost": "COST_REPLACED",
"filtered": 34.55045319,
@@ -21505,6 +22184,7 @@ EXPLAIN
"key_length": "8",
"used_key_parts": ["to_ledger_id"],
"ref": ["const"],
+ "loops": 1,
"rows": 8,
"cost": "COST_REPLACED",
"filtered": 100
@@ -21519,6 +22199,7 @@ EXPLAIN
"key_length": "17",
"used_key_parts": ["ledger_id", "charge_id"],
"ref": ["test.charges.from_ledger_id", "test.charges.id"],
+ "loops": 8,
"rows": 2,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -21537,6 +22218,7 @@ EXPLAIN
"key_length": "9",
"used_key_parts": ["charge_id"],
"ref": ["test.charges.id"],
+ "loops": 1,
"rows": 2,
"cost": "COST_REPLACED",
"filtered": 100
@@ -21551,6 +22233,7 @@ EXPLAIN
"key_length": "8",
"used_key_parts": ["id"],
"ref": ["test.transaction_items.transaction_id"],
+ "loops": 2,
"rows": 1,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -21704,6 +22387,7 @@ EXPLAIN
"key_length": "8",
"used_key_parts": ["to_ledger_id"],
"ref": ["const"],
+ "loops": 1,
"rows": 10,
"cost": "COST_REPLACED",
"filtered": 100
@@ -21718,6 +22402,7 @@ EXPLAIN
"key_length": "18",
"used_key_parts": ["ledger_id", "charge_id"],
"ref": ["test.charges.from_ledger_id", "test.charges.id"],
+ "loops": 10,
"rows": 2,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -21736,6 +22421,7 @@ EXPLAIN
"key_length": "9",
"used_key_parts": ["charge_id"],
"ref": ["test.charges.id"],
+ "loops": 1,
"rows": 2,
"cost": "COST_REPLACED",
"filtered": 100
@@ -21750,6 +22436,7 @@ EXPLAIN
"key_length": "8",
"used_key_parts": ["id"],
"ref": ["test.transaction_items.transaction_id"],
+ "loops": 2,
"rows": 1,
"cost": "COST_REPLACED",
"filtered": 100,
diff --git a/mysql-test/main/derived_view.result b/mysql-test/main/derived_view.result
index 3329fb7552d..d1816e93009 100644
--- a/mysql-test/main/derived_view.result
+++ b/mysql-test/main/derived_view.result
@@ -387,6 +387,7 @@ EXPLAIN
"table": {
"table_name": "t2",
"access_type": "ALL",
+ "loops": 1,
"rows": 11,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -402,6 +403,7 @@ EXPLAIN
"key_length": "5",
"used_key_parts": ["f1"],
"ref": ["test.t2.f2"],
+ "loops": 11,
"rows": 2,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -417,6 +419,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 11,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -496,6 +499,7 @@ EXPLAIN
"table": {
"table_name": "<derived2>",
"access_type": "ALL",
+ "loops": 1,
"rows": 11,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -511,6 +515,7 @@ EXPLAIN
"table": {
"table_name": "<derived3>",
"access_type": "ALL",
+ "loops": 1,
"rows": 11,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -527,6 +532,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 11,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -583,6 +589,7 @@ EXPLAIN
"table": {
"table_name": "<derived3>",
"access_type": "ALL",
+ "loops": 1,
"rows": 11,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -599,6 +606,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 11,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -621,6 +629,7 @@ EXPLAIN
"key_length": "5",
"used_key_parts": ["f1"],
"ref": ["tt.f1"],
+ "loops": 11,
"rows": 2,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -636,6 +645,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 11,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -731,6 +741,7 @@ EXPLAIN
"table": {
"table_name": "<derived2>",
"access_type": "ALL",
+ "loops": 1,
"rows": 11,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -747,6 +758,7 @@ EXPLAIN
"table": {
"table_name": "<derived3>",
"access_type": "ALL",
+ "loops": 1,
"rows": 11,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -763,6 +775,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 11,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -792,6 +805,7 @@ EXPLAIN
"key_length": "5",
"used_key_parts": ["f1"],
"ref": ["x.f1"],
+ "loops": 11,
"rows": 2,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -807,6 +821,7 @@ EXPLAIN
"table": {
"table_name": "<derived5>",
"access_type": "ALL",
+ "loops": 1,
"rows": 11,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -823,6 +838,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 11,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -888,6 +904,7 @@ EXPLAIN
"table": {
"table_name": "<derived3>",
"access_type": "ALL",
+ "loops": 1,
"rows": 11,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -904,6 +921,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 11,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -978,6 +996,7 @@ EXPLAIN
"table": {
"table_name": "t2",
"access_type": "ALL",
+ "loops": 1,
"rows": 11,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -993,6 +1012,7 @@ EXPLAIN
"key_length": "5",
"used_key_parts": ["f1"],
"ref": ["test.t2.f2"],
+ "loops": 11,
"rows": 2,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -1008,6 +1028,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 11,
"cost": "COST_REPLACED",
"filtered": 100,
diff --git a/mysql-test/main/except.result b/mysql-test/main/except.result
index 416c7eab8d4..ec7d085c70f 100644
--- a/mysql-test/main/except.result
+++ b/mysql-test/main/except.result
@@ -43,6 +43,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 2,
"cost": "REPLACED",
"filtered": 100
@@ -61,6 +62,7 @@ EXPLAIN
"table": {
"table_name": "t2",
"access_type": "ALL",
+ "loops": 1,
"rows": 2,
"cost": "REPLACED",
"filtered": 100
@@ -97,6 +99,7 @@ ANALYZE
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"r_loops": 1,
"rows": 2,
"r_rows": 2,
@@ -122,6 +125,7 @@ ANALYZE
"table": {
"table_name": "t2",
"access_type": "ALL",
+ "loops": 1,
"r_loops": 1,
"rows": 2,
"r_rows": 2,
@@ -155,6 +159,7 @@ ANALYZE
"table": {
"table_name": "<derived2>",
"access_type": "ALL",
+ "loops": 1,
"r_loops": 1,
"rows": 2,
"r_rows": 1,
@@ -182,6 +187,7 @@ ANALYZE
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"r_loops": 1,
"rows": 2,
"r_rows": 2,
@@ -207,6 +213,7 @@ ANALYZE
"table": {
"table_name": "t2",
"access_type": "ALL",
+ "loops": 1,
"r_loops": 1,
"rows": 2,
"r_rows": 2,
@@ -301,6 +308,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 2,
"cost": "REPLACED",
"filtered": 100
@@ -311,6 +319,7 @@ EXPLAIN
"table": {
"table_name": "t3",
"access_type": "ALL",
+ "loops": 2,
"rows": 2,
"cost": "REPLACED",
"filtered": 100
@@ -333,6 +342,7 @@ EXPLAIN
"table": {
"table_name": "t2",
"access_type": "ALL",
+ "loops": 1,
"rows": 2,
"cost": "REPLACED",
"filtered": 100
@@ -343,6 +353,7 @@ EXPLAIN
"table": {
"table_name": "t4",
"access_type": "ALL",
+ "loops": 2,
"rows": 2,
"cost": "REPLACED",
"filtered": 100
@@ -383,6 +394,7 @@ ANALYZE
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"r_loops": 1,
"rows": 2,
"r_rows": 2,
@@ -398,6 +410,7 @@ ANALYZE
"table": {
"table_name": "t3",
"access_type": "ALL",
+ "loops": 2,
"r_loops": 1,
"rows": 2,
"r_rows": 2,
@@ -429,6 +442,7 @@ ANALYZE
"table": {
"table_name": "t2",
"access_type": "ALL",
+ "loops": 1,
"r_loops": 1,
"rows": 2,
"r_rows": 2,
@@ -444,6 +458,7 @@ ANALYZE
"table": {
"table_name": "t4",
"access_type": "ALL",
+ "loops": 2,
"r_loops": 1,
"rows": 2,
"r_rows": 2,
@@ -484,6 +499,7 @@ ANALYZE
"table": {
"table_name": "<derived2>",
"access_type": "ALL",
+ "loops": 1,
"r_loops": 1,
"rows": 4,
"r_rows": 3,
@@ -511,6 +527,7 @@ ANALYZE
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"r_loops": 1,
"rows": 2,
"r_rows": 2,
@@ -526,6 +543,7 @@ ANALYZE
"table": {
"table_name": "t3",
"access_type": "ALL",
+ "loops": 2,
"r_loops": 1,
"rows": 2,
"r_rows": 2,
@@ -557,6 +575,7 @@ ANALYZE
"table": {
"table_name": "t2",
"access_type": "ALL",
+ "loops": 1,
"r_loops": 1,
"rows": 2,
"r_rows": 2,
@@ -572,6 +591,7 @@ ANALYZE
"table": {
"table_name": "t4",
"access_type": "ALL",
+ "loops": 2,
"r_loops": 1,
"rows": 2,
"r_rows": 2,
diff --git a/mysql-test/main/except_all.result b/mysql-test/main/except_all.result
index 522ed7cedfc..f79f35ee932 100644
--- a/mysql-test/main/except_all.result
+++ b/mysql-test/main/except_all.result
@@ -71,6 +71,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 7,
"cost": "COST_REPLACED",
"filtered": 100
@@ -89,6 +90,7 @@ EXPLAIN
"table": {
"table_name": "t2",
"access_type": "ALL",
+ "loops": 1,
"rows": 7,
"cost": "COST_REPLACED",
"filtered": 100
@@ -132,6 +134,7 @@ ANALYZE
"table": {
"table_name": "<derived2>",
"access_type": "ALL",
+ "loops": 1,
"r_loops": 1,
"rows": 7,
"r_rows": 4,
@@ -159,6 +162,7 @@ ANALYZE
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"r_loops": 1,
"rows": 7,
"r_rows": 7,
@@ -184,6 +188,7 @@ ANALYZE
"table": {
"table_name": "t2",
"access_type": "ALL",
+ "loops": 1,
"r_loops": 1,
"rows": 7,
"r_rows": 7,
@@ -222,6 +227,7 @@ ANALYZE
"table": {
"table_name": "<derived2>",
"access_type": "ALL",
+ "loops": 1,
"r_loops": 1,
"rows": 7,
"r_rows": 4,
@@ -249,6 +255,7 @@ ANALYZE
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"r_loops": 1,
"rows": 7,
"r_rows": 7,
@@ -274,6 +281,7 @@ ANALYZE
"table": {
"table_name": "t2",
"access_type": "ALL",
+ "loops": 1,
"r_loops": 1,
"rows": 7,
"r_rows": 7,
@@ -409,6 +417,7 @@ EXPLAIN
"table": {
"table_name": "<derived2>",
"access_type": "ALL",
+ "loops": 1,
"rows": 9,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -427,6 +436,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 3,
"cost": "COST_REPLACED",
"filtered": 100
@@ -437,6 +447,7 @@ EXPLAIN
"table": {
"table_name": "t3",
"access_type": "ALL",
+ "loops": 3,
"rows": 3,
"cost": "COST_REPLACED",
"filtered": 100
@@ -459,6 +470,7 @@ EXPLAIN
"table": {
"table_name": "t2",
"access_type": "ALL",
+ "loops": 1,
"rows": 2,
"cost": "COST_REPLACED",
"filtered": 100
@@ -469,6 +481,7 @@ EXPLAIN
"table": {
"table_name": "t4",
"access_type": "ALL",
+ "loops": 2,
"rows": 3,
"cost": "COST_REPLACED",
"filtered": 100
@@ -514,6 +527,7 @@ ANALYZE
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"r_loops": 1,
"rows": 3,
"r_rows": 3,
@@ -529,6 +543,7 @@ ANALYZE
"table": {
"table_name": "t3",
"access_type": "ALL",
+ "loops": 3,
"r_loops": 1,
"rows": 3,
"r_rows": 3,
@@ -560,6 +575,7 @@ ANALYZE
"table": {
"table_name": "t2",
"access_type": "ALL",
+ "loops": 1,
"r_loops": 1,
"rows": 2,
"r_rows": 2,
@@ -575,6 +591,7 @@ ANALYZE
"table": {
"table_name": "t4",
"access_type": "ALL",
+ "loops": 2,
"r_loops": 1,
"rows": 3,
"r_rows": 3,
@@ -614,6 +631,7 @@ ANALYZE
"table": {
"table_name": "<derived2>",
"access_type": "ALL",
+ "loops": 1,
"r_loops": 1,
"rows": 9,
"r_rows": 7,
@@ -641,6 +659,7 @@ ANALYZE
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"r_loops": 1,
"rows": 3,
"r_rows": 3,
@@ -656,6 +675,7 @@ ANALYZE
"table": {
"table_name": "t3",
"access_type": "ALL",
+ "loops": 3,
"r_loops": 1,
"rows": 3,
"r_rows": 3,
@@ -687,6 +707,7 @@ ANALYZE
"table": {
"table_name": "t2",
"access_type": "ALL",
+ "loops": 1,
"r_loops": 1,
"rows": 2,
"r_rows": 2,
@@ -702,6 +723,7 @@ ANALYZE
"table": {
"table_name": "t4",
"access_type": "ALL",
+ "loops": 2,
"r_loops": 1,
"rows": 3,
"r_rows": 3,
diff --git a/mysql-test/main/explain_json.result b/mysql-test/main/explain_json.result
index e2ebe9fbc9b..b53b5241077 100644
--- a/mysql-test/main/explain_json.result
+++ b/mysql-test/main/explain_json.result
@@ -12,6 +12,7 @@ EXPLAIN
"table": {
"table_name": "t0",
"access_type": "ALL",
+ "loops": 1,
"rows": 10,
"cost": "COST_REPLACED",
"filtered": 100
@@ -41,6 +42,7 @@ EXPLAIN
"table": {
"table_name": "t0",
"access_type": "ALL",
+ "loops": 1,
"rows": 10,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -69,6 +71,7 @@ EXPLAIN
"table": {
"table_name": "t0",
"access_type": "ALL",
+ "loops": 1,
"rows": 10,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -84,6 +87,7 @@ EXPLAIN
"key_length": "5",
"used_key_parts": ["a"],
"ref": ["test.t0.a"],
+ "loops": 10,
"rows": 1,
"cost": "COST_REPLACED",
"filtered": 100
@@ -110,6 +114,7 @@ EXPLAIN
"key": "a1",
"key_length": "5",
"used_key_parts": ["a1"],
+ "loops": 1,
"rows": 5,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -148,6 +153,7 @@ EXPLAIN
}
]
},
+ "loops": 1,
"rows": 2,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -186,6 +192,7 @@ EXPLAIN
}
]
},
+ "loops": 1,
"rows": 2,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -225,6 +232,7 @@ EXPLAIN
}
]
},
+ "loops": 1,
"rows": 2,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -246,6 +254,7 @@ EXPLAIN
"table": {
"table_name": "t0",
"access_type": "ALL",
+ "loops": 1,
"rows": 10,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -261,6 +270,7 @@ EXPLAIN
"key_length": "10",
"used_key_parts": ["b1", "b2"],
"ref": ["test.t0.a", "const"],
+ "loops": 10,
"rows": 1,
"cost": "COST_REPLACED",
"filtered": 100
@@ -290,6 +300,7 @@ EXPLAIN
"table": {
"table_name": "A",
"access_type": "ALL",
+ "loops": 1,
"rows": 10,
"cost": "COST_REPLACED",
"filtered": 100
@@ -308,6 +319,7 @@ EXPLAIN
"table": {
"table_name": "B",
"access_type": "ALL",
+ "loops": 1,
"rows": 10,
"cost": "COST_REPLACED",
"filtered": 100
@@ -335,6 +347,7 @@ EXPLAIN
"table": {
"table_name": "A",
"access_type": "ALL",
+ "loops": 1,
"rows": 10,
"cost": "COST_REPLACED",
"filtered": 100
@@ -353,6 +366,7 @@ EXPLAIN
"table": {
"table_name": "B",
"access_type": "ALL",
+ "loops": 1,
"rows": 10,
"cost": "COST_REPLACED",
"filtered": 100
@@ -381,6 +395,7 @@ EXPLAIN
"table": {
"table_name": "t0",
"access_type": "ALL",
+ "loops": 1,
"rows": 10,
"cost": "COST_REPLACED",
"filtered": 100
@@ -399,6 +414,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 10,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -425,6 +441,7 @@ EXPLAIN
"table": {
"table_name": "t0",
"access_type": "ALL",
+ "loops": 1,
"rows": 10,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -444,6 +461,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 10,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -475,6 +493,7 @@ EXPLAIN
"table": {
"table_name": "tbl1",
"access_type": "ALL",
+ "loops": 1,
"rows": 100,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -486,6 +505,7 @@ EXPLAIN
"table": {
"table_name": "tbl2",
"access_type": "ALL",
+ "loops": 100,
"rows": 100,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -581,6 +601,7 @@ EXPLAIN
"table": {
"table_name": "t0",
"access_type": "ALL",
+ "loops": 1,
"rows": 10,
"cost": "COST_REPLACED",
"filtered": 100
@@ -611,6 +632,7 @@ EXPLAIN
"table": {
"table_name": "<derived2>",
"access_type": "ALL",
+ "loops": 1,
"rows": 10,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -628,6 +650,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 10,
"cost": "COST_REPLACED",
"filtered": 100
@@ -656,6 +679,7 @@ EXPLAIN
"table": {
"table_name": "tbl2",
"access_type": "ALL",
+ "loops": 1,
"rows": 10,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -671,6 +695,7 @@ EXPLAIN
"key_length": "8",
"used_key_parts": ["cnt"],
"ref": ["test.tbl2.a"],
+ "loops": 10,
"rows": 2,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -687,6 +712,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 10,
"cost": "COST_REPLACED",
"filtered": 100
@@ -717,6 +743,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 10,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -732,6 +759,7 @@ EXPLAIN
"key_length": "4",
"used_key_parts": ["max(a)"],
"ref": ["test.t1.a"],
+ "loops": 10,
"rows": 1,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -746,6 +774,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 10,
"cost": "COST_REPLACED",
"filtered": 100
@@ -777,6 +806,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 10,
"cost": "COST_REPLACED",
"filtered": 100
@@ -806,6 +836,7 @@ EXPLAIN
"key": "PRIMARY",
"key_length": "8",
"used_key_parts": ["seq"],
+ "loops": 1,
"rows": 100,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -822,6 +853,7 @@ EXPLAIN
"table": {
"table_name": "t2",
"access_type": "ALL",
+ "loops": 10,
"rows": 10,
"cost": "COST_REPLACED",
"filtered": 100
@@ -854,6 +886,7 @@ EXPLAIN
"table": {
"table_name": "t2",
"access_type": "ALL",
+ "loops": 1,
"rows": 10,
"cost": "COST_REPLACED",
"filtered": 100
@@ -864,6 +897,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 10,
"rows": 10,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -900,6 +934,7 @@ EXPLAIN
"table": {
"table_name": "t2",
"access_type": "ALL",
+ "loops": 1,
"rows": 10,
"cost": "COST_REPLACED",
"filtered": 100
@@ -912,6 +947,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 10,
"rows": 10,
"cost": "COST_REPLACED",
"filtered": 10
@@ -951,6 +987,7 @@ EXPLAIN
"key": "a",
"key_length": "5",
"used_key_parts": ["a"],
+ "loops": 1,
"rows": 2,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -975,6 +1012,7 @@ EXPLAIN
"table": {
"table_name": "tbl1",
"access_type": "ALL",
+ "loops": 1,
"rows": 100,
"cost": "COST_REPLACED",
"filtered": 100
@@ -987,6 +1025,7 @@ EXPLAIN
"table_name": "tbl2",
"access_type": "ALL",
"possible_keys": ["a"],
+ "loops": 100,
"rows": 100,
"cost": "COST_REPLACED",
"filtered": 100
@@ -1019,6 +1058,7 @@ EXPLAIN
"key": "a",
"key_length": "5",
"used_key_parts": ["a"],
+ "loops": 1,
"rows": 5,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -1044,6 +1084,7 @@ EXPLAIN
"key_length": "5",
"used_key_parts": ["a"],
"ref": ["func"],
+ "loops": 1,
"rows": 3,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -1057,6 +1098,7 @@ EXPLAIN
"table": {
"table_name": "t2",
"access_type": "ALL",
+ "loops": 3,
"rows": 5,
"cost": "COST_REPLACED",
"filtered": 100
@@ -1097,6 +1139,7 @@ EXPLAIN
"table": {
"table_name": "t0",
"access_type": "ALL",
+ "loops": 1,
"rows": 10,
"cost": "COST_REPLACED",
"filtered": 100
@@ -1113,6 +1156,7 @@ EXPLAIN
"table": {
"table_name": "tbl1",
"access_type": "ALL",
+ "loops": 1,
"rows": 100,
"cost": "COST_REPLACED",
"filtered": 100
@@ -1123,6 +1167,7 @@ EXPLAIN
"table": {
"table_name": "tbl2",
"access_type": "ALL",
+ "loops": 100,
"rows": 100,
"cost": "COST_REPLACED",
"filtered": 100
@@ -1159,6 +1204,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 2,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -1177,6 +1223,7 @@ EXPLAIN
"table": {
"table_name": "t2",
"access_type": "ALL",
+ "loops": 1,
"rows": 2,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -1226,6 +1273,7 @@ EXPLAIN
"key": "a",
"key_length": "10",
"used_key_parts": ["a", "b"],
+ "loops": 1,
"rows": 101,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -1254,6 +1302,7 @@ ANALYZE
"key": "a",
"key_length": "10",
"used_key_parts": ["a", "b"],
+ "loops": 1,
"r_loops": 1,
"rows": 101,
"r_rows": 100,
@@ -1341,6 +1390,7 @@ EXPLAIN
"key": "idx_t1_2",
"key_length": "147",
"used_key_parts": ["a1", "a2", "b"],
+ "loops": 1,
"rows": 17,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -1365,6 +1415,7 @@ EXPLAIN
"key": "idx_t1_1",
"key_length": "163",
"used_key_parts": ["a1", "a2", "b", "c"],
+ "loops": 1,
"rows": 128,
"cost": "COST_REPLACED",
"filtered": 0.198364258,
@@ -1390,6 +1441,7 @@ EXPLAIN
"key": "idx_t1_1",
"key_length": "147",
"used_key_parts": ["a1", "a2", "b"],
+ "loops": 1,
"rows": 1,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -1417,6 +1469,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 2,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -1443,6 +1496,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 2,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -1482,6 +1536,7 @@ EXPLAIN
"table": {
"table_name": "t2",
"access_type": "ALL",
+ "loops": 1,
"rows": 256,
"cost": "COST_REPLACED",
"filtered": 100
@@ -1507,6 +1562,7 @@ EXPLAIN
"table": {
"table_name": "t2",
"access_type": "ALL",
+ "loops": 1,
"rows": 256,
"cost": "COST_REPLACED",
"filtered": 100
@@ -1543,6 +1599,7 @@ EXPLAIN
"table": {
"table_name": "t2",
"access_type": "ALL",
+ "loops": 1,
"rows": 256,
"cost": "COST_REPLACED",
"filtered": 100
@@ -1630,6 +1687,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 2,
"cost": "COST_REPLACED",
"filtered": 100
@@ -1669,6 +1727,7 @@ ANALYZE
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"r_loops": 1,
"rows": 2,
"r_rows": 2,
@@ -1700,6 +1759,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 2,
"cost": "COST_REPLACED",
"filtered": 100
@@ -1714,6 +1774,7 @@ EXPLAIN
"key_length": "4",
"used_key_parts": ["pk"],
"ref": ["test.t1.a"],
+ "loops": 2,
"rows": 1,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -1742,6 +1803,7 @@ ANALYZE
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"r_loops": 1,
"rows": 2,
"r_rows": 2,
@@ -1761,6 +1823,7 @@ ANALYZE
"key_length": "4",
"used_key_parts": ["pk"],
"ref": ["test.t1.a"],
+ "loops": 2,
"r_loops": 2,
"rows": 1,
"r_rows": 1,
@@ -1796,6 +1859,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 2,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -1811,6 +1875,7 @@ EXPLAIN
"key_length": "4",
"used_key_parts": ["pk"],
"ref": ["test.t1.a"],
+ "loops": 2,
"rows": 1,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -1840,6 +1905,7 @@ ANALYZE
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"r_loops": 1,
"rows": 2,
"r_rows": 2,
@@ -1860,6 +1926,7 @@ ANALYZE
"key_length": "4",
"used_key_parts": ["pk"],
"ref": ["test.t1.a"],
+ "loops": 2,
"r_loops": 2,
"rows": 1,
"r_rows": 1,
@@ -1907,6 +1974,7 @@ EXPLAIN
"table": {
"table_name": "t3",
"access_type": "ALL",
+ "loops": 1,
"rows": 10,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -1923,6 +1991,7 @@ EXPLAIN
"key_length": "5",
"used_key_parts": ["a"],
"ref": ["test.t3.a"],
+ "loops": 10,
"rows": 1,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -1954,6 +2023,7 @@ ANALYZE
"table": {
"table_name": "t3",
"access_type": "ALL",
+ "loops": 1,
"r_loops": 1,
"rows": 10,
"r_rows": 10,
@@ -1975,6 +2045,7 @@ ANALYZE
"key_length": "5",
"used_key_parts": ["a"],
"ref": ["test.t3.a"],
+ "loops": 10,
"r_loops": 1,
"rows": 1,
"r_rows": 10,
@@ -2018,6 +2089,7 @@ EXPLAIN
"table": {
"table_name": "t0",
"access_type": "ALL",
+ "loops": 1,
"rows": 10,
"cost": "COST_REPLACED",
"filtered": 100
@@ -2037,6 +2109,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 10,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -2070,6 +2143,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 3,
"cost": "COST_REPLACED",
"filtered": 100
@@ -2094,6 +2168,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 3,
"cost": "COST_REPLACED",
"filtered": 100
@@ -2118,6 +2193,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 3,
"cost": "COST_REPLACED",
"filtered": 100
@@ -2147,6 +2223,7 @@ EXPLAIN
"table": {
"table_name": "t0",
"access_type": "ALL",
+ "loops": 1,
"rows": 2,
"cost": "COST_REPLACED",
"filtered": 100
@@ -2159,6 +2236,7 @@ EXPLAIN
"table": {
"table_name": "t2",
"access_type": "ALL",
+ "loops": 2,
"rows": 2,
"cost": "COST_REPLACED",
"filtered": 100
@@ -2174,6 +2252,7 @@ EXPLAIN
"table": {
"table_name": "t3",
"access_type": "ALL",
+ "loops": 4,
"rows": 2,
"cost": "COST_REPLACED",
"filtered": 25
diff --git a/mysql-test/main/explain_json_format_partitions.result b/mysql-test/main/explain_json_format_partitions.result
index e2cf420c906..858b2539eb0 100644
--- a/mysql-test/main/explain_json_format_partitions.result
+++ b/mysql-test/main/explain_json_format_partitions.result
@@ -19,6 +19,7 @@ EXPLAIN
"table_name": "t1",
"partitions": ["p0"],
"access_type": "ALL",
+ "loops": 1,
"rows": 10,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -45,6 +46,7 @@ ANALYZE
"table_name": "t1",
"partitions": ["p0"],
"access_type": "ALL",
+ "loops": 1,
"r_loops": 1,
"rows": 10,
"r_rows": 10,
diff --git a/mysql-test/main/explain_json_innodb.result b/mysql-test/main/explain_json_innodb.result
index 04b05a4b8c0..d59b8aac0c9 100644
--- a/mysql-test/main/explain_json_innodb.result
+++ b/mysql-test/main/explain_json_innodb.result
@@ -22,6 +22,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 2,
"cost": "COST_REPLACED",
"filtered": 100
@@ -38,6 +39,7 @@ EXPLAIN
"table": {
"table_name": "tbl_alias1",
"access_type": "ALL",
+ "loops": 1,
"rows": 1,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -56,6 +58,7 @@ EXPLAIN
"test.tbl_alias1.column_name_2",
"test.tbl_alias1.column_name_1"
],
+ "loops": 1,
"rows": 1,
"cost": "COST_REPLACED",
"filtered": 100,
diff --git a/mysql-test/main/fetch_first.result b/mysql-test/main/fetch_first.result
index 1e1bb358e97..dde04bfb05b 100644
--- a/mysql-test/main/fetch_first.result
+++ b/mysql-test/main/fetch_first.result
@@ -465,6 +465,7 @@ ANALYZE
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"r_loops": 1,
"rows": 8,
"r_rows": 8,
diff --git a/mysql-test/main/having_cond_pushdown.result b/mysql-test/main/having_cond_pushdown.result
index 576183d1d8b..15b49b7ba2f 100644
--- a/mysql-test/main/having_cond_pushdown.result
+++ b/mysql-test/main/having_cond_pushdown.result
@@ -43,6 +43,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 5,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -71,6 +72,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 5,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -115,6 +117,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 5,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -138,6 +141,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 5,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -185,6 +189,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 5,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -213,6 +218,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 5,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -264,6 +270,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 5,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -294,6 +301,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 5,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -345,6 +353,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 5,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -375,6 +384,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 5,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -423,6 +433,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 5,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -453,6 +464,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 5,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -500,6 +512,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 5,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -530,6 +543,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 5,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -574,6 +588,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 5,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -599,6 +614,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 5,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -641,6 +657,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 5,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -666,6 +683,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 5,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -711,6 +729,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 5,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -741,6 +760,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 5,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -790,6 +810,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 5,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -820,6 +841,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 5,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -864,6 +886,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 5,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -889,6 +912,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 5,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -935,6 +959,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 5,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -965,6 +990,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 5,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -1020,6 +1046,7 @@ EXPLAIN
"table": {
"table_name": "t2",
"access_type": "ALL",
+ "loops": 1,
"rows": 4,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -1035,6 +1062,7 @@ EXPLAIN
"key_length": "5",
"used_key_parts": ["a"],
"ref": ["test.t2.x"],
+ "loops": 4,
"rows": 2,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -1050,6 +1078,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 5,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -1085,6 +1114,7 @@ EXPLAIN
"table": {
"table_name": "t2",
"access_type": "ALL",
+ "loops": 1,
"rows": 4,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -1100,6 +1130,7 @@ EXPLAIN
"key_length": "5",
"used_key_parts": ["a"],
"ref": ["test.t2.x"],
+ "loops": 4,
"rows": 2,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -1115,6 +1146,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 5,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -1177,6 +1209,7 @@ EXPLAIN
"table": {
"table_name": "t2",
"access_type": "ALL",
+ "loops": 1,
"rows": 4,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -1192,6 +1225,7 @@ EXPLAIN
"key_length": "5",
"used_key_parts": ["a"],
"ref": ["test.t2.x"],
+ "loops": 4,
"rows": 2,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -1209,6 +1243,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 5,
"cost": "COST_REPLACED",
"filtered": 100
@@ -1243,6 +1278,7 @@ EXPLAIN
"table": {
"table_name": "t2",
"access_type": "ALL",
+ "loops": 1,
"rows": 4,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -1258,6 +1294,7 @@ EXPLAIN
"key_length": "5",
"used_key_parts": ["a"],
"ref": ["test.t2.x"],
+ "loops": 4,
"rows": 2,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -1275,6 +1312,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 5,
"cost": "COST_REPLACED",
"filtered": 100
@@ -1337,6 +1375,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 5,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -1352,6 +1391,7 @@ EXPLAIN
"key_length": "8",
"used_key_parts": ["x", "MAX(t2.y)"],
"ref": ["test.t1.a", "test.t1.b"],
+ "loops": 5,
"rows": 1,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -1366,6 +1406,7 @@ EXPLAIN
"table": {
"table_name": "t2",
"access_type": "ALL",
+ "loops": 1,
"rows": 4,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -1401,6 +1442,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 5,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -1416,6 +1458,7 @@ EXPLAIN
"key_length": "8",
"used_key_parts": ["x", "MAX(t2.y)"],
"ref": ["test.t1.a", "test.t1.b"],
+ "loops": 5,
"rows": 1,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -1430,6 +1473,7 @@ EXPLAIN
"table": {
"table_name": "t2",
"access_type": "ALL",
+ "loops": 1,
"rows": 4,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -1490,6 +1534,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 5,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -1505,6 +1550,7 @@ EXPLAIN
"key_length": "8",
"used_key_parts": ["x", "MAX(t2.y)"],
"ref": ["test.t1.a", "test.t1.b"],
+ "loops": 5,
"rows": 1,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -1520,6 +1566,7 @@ EXPLAIN
"table": {
"table_name": "t2",
"access_type": "ALL",
+ "loops": 1,
"rows": 4,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -1555,6 +1602,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 5,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -1570,6 +1618,7 @@ EXPLAIN
"key_length": "8",
"used_key_parts": ["x", "MAX(t2.y)"],
"ref": ["test.t1.a", "test.t1.b"],
+ "loops": 5,
"rows": 1,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -1585,6 +1634,7 @@ EXPLAIN
"table": {
"table_name": "t2",
"access_type": "ALL",
+ "loops": 1,
"rows": 4,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -1640,6 +1690,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 5,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -1669,6 +1720,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 5,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -1713,6 +1765,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 5,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -1738,6 +1791,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 5,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -1783,6 +1837,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 5,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -1810,6 +1865,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 5,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -1853,6 +1909,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 5,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -1876,6 +1933,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 5,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -1921,6 +1979,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 5,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -1951,6 +2010,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 5,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -2004,6 +2064,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 5,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -2032,6 +2093,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 5,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -2083,6 +2145,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 5,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -2111,6 +2174,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 5,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -2162,6 +2226,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 5,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -2192,6 +2257,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 5,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -2246,6 +2312,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 5,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -2276,6 +2343,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 5,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -2346,6 +2414,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 5,
"cost": "COST_REPLACED",
"filtered": 100
@@ -2374,6 +2443,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 5,
"cost": "COST_REPLACED",
"filtered": 100
@@ -2422,6 +2492,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 5,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -2450,6 +2521,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 5,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -2500,6 +2572,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 5,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -2528,6 +2601,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 5,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -2577,6 +2651,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 5,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -2605,6 +2680,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 5,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -2656,6 +2732,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 5,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -2684,6 +2761,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 5,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -2732,6 +2810,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 5,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -2760,6 +2839,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 5,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -2810,6 +2890,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 5,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -2838,6 +2919,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 5,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -2885,6 +2967,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 5,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -2915,6 +2998,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 5,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -2964,6 +3048,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 5,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -2994,6 +3079,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 5,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -3039,6 +3125,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 5,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -3064,6 +3151,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 5,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -3107,6 +3195,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 5,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -3132,6 +3221,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 5,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -3174,6 +3264,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 5,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -3199,6 +3290,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 5,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -3253,6 +3345,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 5,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -3281,6 +3374,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 5,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -3329,6 +3423,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 5,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -3352,6 +3447,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 5,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -3401,6 +3497,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 5,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -3429,6 +3526,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 5,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -3477,6 +3575,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 5,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -3500,6 +3599,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 5,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -3593,6 +3693,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 5,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -3616,6 +3717,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 5,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -3667,6 +3769,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 5,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -3695,6 +3798,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 5,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -3743,6 +3847,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 5,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -3766,6 +3871,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 5,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -3813,6 +3919,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 5,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -3836,6 +3943,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 5,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -3927,6 +4035,7 @@ EXPLAIN
"table": {
"table_name": "t3",
"access_type": "ALL",
+ "loops": 1,
"rows": 3,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -3950,6 +4059,7 @@ EXPLAIN
"table": {
"table_name": "t3",
"access_type": "ALL",
+ "loops": 1,
"rows": 3,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -3999,6 +4109,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 5,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -4027,6 +4138,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 5,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -4126,6 +4238,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 5,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -4154,6 +4267,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 5,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -4203,6 +4317,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 5,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -4226,6 +4341,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 5,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -4277,6 +4393,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 5,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -4305,6 +4422,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 5,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -4354,6 +4472,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 5,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -4377,6 +4496,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 5,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -4429,6 +4549,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 5,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -4460,6 +4581,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 5,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -4509,6 +4631,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 5,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -4538,6 +4661,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 5,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -4586,6 +4710,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 5,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -4610,6 +4735,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 5,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -4656,6 +4782,7 @@ EXPLAIN
"table": {
"table_name": "t3",
"access_type": "ALL",
+ "loops": 1,
"rows": 3,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -4682,6 +4809,7 @@ EXPLAIN
"table": {
"table_name": "t3",
"access_type": "ALL",
+ "loops": 1,
"rows": 3,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -4728,6 +4856,7 @@ EXPLAIN
"table": {
"table_name": "t3",
"access_type": "ALL",
+ "loops": 1,
"rows": 3,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -4752,6 +4881,7 @@ EXPLAIN
"table": {
"table_name": "t3",
"access_type": "ALL",
+ "loops": 1,
"rows": 3,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -4804,6 +4934,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 5,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -4835,6 +4966,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 5,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -4889,6 +5021,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 5,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -4918,6 +5051,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 5,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -4972,6 +5106,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 5,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -5001,6 +5136,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 5,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -5049,6 +5185,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 5,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -5072,6 +5209,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 5,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -5118,6 +5256,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 5,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -5142,6 +5281,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 5,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -5332,6 +5472,7 @@ EXPLAIN
"table": {
"table_name": "t3",
"access_type": "ALL",
+ "loops": 1,
"rows": 3,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -5361,6 +5502,7 @@ EXPLAIN
"table": {
"table_name": "t3",
"access_type": "ALL",
+ "loops": 1,
"rows": 3,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -5410,6 +5552,7 @@ EXPLAIN
"table": {
"table_name": "t3",
"access_type": "ALL",
+ "loops": 1,
"rows": 3,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -5439,6 +5582,7 @@ EXPLAIN
"table": {
"table_name": "t3",
"access_type": "ALL",
+ "loops": 1,
"rows": 3,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -5529,6 +5673,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 4,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -5573,6 +5718,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 2,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -5650,6 +5796,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 7,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -5667,6 +5814,7 @@ EXPLAIN
"table": {
"table_name": "t2",
"access_type": "ALL",
+ "loops": 1,
"rows": 2,
"cost": "COST_REPLACED",
"filtered": 100
@@ -5698,6 +5846,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 7,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -5715,6 +5864,7 @@ EXPLAIN
"table": {
"table_name": "t2",
"access_type": "ALL",
+ "loops": 1,
"rows": 2,
"cost": "COST_REPLACED",
"filtered": 100
@@ -5747,6 +5897,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 7,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -5764,6 +5915,7 @@ EXPLAIN
"table": {
"table_name": "t2",
"access_type": "ALL",
+ "loops": 1,
"rows": 2,
"cost": "COST_REPLACED",
"filtered": 100
@@ -5792,6 +5944,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 7,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -5809,6 +5962,7 @@ EXPLAIN
"table": {
"table_name": "t2",
"access_type": "ALL",
+ "loops": 1,
"rows": 2,
"cost": "COST_REPLACED",
"filtered": 100
diff --git a/mysql-test/main/in_subq_cond_pushdown.result b/mysql-test/main/in_subq_cond_pushdown.result
index 906aed4f485..195d9db22de 100644
--- a/mysql-test/main/in_subq_cond_pushdown.result
+++ b/mysql-test/main/in_subq_cond_pushdown.result
@@ -57,6 +57,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 16,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -72,6 +73,7 @@ EXPLAIN
"key_length": "8",
"used_key_parts": ["e", "MAX(t2.g)"],
"ref": ["test.t1.a", "test.t1.c"],
+ "loops": 16,
"rows": 1,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -87,6 +89,7 @@ EXPLAIN
"table": {
"table_name": "t2",
"access_type": "ALL",
+ "loops": 1,
"rows": 12,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -161,6 +164,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 16,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -176,6 +180,7 @@ EXPLAIN
"key_length": "12",
"used_key_parts": ["e", "f", "MAX(t2.g)"],
"ref": ["test.t1.a", "test.t1.b", "test.t1.c"],
+ "loops": 16,
"rows": 1,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -191,6 +196,7 @@ EXPLAIN
"table": {
"table_name": "t2",
"access_type": "ALL",
+ "loops": 1,
"rows": 12,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -267,6 +273,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 16,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -282,6 +289,7 @@ EXPLAIN
"key_length": "12",
"used_key_parts": ["e", "f", "MAX(t2.g)"],
"ref": ["test.t1.a", "test.t1.b", "test.t1.c"],
+ "loops": 16,
"rows": 1,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -297,6 +305,7 @@ EXPLAIN
"table": {
"table_name": "t2",
"access_type": "ALL",
+ "loops": 1,
"rows": 12,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -371,6 +380,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 16,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -386,6 +396,7 @@ EXPLAIN
"key_length": "12",
"used_key_parts": ["e", "f", "MAX(t2.g)"],
"ref": ["test.t1.a", "test.t1.b", "test.t1.c"],
+ "loops": 16,
"rows": 1,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -401,6 +412,7 @@ EXPLAIN
"table": {
"table_name": "t2",
"access_type": "ALL",
+ "loops": 1,
"rows": 12,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -477,6 +489,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 16,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -492,6 +505,7 @@ EXPLAIN
"key_length": "12",
"used_key_parts": ["e", "f", "MAX(t2.g)"],
"ref": ["test.t1.a", "test.t1.b", "test.t1.c"],
+ "loops": 16,
"rows": 1,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -507,6 +521,7 @@ EXPLAIN
"table": {
"table_name": "t2",
"access_type": "ALL",
+ "loops": 1,
"rows": 12,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -581,6 +596,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 16,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -596,6 +612,7 @@ EXPLAIN
"key_length": "8",
"used_key_parts": ["v1_x", "MAX(v1_y)"],
"ref": ["test.t1.a", "test.t1.c"],
+ "loops": 16,
"rows": 1,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -611,6 +628,7 @@ EXPLAIN
"table": {
"table_name": "t3",
"access_type": "ALL",
+ "loops": 1,
"rows": 8,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -686,6 +704,7 @@ EXPLAIN
"table": {
"table_name": "t3",
"access_type": "ALL",
+ "loops": 1,
"rows": 8,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -697,6 +716,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 8,
"rows": 16,
"cost": "COST_REPLACED",
"filtered": 100
@@ -716,6 +736,7 @@ EXPLAIN
"key_length": "8",
"used_key_parts": ["e", "MAX(t2.g)"],
"ref": ["test.t1.a", "test.t3.y"],
+ "loops": 128,
"rows": 1,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -731,6 +752,7 @@ EXPLAIN
"table": {
"table_name": "t2",
"access_type": "ALL",
+ "loops": 1,
"rows": 12,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -807,6 +829,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 16,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -822,6 +845,7 @@ EXPLAIN
"key_length": "8",
"used_key_parts": ["e", "MAX(t2.g)"],
"ref": ["test.t1.a", "test.t1.c"],
+ "loops": 16,
"rows": 1,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -836,6 +860,7 @@ EXPLAIN
"table": {
"table_name": "t2",
"access_type": "ALL",
+ "loops": 1,
"rows": 12,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -912,6 +937,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 16,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -927,6 +953,7 @@ EXPLAIN
"key_length": "8",
"used_key_parts": ["e", "MAX(t2.g)"],
"ref": ["test.t1.a", "test.t1.c"],
+ "loops": 16,
"rows": 1,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -941,6 +968,7 @@ EXPLAIN
"table": {
"table_name": "t2",
"access_type": "ALL",
+ "loops": 1,
"rows": 12,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -1019,6 +1047,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 16,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -1034,6 +1063,7 @@ EXPLAIN
"key_length": "8",
"used_key_parts": ["e", "MAX(t2.g)"],
"ref": ["test.t1.a", "test.t1.c"],
+ "loops": 16,
"rows": 1,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -1048,6 +1078,7 @@ EXPLAIN
"table": {
"table_name": "t2",
"access_type": "ALL",
+ "loops": 1,
"rows": 12,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -1122,6 +1153,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 16,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -1137,6 +1169,7 @@ EXPLAIN
"key_length": "12",
"used_key_parts": ["e", "f", "MAX(t2.g)"],
"ref": ["test.t1.a", "test.t1.b", "test.t1.c"],
+ "loops": 16,
"rows": 1,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -1151,6 +1184,7 @@ EXPLAIN
"table": {
"table_name": "t2",
"access_type": "ALL",
+ "loops": 1,
"rows": 12,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -1225,6 +1259,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 16,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -1240,6 +1275,7 @@ EXPLAIN
"key_length": "12",
"used_key_parts": ["e", "f", "MAX(t2.g)"],
"ref": ["test.t1.a", "test.t1.b", "test.t1.c"],
+ "loops": 16,
"rows": 1,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -1254,6 +1290,7 @@ EXPLAIN
"table": {
"table_name": "t2",
"access_type": "ALL",
+ "loops": 1,
"rows": 12,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -1328,6 +1365,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 16,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -1343,6 +1381,7 @@ EXPLAIN
"key_length": "12",
"used_key_parts": ["e", "f", "MAX(t2.g)"],
"ref": ["test.t1.a", "test.t1.b", "test.t1.c"],
+ "loops": 16,
"rows": 1,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -1357,6 +1396,7 @@ EXPLAIN
"table": {
"table_name": "t2",
"access_type": "ALL",
+ "loops": 1,
"rows": 12,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -1431,6 +1471,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 16,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -1446,6 +1487,7 @@ EXPLAIN
"key_length": "8",
"used_key_parts": ["e", "MAX(t2.g)"],
"ref": ["const", "test.t1.c"],
+ "loops": 16,
"rows": 1,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -1459,6 +1501,7 @@ EXPLAIN
"table": {
"table_name": "t2",
"access_type": "ALL",
+ "loops": 1,
"rows": 12,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -1532,6 +1575,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 16,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -1547,6 +1591,7 @@ EXPLAIN
"key_length": "8",
"used_key_parts": ["e", "MAX(t2.g)"],
"ref": ["test.t1.a", "test.t1.c"],
+ "loops": 16,
"rows": 1,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -1561,6 +1606,7 @@ EXPLAIN
"table": {
"table_name": "t2",
"access_type": "ALL",
+ "loops": 1,
"rows": 12,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -1633,6 +1679,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 16,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -1648,6 +1695,7 @@ EXPLAIN
"key_length": "8",
"used_key_parts": ["v1_x", "MAX(v1_y)"],
"ref": ["test.t1.a", "test.t1.c"],
+ "loops": 16,
"rows": 1,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -1662,6 +1710,7 @@ EXPLAIN
"table": {
"table_name": "t3",
"access_type": "ALL",
+ "loops": 1,
"rows": 8,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -1739,6 +1788,7 @@ EXPLAIN
"table": {
"table_name": "t3",
"access_type": "ALL",
+ "loops": 1,
"rows": 8,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -1750,6 +1800,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 8,
"rows": 16,
"cost": "COST_REPLACED",
"filtered": 100
@@ -1769,6 +1820,7 @@ EXPLAIN
"key_length": "8",
"used_key_parts": ["e", "MAX(t2.g)"],
"ref": ["test.t3.x", "test.t1.c"],
+ "loops": 128,
"rows": 1,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -1783,6 +1835,7 @@ EXPLAIN
"table": {
"table_name": "t2",
"access_type": "ALL",
+ "loops": 1,
"rows": 12,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -1858,6 +1911,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 16,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -1873,6 +1927,7 @@ EXPLAIN
"key_length": "12",
"used_key_parts": ["e", "f", "MAX(t2.g)"],
"ref": ["test.t1.a", "test.t1.b", "test.t1.c"],
+ "loops": 16,
"rows": 1,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -1888,6 +1943,7 @@ EXPLAIN
"table": {
"table_name": "t2",
"access_type": "ALL",
+ "loops": 1,
"rows": 12,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -1962,6 +2018,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 16,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -1977,6 +2034,7 @@ EXPLAIN
"key_length": "8",
"used_key_parts": ["e", "MAX(t2.g)"],
"ref": ["test.t1.a", "test.t1.c"],
+ "loops": 16,
"rows": 1,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -1992,6 +2050,7 @@ EXPLAIN
"table": {
"table_name": "t2",
"access_type": "ALL",
+ "loops": 1,
"rows": 12,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -2068,6 +2127,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 16,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -2083,6 +2143,7 @@ EXPLAIN
"key_length": "8",
"used_key_parts": ["e", "MAX(t2.g)"],
"ref": ["test.t1.a", "test.t1.c"],
+ "loops": 16,
"rows": 1,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -2098,6 +2159,7 @@ EXPLAIN
"table": {
"table_name": "t2",
"access_type": "ALL",
+ "loops": 1,
"rows": 12,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -2172,6 +2234,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 16,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -2187,6 +2250,7 @@ EXPLAIN
"key_length": "8",
"used_key_parts": ["e", "MAX(t2.g)"],
"ref": ["test.t1.a", "test.t1.c"],
+ "loops": 16,
"rows": 1,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -2202,6 +2266,7 @@ EXPLAIN
"table": {
"table_name": "t2",
"access_type": "ALL",
+ "loops": 1,
"rows": 12,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -2280,6 +2345,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 16,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -2295,6 +2361,7 @@ EXPLAIN
"key_length": "8",
"used_key_parts": ["e", "MAX(t2.g)"],
"ref": ["test.t1.a", "test.t1.c"],
+ "loops": 16,
"rows": 1,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -2310,6 +2377,7 @@ EXPLAIN
"table": {
"table_name": "t2",
"access_type": "ALL",
+ "loops": 1,
"rows": 12,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -2384,6 +2452,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 16,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -2399,6 +2468,7 @@ EXPLAIN
"key_length": "8",
"used_key_parts": ["e", "MAX(t2.g)"],
"ref": ["test.t1.a", "test.t1.c"],
+ "loops": 16,
"rows": 1,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -2414,6 +2484,7 @@ EXPLAIN
"table": {
"table_name": "t2",
"access_type": "ALL",
+ "loops": 1,
"rows": 12,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -2488,6 +2559,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 16,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -2503,6 +2575,7 @@ EXPLAIN
"key_length": "12",
"used_key_parts": ["e", "f", "MAX(t2.g)"],
"ref": ["test.t1.a", "test.t1.b", "test.t1.c"],
+ "loops": 16,
"rows": 1,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -2517,6 +2590,7 @@ EXPLAIN
"table": {
"table_name": "t2",
"access_type": "ALL",
+ "loops": 1,
"rows": 12,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -2591,6 +2665,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 16,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -2606,6 +2681,7 @@ EXPLAIN
"key_length": "12",
"used_key_parts": ["e", "f", "MAX(t2.g)"],
"ref": ["test.t1.a", "test.t1.b", "test.t1.c"],
+ "loops": 16,
"rows": 1,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -2620,6 +2696,7 @@ EXPLAIN
"table": {
"table_name": "t2",
"access_type": "ALL",
+ "loops": 1,
"rows": 12,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -2694,6 +2771,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 16,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -2709,6 +2787,7 @@ EXPLAIN
"key_length": "12",
"used_key_parts": ["e", "f", "MAX(t2.g)"],
"ref": ["test.t1.a", "test.t1.b", "test.t1.c"],
+ "loops": 16,
"rows": 1,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -2723,6 +2802,7 @@ EXPLAIN
"table": {
"table_name": "t2",
"access_type": "ALL",
+ "loops": 1,
"rows": 12,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -2799,6 +2879,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 16,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -2814,6 +2895,7 @@ EXPLAIN
"key_length": "12",
"used_key_parts": ["e", "f", "MAX(t2.g)"],
"ref": ["test.t1.a", "test.t1.b", "test.t1.c"],
+ "loops": 16,
"rows": 1,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -2828,6 +2910,7 @@ EXPLAIN
"table": {
"table_name": "t2",
"access_type": "ALL",
+ "loops": 1,
"rows": 12,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -2908,6 +2991,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 16,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -2923,6 +3007,7 @@ EXPLAIN
"key_length": "8",
"used_key_parts": ["e", "MAX(t2.g)"],
"ref": ["test.t1.a", "test.t1.c"],
+ "loops": 16,
"rows": 1,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -2937,6 +3022,7 @@ EXPLAIN
"table": {
"table_name": "t2",
"access_type": "ALL",
+ "loops": 1,
"rows": 12,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -3015,6 +3101,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 16,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -3030,6 +3117,7 @@ EXPLAIN
"key_length": "12",
"used_key_parts": ["e", "MAX(v2.f)", "max_g"],
"ref": ["test.t1.a", "test.t1.b", "test.t1.c"],
+ "loops": 16,
"rows": 1,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -3045,6 +3133,7 @@ EXPLAIN
"table": {
"table_name": "<derived3>",
"access_type": "ALL",
+ "loops": 1,
"rows": 12,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -3062,6 +3151,7 @@ EXPLAIN
"table": {
"table_name": "t2",
"access_type": "ALL",
+ "loops": 1,
"rows": 12,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -3146,6 +3236,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 16,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -3161,6 +3252,7 @@ EXPLAIN
"key_length": "12",
"used_key_parts": ["e", "MAX(v2.f)", "max_g"],
"ref": ["test.t1.a", "test.t1.b", "test.t1.c"],
+ "loops": 16,
"rows": 1,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -3175,6 +3267,7 @@ EXPLAIN
"table": {
"table_name": "<derived3>",
"access_type": "ALL",
+ "loops": 1,
"rows": 12,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -3192,6 +3285,7 @@ EXPLAIN
"table": {
"table_name": "t2",
"access_type": "ALL",
+ "loops": 1,
"rows": 12,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -3277,6 +3371,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 16,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -3292,6 +3387,7 @@ EXPLAIN
"key_length": "12",
"used_key_parts": ["e", "MAX(v2.f)", "max_g"],
"ref": ["test.t1.a", "test.t1.b", "test.t1.c"],
+ "loops": 16,
"rows": 1,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -3307,6 +3403,7 @@ EXPLAIN
"table": {
"table_name": "<derived3>",
"access_type": "ALL",
+ "loops": 1,
"rows": 12,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -3324,6 +3421,7 @@ EXPLAIN
"table": {
"table_name": "t2",
"access_type": "ALL",
+ "loops": 1,
"rows": 12,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -3432,6 +3530,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 16,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -3447,6 +3546,7 @@ EXPLAIN
"key_length": "12",
"used_key_parts": ["e", "MAX(d_tab.f)", "max_g"],
"ref": ["test.t1.a", "test.t1.b", "test.t1.c"],
+ "loops": 16,
"rows": 1,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -3461,6 +3561,7 @@ EXPLAIN
"table": {
"table_name": "<derived3>",
"access_type": "ALL",
+ "loops": 1,
"rows": 12,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -3478,6 +3579,7 @@ EXPLAIN
"table": {
"table_name": "t2",
"access_type": "ALL",
+ "loops": 1,
"rows": 12,
"cost": "COST_REPLACED",
"filtered": 100
@@ -3604,6 +3706,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 16,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -3619,6 +3722,7 @@ EXPLAIN
"key_length": "12",
"used_key_parts": ["e", "MAX(d_tab.f)", "max_g"],
"ref": ["test.t1.a", "test.t1.b", "test.t1.c"],
+ "loops": 16,
"rows": 1,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -3633,6 +3737,7 @@ EXPLAIN
"table": {
"table_name": "<derived3>",
"access_type": "ALL",
+ "loops": 1,
"rows": 12,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -3650,6 +3755,7 @@ EXPLAIN
"table": {
"table_name": "t2",
"access_type": "ALL",
+ "loops": 1,
"rows": 12,
"cost": "COST_REPLACED",
"filtered": 100
@@ -3777,6 +3883,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 16,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -3792,6 +3899,7 @@ EXPLAIN
"key_length": "12",
"used_key_parts": ["e", "MAX(d_tab.f)", "max_g"],
"ref": ["test.t1.a", "test.t1.b", "test.t1.c"],
+ "loops": 16,
"rows": 1,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -3806,6 +3914,7 @@ EXPLAIN
"table": {
"table_name": "<derived3>",
"access_type": "ALL",
+ "loops": 1,
"rows": 12,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -3823,6 +3932,7 @@ EXPLAIN
"table": {
"table_name": "t2",
"access_type": "ALL",
+ "loops": 1,
"rows": 12,
"cost": "COST_REPLACED",
"filtered": 100
@@ -3932,6 +4042,7 @@ EXPLAIN
"table": {
"table_name": "t3",
"access_type": "ALL",
+ "loops": 1,
"rows": 8,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -3947,6 +4058,7 @@ EXPLAIN
"key_length": "5",
"used_key_parts": ["a"],
"ref": ["test.t3.x"],
+ "loops": 8,
"rows": 2,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -3964,6 +4076,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 16,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -3979,6 +4092,7 @@ EXPLAIN
"key_length": "12",
"used_key_parts": ["e", "f", "MAX(t2.g)"],
"ref": ["test.t1.a", "test.t1.b", "test.t1.c"],
+ "loops": 16,
"rows": 1,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -3994,6 +4108,7 @@ EXPLAIN
"table": {
"table_name": "t2",
"access_type": "ALL",
+ "loops": 1,
"rows": 12,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -4125,6 +4240,7 @@ EXPLAIN
"table": {
"table_name": "t3",
"access_type": "ALL",
+ "loops": 1,
"rows": 8,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -4140,6 +4256,7 @@ EXPLAIN
"key_length": "5",
"used_key_parts": ["a"],
"ref": ["test.t3.x"],
+ "loops": 8,
"rows": 2,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -4157,6 +4274,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 16,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -4172,6 +4290,7 @@ EXPLAIN
"key_length": "12",
"used_key_parts": ["e", "f", "MAX(t2.g)"],
"ref": ["test.t1.a", "test.t1.b", "test.t1.c"],
+ "loops": 16,
"rows": 1,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -4187,6 +4306,7 @@ EXPLAIN
"table": {
"table_name": "t2",
"access_type": "ALL",
+ "loops": 1,
"rows": 12,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -4271,6 +4391,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 16,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -4286,6 +4407,7 @@ EXPLAIN
"key_length": "8",
"used_key_parts": ["f", "MAX(t2.g) OVER (PARTITION BY t2.f)"],
"ref": ["test.t1.b", "test.t1.c"],
+ "loops": 16,
"rows": 1,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -4308,6 +4430,7 @@ EXPLAIN
"table": {
"table_name": "t2",
"access_type": "ALL",
+ "loops": 1,
"rows": 12,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -4380,6 +4503,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 16,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -4398,6 +4522,7 @@ EXPLAIN
"CAST(SUM(t2.g) OVER (PARTITION BY t2.f) AS INT)"
],
"ref": ["test.t1.b", "test.t1.c"],
+ "loops": 16,
"rows": 1,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -4421,6 +4546,7 @@ EXPLAIN
"table": {
"table_name": "t2",
"access_type": "ALL",
+ "loops": 1,
"rows": 12,
"cost": "COST_REPLACED",
"filtered": 100,
diff --git a/mysql-test/main/innodb_ext_key,off.rdiff b/mysql-test/main/innodb_ext_key,off.rdiff
index d89161d1c51..8c702e82bb1 100644
--- a/mysql-test/main/innodb_ext_key,off.rdiff
+++ b/mysql-test/main/innodb_ext_key,off.rdiff
@@ -265,7 +265,7 @@
drop table t0,t1,t2;
#
# MDEV-11196: Error:Run-Time Check Failure #2 - Stack around the variable 'key_buff'
-@@ -770,11 +770,12 @@
+@@ -770,12 +770,13 @@
{
"table": {
"table_name": "t1",
@@ -278,10 +278,11 @@
+ "key_length": "3066",
+ "used_key_parts": ["f2"],
+ "ref": ["const"],
+ "loops": 1,
"rows": 1,
"cost": "COST_REPLACED",
"filtered": 100,
-@@ -809,8 +810,8 @@
+@@ -809,9 +810,9 @@
"access_type": "range",
"possible_keys": ["k1"],
"key": "k1",
@@ -289,6 +290,7 @@
- "used_key_parts": ["pk1", "f2", "pk2"],
+ "key_length": "3007",
+ "used_key_parts": ["pk1", "f2"],
+ "loops": 1,
"rows": 1,
"cost": "COST_REPLACED",
"filtered": 100,
diff --git a/mysql-test/main/innodb_ext_key.result b/mysql-test/main/innodb_ext_key.result
index 243717353a3..5a5704a8837 100644
--- a/mysql-test/main/innodb_ext_key.result
+++ b/mysql-test/main/innodb_ext_key.result
@@ -775,6 +775,7 @@ EXPLAIN
"key": "f2",
"key_length": "3070",
"used_key_parts": ["f2", "pk1"],
+ "loops": 1,
"rows": 1,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -811,6 +812,7 @@ EXPLAIN
"key": "k1",
"key_length": "3011",
"used_key_parts": ["pk1", "f2", "pk2"],
+ "loops": 1,
"rows": 1,
"cost": "COST_REPLACED",
"filtered": 100,
diff --git a/mysql-test/main/intersect.result b/mysql-test/main/intersect.result
index 614fbf2951e..83a607f4e45 100644
--- a/mysql-test/main/intersect.result
+++ b/mysql-test/main/intersect.result
@@ -57,6 +57,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 3,
"cost": "COST_REPLACED",
"filtered": 100
@@ -75,6 +76,7 @@ EXPLAIN
"table": {
"table_name": "t2",
"access_type": "ALL",
+ "loops": 1,
"rows": 3,
"cost": "COST_REPLACED",
"filtered": 100
@@ -93,6 +95,7 @@ EXPLAIN
"table": {
"table_name": "t3",
"access_type": "ALL",
+ "loops": 1,
"rows": 3,
"cost": "COST_REPLACED",
"filtered": 100
@@ -129,6 +132,7 @@ ANALYZE
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"r_loops": 1,
"rows": 3,
"r_rows": 3,
@@ -154,6 +158,7 @@ ANALYZE
"table": {
"table_name": "t2",
"access_type": "ALL",
+ "loops": 1,
"r_loops": 1,
"rows": 3,
"r_rows": 3,
@@ -179,6 +184,7 @@ ANALYZE
"table": {
"table_name": "t3",
"access_type": "ALL",
+ "loops": 1,
"r_loops": 1,
"rows": 3,
"r_rows": 3,
@@ -212,6 +218,7 @@ ANALYZE
"table": {
"table_name": "<derived2>",
"access_type": "ALL",
+ "loops": 1,
"r_loops": 1,
"rows": 3,
"r_rows": 1,
@@ -239,6 +246,7 @@ ANALYZE
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"r_loops": 1,
"rows": 3,
"r_rows": 3,
@@ -264,6 +272,7 @@ ANALYZE
"table": {
"table_name": "t2",
"access_type": "ALL",
+ "loops": 1,
"r_loops": 1,
"rows": 3,
"r_rows": 3,
@@ -289,6 +298,7 @@ ANALYZE
"table": {
"table_name": "t3",
"access_type": "ALL",
+ "loops": 1,
"r_loops": 1,
"rows": 3,
"r_rows": 3,
@@ -372,6 +382,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 3,
"cost": "COST_REPLACED",
"filtered": 100
@@ -390,6 +401,7 @@ EXPLAIN
"table": {
"table_name": "t2",
"access_type": "ALL",
+ "loops": 1,
"rows": 3,
"cost": "COST_REPLACED",
"filtered": 100
@@ -400,6 +412,7 @@ EXPLAIN
"table": {
"table_name": "t3",
"access_type": "ALL",
+ "loops": 3,
"rows": 3,
"cost": "COST_REPLACED",
"filtered": 100
@@ -440,6 +453,7 @@ ANALYZE
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"r_loops": 1,
"rows": 3,
"r_rows": 3,
@@ -465,6 +479,7 @@ ANALYZE
"table": {
"table_name": "t2",
"access_type": "ALL",
+ "loops": 1,
"r_loops": 1,
"rows": 3,
"r_rows": 3,
@@ -480,6 +495,7 @@ ANALYZE
"table": {
"table_name": "t3",
"access_type": "ALL",
+ "loops": 3,
"r_loops": 1,
"rows": 3,
"r_rows": 3,
@@ -519,6 +535,7 @@ ANALYZE
"table": {
"table_name": "<derived2>",
"access_type": "ALL",
+ "loops": 1,
"r_loops": 1,
"rows": 3,
"r_rows": 1,
@@ -546,6 +563,7 @@ ANALYZE
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"r_loops": 1,
"rows": 3,
"r_rows": 3,
@@ -571,6 +589,7 @@ ANALYZE
"table": {
"table_name": "t2",
"access_type": "ALL",
+ "loops": 1,
"r_loops": 1,
"rows": 3,
"r_rows": 3,
@@ -586,6 +605,7 @@ ANALYZE
"table": {
"table_name": "t3",
"access_type": "ALL",
+ "loops": 3,
"r_loops": 1,
"rows": 3,
"r_rows": 3,
diff --git a/mysql-test/main/intersect_all.result b/mysql-test/main/intersect_all.result
index 7b5bc2c2b95..8f826a193aa 100644
--- a/mysql-test/main/intersect_all.result
+++ b/mysql-test/main/intersect_all.result
@@ -69,6 +69,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 4,
"cost": "COST_REPLACED",
"filtered": 100
@@ -87,6 +88,7 @@ EXPLAIN
"table": {
"table_name": "t2",
"access_type": "ALL",
+ "loops": 1,
"rows": 4,
"cost": "COST_REPLACED",
"filtered": 100
@@ -105,6 +107,7 @@ EXPLAIN
"table": {
"table_name": "t3",
"access_type": "ALL",
+ "loops": 1,
"rows": 4,
"cost": "COST_REPLACED",
"filtered": 100
@@ -141,6 +144,7 @@ ANALYZE
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"r_loops": 1,
"rows": 4,
"r_rows": 4,
@@ -166,6 +170,7 @@ ANALYZE
"table": {
"table_name": "t2",
"access_type": "ALL",
+ "loops": 1,
"r_loops": 1,
"rows": 4,
"r_rows": 4,
@@ -191,6 +196,7 @@ ANALYZE
"table": {
"table_name": "t3",
"access_type": "ALL",
+ "loops": 1,
"r_loops": 1,
"rows": 4,
"r_rows": 4,
@@ -224,6 +230,7 @@ ANALYZE
"table": {
"table_name": "<derived2>",
"access_type": "ALL",
+ "loops": 1,
"r_loops": 1,
"rows": 4,
"r_rows": 2,
@@ -251,6 +258,7 @@ ANALYZE
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"r_loops": 1,
"rows": 4,
"r_rows": 4,
@@ -276,6 +284,7 @@ ANALYZE
"table": {
"table_name": "t2",
"access_type": "ALL",
+ "loops": 1,
"r_loops": 1,
"rows": 4,
"r_rows": 4,
@@ -301,6 +310,7 @@ ANALYZE
"table": {
"table_name": "t3",
"access_type": "ALL",
+ "loops": 1,
"r_loops": 1,
"rows": 4,
"r_rows": 4,
@@ -403,6 +413,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 6,
"cost": "COST_REPLACED",
"filtered": 100
@@ -421,6 +432,7 @@ EXPLAIN
"table": {
"table_name": "t3",
"access_type": "ALL",
+ "loops": 1,
"rows": 5,
"cost": "COST_REPLACED",
"filtered": 100
@@ -431,6 +443,7 @@ EXPLAIN
"table": {
"table_name": "t2",
"access_type": "ALL",
+ "loops": 5,
"rows": 7,
"cost": "COST_REPLACED",
"filtered": 100
@@ -471,6 +484,7 @@ ANALYZE
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"r_loops": 1,
"rows": 6,
"r_rows": 6,
@@ -496,6 +510,7 @@ ANALYZE
"table": {
"table_name": "t3",
"access_type": "ALL",
+ "loops": 1,
"r_loops": 1,
"rows": 5,
"r_rows": 5,
@@ -511,6 +526,7 @@ ANALYZE
"table": {
"table_name": "t2",
"access_type": "ALL",
+ "loops": 5,
"r_loops": 1,
"rows": 7,
"r_rows": 7,
@@ -550,6 +566,7 @@ ANALYZE
"table": {
"table_name": "<derived2>",
"access_type": "ALL",
+ "loops": 1,
"r_loops": 1,
"rows": 6,
"r_rows": 3,
@@ -577,6 +594,7 @@ ANALYZE
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"r_loops": 1,
"rows": 6,
"r_rows": 6,
@@ -602,6 +620,7 @@ ANALYZE
"table": {
"table_name": "t3",
"access_type": "ALL",
+ "loops": 1,
"r_loops": 1,
"rows": 5,
"r_rows": 5,
@@ -617,6 +636,7 @@ ANALYZE
"table": {
"table_name": "t2",
"access_type": "ALL",
+ "loops": 5,
"r_loops": 1,
"rows": 7,
"r_rows": 7,
diff --git a/mysql-test/main/join_cache.result b/mysql-test/main/join_cache.result
index f5baec125e8..b5ed58e4382 100644
--- a/mysql-test/main/join_cache.result
+++ b/mysql-test/main/join_cache.result
@@ -6264,6 +6264,7 @@ EXPLAIN
"key": "PRIMARY",
"key_length": "4",
"used_key_parts": ["a"],
+ "loops": 1,
"rows": 10,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -6280,6 +6281,7 @@ EXPLAIN
"key": "kp1",
"key_length": "10",
"used_key_parts": ["kp1", "kp2"],
+ "loops": 10,
"rows": 836,
"cost": "COST_REPLACED",
"filtered": 9.090909004,
diff --git a/mysql-test/main/opt_trace.result b/mysql-test/main/opt_trace.result
index 5498271597c..23db7732e69 100644
--- a/mysql-test/main/opt_trace.result
+++ b/mysql-test/main/opt_trace.result
@@ -10703,6 +10703,7 @@ EXPLAIN
"key": "start_date",
"key_length": "8",
"used_key_parts": ["start_date", "end_date"],
+ "loops": 1,
"rows": 1000,
"cost": 1.235599899,
"filtered": 100,
@@ -12382,6 +12383,7 @@ EXPLAIN
"table": {
"table_name": "three",
"access_type": "ALL",
+ "loops": 1,
"rows": 3,
"cost": 0.010504815,
"filtered": 100,
@@ -12405,6 +12407,7 @@ EXPLAIN
"rows": 4312,
"selectivity_pct": 43.12
},
+ "loops": 3,
"rows": 1000,
"cost": 2.292585745,
"filtered": 43.11999893,
@@ -12426,6 +12429,7 @@ EXPLAIN
"table": {
"table_name": "three",
"access_type": "ALL",
+ "loops": 1,
"rows": 3,
"cost": 0.010504815,
"filtered": 100
@@ -12437,6 +12441,7 @@ EXPLAIN
"table_name": "t1",
"access_type": "ALL",
"possible_keys": ["a", "b"],
+ "loops": 3,
"rows": 10000,
"cost": 1.701731924,
"filtered": 4.307688236,
diff --git a/mysql-test/main/opt_trace_ucs2.result b/mysql-test/main/opt_trace_ucs2.result
index 63f7cf4652e..ff63f976a36 100644
--- a/mysql-test/main/opt_trace_ucs2.result
+++ b/mysql-test/main/opt_trace_ucs2.result
@@ -17,6 +17,7 @@ EXPLAIN
"key": "col1",
"key_length": "21",
"used_key_parts": ["col1"],
+ "loops": 1,
"rows": 2,
"cost": "COST_REPLACED",
"filtered": 100,
diff --git a/mysql-test/main/order_by.result b/mysql-test/main/order_by.result
index f9c0d59e66a..db7bb521c10 100644
--- a/mysql-test/main/order_by.result
+++ b/mysql-test/main/order_by.result
@@ -1587,6 +1587,7 @@ ANALYZE
"key_length": "10",
"used_key_parts": ["a", "c"],
"ref": ["const", "const"],
+ "loops": 1,
"r_loops": 1,
"rows": 2,
"r_rows": 1,
@@ -3475,6 +3476,7 @@ ANALYZE
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"r_loops": 1,
"rows": 100,
"r_rows": 100,
@@ -3826,6 +3828,7 @@ ANALYZE
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"r_loops": 1,
"rows": 100,
"r_rows": 100,
@@ -3994,6 +3997,7 @@ ANALYZE
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"r_loops": 1,
"rows": 5,
"r_rows": 5,
@@ -4045,6 +4049,7 @@ ANALYZE
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"r_loops": 1,
"rows": 6,
"r_rows": 6,
@@ -4102,6 +4107,7 @@ ANALYZE
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"r_loops": 1,
"rows": 6,
"r_rows": 6,
@@ -4173,6 +4179,7 @@ ANALYZE
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"r_loops": 1,
"rows": 10,
"r_rows": 10,
@@ -4347,6 +4354,7 @@ ANALYZE
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"r_loops": 1,
"rows": 50,
"r_rows": 50,
@@ -4382,6 +4390,7 @@ ANALYZE
"table": {
"table_name": "t2",
"access_type": "ALL",
+ "loops": 1,
"r_loops": 50,
"rows": 50,
"r_rows": 50,
@@ -4494,6 +4503,7 @@ EXPLAIN
"key": "PRIMARY",
"key_length": "4",
"used_key_parts": ["a"],
+ "loops": 1,
"rows": 10,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -4520,6 +4530,7 @@ EXPLAIN
"table": {
"table_name": "t2",
"access_type": "ALL",
+ "loops": 1,
"rows": 97,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -4568,6 +4579,7 @@ EXPLAIN
"table_name": "t1",
"access_type": "ALL",
"possible_keys": ["PRIMARY"],
+ "loops": 1,
"rows": 10,
"cost": "COST_REPLACED",
"filtered": 100
@@ -4595,6 +4607,7 @@ EXPLAIN
"table": {
"table_name": "t2",
"access_type": "ALL",
+ "loops": 1,
"rows": 97,
"cost": "COST_REPLACED",
"filtered": 100,
diff --git a/mysql-test/main/order_by_pack_big.result b/mysql-test/main/order_by_pack_big.result
index adc7fc807a0..09b4b729de1 100644
--- a/mysql-test/main/order_by_pack_big.result
+++ b/mysql-test/main/order_by_pack_big.result
@@ -112,6 +112,7 @@ ANALYZE
"table": {
"table_name": "t3",
"access_type": "ALL",
+ "loops": 1,
"r_loops": 1,
"rows": 10000,
"r_rows": 10000,
@@ -279,6 +280,7 @@ ANALYZE
"table": {
"table_name": "t3",
"access_type": "ALL",
+ "loops": 1,
"r_loops": 1,
"rows": 10000,
"r_rows": 10000,
@@ -442,6 +444,7 @@ ANALYZE
"table": {
"table_name": "t3",
"access_type": "ALL",
+ "loops": 1,
"r_loops": 1,
"rows": 10000,
"r_rows": 10000,
@@ -500,6 +503,7 @@ ANALYZE
"table": {
"table_name": "t3",
"access_type": "ALL",
+ "loops": 1,
"r_loops": 1,
"rows": 10000,
"r_rows": 10000,
diff --git a/mysql-test/main/range.result b/mysql-test/main/range.result
index c1caf85fab0..d735f5e1175 100644
--- a/mysql-test/main/range.result
+++ b/mysql-test/main/range.result
@@ -2434,6 +2434,7 @@ EXPLAIN
"key": "idx",
"key_length": "10",
"used_key_parts": ["a", "b"],
+ "loops": 1,
"rows": 6,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -2500,6 +2501,7 @@ EXPLAIN
"key": "idx",
"key_length": "5",
"used_key_parts": ["a"],
+ "loops": 1,
"rows": 5,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -2532,6 +2534,7 @@ EXPLAIN
"key": "idx",
"key_length": "5",
"used_key_parts": ["a"],
+ "loops": 1,
"rows": 5,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -2586,6 +2589,7 @@ EXPLAIN
"rows": 12,
"selectivity_pct": 60
},
+ "loops": 1,
"rows": 3,
"cost": "COST_REPLACED",
"filtered": 60,
@@ -2602,6 +2606,7 @@ EXPLAIN
"key_length": "5",
"used_key_parts": ["a"],
"ref": ["test.t2.d"],
+ "loops": 1.8,
"rows": 8,
"cost": "COST_REPLACED",
"filtered": 100
@@ -2675,6 +2680,7 @@ EXPLAIN
"rows": 15,
"selectivity_pct": 14.42307692
},
+ "loops": 1,
"rows": 8,
"cost": "COST_REPLACED",
"filtered": 14.42307663,
@@ -2691,6 +2697,7 @@ EXPLAIN
"key_length": "5",
"used_key_parts": ["a"],
"ref": ["test.t2.d"],
+ "loops": 1.153846154,
"rows": 8,
"cost": "COST_REPLACED",
"filtered": 73.17073059
@@ -2789,6 +2796,7 @@ EXPLAIN
"rows": 7,
"selectivity_pct": 6.730769231
},
+ "loops": 1,
"rows": 7,
"cost": "COST_REPLACED",
"filtered": 6.730769157,
@@ -2805,6 +2813,7 @@ EXPLAIN
"key_length": "5",
"used_key_parts": ["a"],
"ref": ["test.t2.d"],
+ "loops": 0.471153846,
"rows": 11,
"cost": "COST_REPLACED",
"filtered": 100
@@ -2848,6 +2857,7 @@ EXPLAIN
"key": "idx3",
"key_length": "10",
"used_key_parts": ["d", "e"],
+ "loops": 1,
"rows": 5,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -2864,6 +2874,7 @@ EXPLAIN
"key_length": "5",
"used_key_parts": ["a"],
"ref": ["test.t2.d"],
+ "loops": 5,
"rows": 11,
"cost": "COST_REPLACED",
"filtered": 100
@@ -2906,6 +2917,7 @@ EXPLAIN
"key": "idx",
"key_length": "5",
"used_key_parts": ["a"],
+ "loops": 1,
"rows": 15,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -2921,6 +2933,7 @@ EXPLAIN
"key_length": "5",
"used_key_parts": ["d"],
"ref": ["test.t1.a"],
+ "loops": 15,
"rows": 3,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -2969,6 +2982,7 @@ EXPLAIN
"table_name": "t1",
"access_type": "ALL",
"possible_keys": ["idx"],
+ "loops": 1,
"rows": 144,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -2984,6 +2998,7 @@ EXPLAIN
"key_length": "5",
"used_key_parts": ["d"],
"ref": ["test.t1.a"],
+ "loops": 144,
"rows": 3,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -3029,6 +3044,7 @@ EXPLAIN
"key": "idx",
"key_length": "5",
"used_key_parts": ["a"],
+ "loops": 1,
"rows": 12,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -3045,6 +3061,7 @@ EXPLAIN
"key_length": "5",
"used_key_parts": ["d"],
"ref": ["test.t1.a"],
+ "loops": 12,
"rows": 3,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -3128,6 +3145,7 @@ EXPLAIN
"key": "idx",
"key_length": "5",
"used_key_parts": ["a"],
+ "loops": 1,
"rows": 12,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -3144,6 +3162,7 @@ EXPLAIN
"key_length": "5",
"used_key_parts": ["d"],
"ref": ["test.t1.a"],
+ "loops": 12,
"rows": 3,
"cost": "COST_REPLACED",
"filtered": 100,
diff --git a/mysql-test/main/range_mrr_icp.result b/mysql-test/main/range_mrr_icp.result
index 5c746efb8f3..b6db00842ea 100644
--- a/mysql-test/main/range_mrr_icp.result
+++ b/mysql-test/main/range_mrr_icp.result
@@ -2437,6 +2437,7 @@ EXPLAIN
"key": "idx",
"key_length": "10",
"used_key_parts": ["a", "b"],
+ "loops": 1,
"rows": 6,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -2504,6 +2505,7 @@ EXPLAIN
"key": "idx",
"key_length": "5",
"used_key_parts": ["a"],
+ "loops": 1,
"rows": 5,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -2537,6 +2539,7 @@ EXPLAIN
"key": "idx",
"key_length": "5",
"used_key_parts": ["a"],
+ "loops": 1,
"rows": 5,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -2584,6 +2587,7 @@ EXPLAIN
"key": "idx1",
"key_length": "5",
"used_key_parts": ["d"],
+ "loops": 1,
"rows": 3,
"cost": "COST_REPLACED",
"filtered": 60,
@@ -2601,6 +2605,7 @@ EXPLAIN
"key_length": "5",
"used_key_parts": ["a"],
"ref": ["test.t2.d"],
+ "loops": 1.8,
"rows": 8,
"cost": "COST_REPLACED",
"filtered": 100
@@ -2666,6 +2671,7 @@ EXPLAIN
"key": "idx1",
"key_length": "5",
"used_key_parts": ["d"],
+ "loops": 1,
"rows": 8,
"cost": "COST_REPLACED",
"filtered": 14.42307663,
@@ -2683,6 +2689,7 @@ EXPLAIN
"key_length": "5",
"used_key_parts": ["a"],
"ref": ["test.t2.d"],
+ "loops": 1.153846154,
"rows": 8,
"cost": "COST_REPLACED",
"filtered": 73.17073059
@@ -2773,6 +2780,7 @@ EXPLAIN
"key": "idx1",
"key_length": "5",
"used_key_parts": ["d"],
+ "loops": 1,
"rows": 7,
"cost": "COST_REPLACED",
"filtered": 6.730769157,
@@ -2790,6 +2798,7 @@ EXPLAIN
"key_length": "5",
"used_key_parts": ["a"],
"ref": ["test.t2.d"],
+ "loops": 0.471153846,
"rows": 11,
"cost": "COST_REPLACED",
"filtered": 100
@@ -2833,6 +2842,7 @@ EXPLAIN
"key": "idx3",
"key_length": "10",
"used_key_parts": ["d", "e"],
+ "loops": 1,
"rows": 5,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -2850,6 +2860,7 @@ EXPLAIN
"key_length": "5",
"used_key_parts": ["a"],
"ref": ["test.t2.d"],
+ "loops": 5,
"rows": 11,
"cost": "COST_REPLACED",
"filtered": 100
@@ -2892,6 +2903,7 @@ EXPLAIN
"key": "idx",
"key_length": "5",
"used_key_parts": ["a"],
+ "loops": 1,
"rows": 15,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -2908,6 +2920,7 @@ EXPLAIN
"key_length": "5",
"used_key_parts": ["d"],
"ref": ["test.t1.a"],
+ "loops": 15,
"rows": 3,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -2956,6 +2969,7 @@ EXPLAIN
"table_name": "t1",
"access_type": "ALL",
"possible_keys": ["idx"],
+ "loops": 1,
"rows": 144,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -2971,6 +2985,7 @@ EXPLAIN
"key_length": "5",
"used_key_parts": ["d"],
"ref": ["test.t1.a"],
+ "loops": 144,
"rows": 3,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -3016,6 +3031,7 @@ EXPLAIN
"key": "idx",
"key_length": "5",
"used_key_parts": ["a"],
+ "loops": 1,
"rows": 12,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -3033,6 +3049,7 @@ EXPLAIN
"key_length": "5",
"used_key_parts": ["d"],
"ref": ["test.t1.a"],
+ "loops": 12,
"rows": 3,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -3116,6 +3133,7 @@ EXPLAIN
"key": "idx",
"key_length": "5",
"used_key_parts": ["a"],
+ "loops": 1,
"rows": 12,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -3133,6 +3151,7 @@ EXPLAIN
"key_length": "5",
"used_key_parts": ["d"],
"ref": ["test.t1.a"],
+ "loops": 12,
"rows": 3,
"cost": "COST_REPLACED",
"filtered": 100,
diff --git a/mysql-test/main/rowid_filter.result b/mysql-test/main/rowid_filter.result
index 8765b72d281..aceaf0f98ab 100644
--- a/mysql-test/main/rowid_filter.result
+++ b/mysql-test/main/rowid_filter.result
@@ -95,6 +95,7 @@ EXPLAIN
"rows": 702,
"selectivity_pct": 11.69025812
},
+ "loops": 1,
"rows": 509,
"cost": "COST_REPLACED",
"filtered": 11.69025803,
@@ -145,6 +146,7 @@ ANALYZE
"r_buffer_size": "REPLACED",
"r_filling_time_ms": "REPLACED"
},
+ "loops": 1,
"r_loops": 1,
"rows": 509,
"r_rows": 60,
@@ -246,6 +248,7 @@ EXPLAIN
"key": "i_l_shipdate",
"key_length": "4",
"used_key_parts": ["l_shipDATE"],
+ "loops": 1,
"rows": 509,
"cost": "COST_REPLACED",
"filtered": 11.69025803,
@@ -283,6 +286,7 @@ ANALYZE
"key": "i_l_shipdate",
"key_length": "4",
"used_key_parts": ["l_shipDATE"],
+ "loops": 1,
"r_loops": 1,
"rows": 509,
"r_rows": 510,
@@ -387,6 +391,7 @@ EXPLAIN
"key": "i_o_totalprice",
"key_length": "9",
"used_key_parts": ["o_totalprice"],
+ "loops": 1,
"rows": 69,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -415,6 +420,7 @@ EXPLAIN
"rows": 98,
"selectivity_pct": 1.631973356
},
+ "loops": 69,
"rows": 4,
"cost": "COST_REPLACED",
"filtered": 1.631973386,
@@ -454,6 +460,7 @@ ANALYZE
"key": "i_o_totalprice",
"key_length": "9",
"used_key_parts": ["o_totalprice"],
+ "loops": 1,
"r_loops": 1,
"rows": 69,
"r_rows": 71,
@@ -492,6 +499,7 @@ ANALYZE
"r_buffer_size": "REPLACED",
"r_filling_time_ms": "REPLACED"
},
+ "loops": 69,
"r_loops": 71,
"rows": 4,
"r_rows": 0.154929577,
@@ -552,6 +560,7 @@ EXPLAIN
"key": "i_l_shipdate",
"key_length": "4",
"used_key_parts": ["l_shipDATE"],
+ "loops": 1,
"rows": 98,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -567,6 +576,7 @@ EXPLAIN
"key_length": "4",
"used_key_parts": ["o_orderkey"],
"ref": ["dbt3_s001.lineitem.l_orderkey"],
+ "loops": 98,
"rows": 1,
"cost": "COST_REPLACED",
"filtered": 4.599999905,
@@ -611,6 +621,7 @@ ANALYZE
"key": "i_l_shipdate",
"key_length": "4",
"used_key_parts": ["l_shipDATE"],
+ "loops": 1,
"r_loops": 1,
"rows": 98,
"r_rows": 98,
@@ -631,6 +642,7 @@ ANALYZE
"key_length": "4",
"used_key_parts": ["o_orderkey"],
"ref": ["dbt3_s001.lineitem.l_orderkey"],
+ "loops": 98,
"r_loops": 98,
"rows": 1,
"r_rows": 1,
@@ -702,6 +714,7 @@ EXPLAIN
"rows": 702,
"selectivity_pct": 11.69025812
},
+ "loops": 1,
"rows": 509,
"cost": "COST_REPLACED",
"filtered": 11.69025803,
@@ -726,6 +739,7 @@ EXPLAIN
"rows": 139,
"selectivity_pct": 9.266666667
},
+ "loops": 59.50341382,
"rows": 1,
"cost": "COST_REPLACED",
"filtered": 9.266666412,
@@ -786,6 +800,7 @@ ANALYZE
"r_buffer_size": "REPLACED",
"r_filling_time_ms": "REPLACED"
},
+ "loops": 1,
"r_loops": 1,
"rows": 509,
"r_rows": 60,
@@ -820,6 +835,7 @@ ANALYZE
"r_buffer_size": "REPLACED",
"r_filling_time_ms": "REPLACED"
},
+ "loops": 59.50341382,
"r_loops": 60,
"rows": 1,
"r_rows": 0.266666667,
@@ -889,6 +905,7 @@ EXPLAIN
"key": "i_l_shipdate",
"key_length": "4",
"used_key_parts": ["l_shipDATE"],
+ "loops": 1,
"rows": 509,
"cost": "COST_REPLACED",
"filtered": 11.69025803,
@@ -905,6 +922,7 @@ EXPLAIN
"key_length": "4",
"used_key_parts": ["o_orderkey"],
"ref": ["dbt3_s001.lineitem.l_orderkey"],
+ "loops": 59.50341382,
"rows": 1,
"cost": "COST_REPLACED",
"filtered": 9.266666412,
@@ -952,6 +970,7 @@ ANALYZE
"key": "i_l_shipdate",
"key_length": "4",
"used_key_parts": ["l_shipDATE"],
+ "loops": 1,
"r_loops": 1,
"rows": 509,
"r_rows": 510,
@@ -973,6 +992,7 @@ ANALYZE
"key_length": "4",
"used_key_parts": ["o_orderkey"],
"ref": ["dbt3_s001.lineitem.l_orderkey"],
+ "loops": 59.50341382,
"r_loops": 60,
"rows": 1,
"r_rows": 1,
@@ -1042,6 +1062,7 @@ EXPLAIN
"key": "i_o_totalprice",
"key_length": "9",
"used_key_parts": ["o_totalprice"],
+ "loops": 1,
"rows": 69,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -1070,6 +1091,7 @@ EXPLAIN
"rows": 509,
"selectivity_pct": 8.476269775
},
+ "loops": 69,
"rows": 4,
"cost": "COST_REPLACED",
"filtered": 8.476269722,
@@ -1109,6 +1131,7 @@ ANALYZE
"key": "i_o_totalprice",
"key_length": "9",
"used_key_parts": ["o_totalprice"],
+ "loops": 1,
"r_loops": 1,
"rows": 69,
"r_rows": 71,
@@ -1147,6 +1170,7 @@ ANALYZE
"r_buffer_size": "REPLACED",
"r_filling_time_ms": "REPLACED"
},
+ "loops": 69,
"r_loops": 71,
"rows": 4,
"r_rows": 0.521126761,
@@ -1228,6 +1252,7 @@ EXPLAIN
"key": "i_o_totalprice",
"key_length": "9",
"used_key_parts": ["o_totalprice"],
+ "loops": 1,
"rows": 69,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -1248,6 +1273,7 @@ EXPLAIN
"key_length": "4",
"used_key_parts": ["l_orderkey"],
"ref": ["dbt3_s001.orders.o_orderkey"],
+ "loops": 69,
"rows": 4,
"cost": "COST_REPLACED",
"filtered": 8.476269722,
@@ -1287,6 +1313,7 @@ ANALYZE
"key": "i_o_totalprice",
"key_length": "9",
"used_key_parts": ["o_totalprice"],
+ "loops": 1,
"r_loops": 1,
"rows": 69,
"r_rows": 71,
@@ -1312,6 +1339,7 @@ ANALYZE
"key_length": "4",
"used_key_parts": ["l_orderkey"],
"ref": ["dbt3_s001.orders.o_orderkey"],
+ "loops": 69,
"r_loops": 71,
"rows": 4,
"r_rows": 6.704225352,
@@ -1410,6 +1438,7 @@ EXPLAIN
"key": "i_l_receiptdate",
"key_length": "4",
"used_key_parts": ["l_receiptDATE"],
+ "loops": 1,
"rows": 18,
"cost": "COST_REPLACED",
"filtered": 0.566194832,
@@ -1426,6 +1455,7 @@ EXPLAIN
"key_length": "4",
"used_key_parts": ["o_orderkey"],
"ref": ["dbt3_s001.lineitem.l_orderkey"],
+ "loops": 0.101915071,
"rows": 1,
"cost": "COST_REPLACED",
"filtered": 7.466666698,
@@ -1475,6 +1505,7 @@ ANALYZE
"key": "i_l_receiptdate",
"key_length": "4",
"used_key_parts": ["l_receiptDATE"],
+ "loops": 1,
"r_loops": 1,
"rows": 18,
"r_rows": 18,
@@ -1496,6 +1527,7 @@ ANALYZE
"key_length": "4",
"used_key_parts": ["o_orderkey"],
"ref": ["dbt3_s001.lineitem.l_orderkey"],
+ "loops": 0.101915071,
"r_loops": 7,
"rows": 1,
"r_rows": 1,
@@ -1553,6 +1585,7 @@ EXPLAIN
"key": "i_l_receiptdate",
"key_length": "4",
"used_key_parts": ["l_receiptDATE"],
+ "loops": 1,
"rows": 18,
"cost": "COST_REPLACED",
"filtered": 0.566194832,
@@ -1569,6 +1602,7 @@ EXPLAIN
"key_length": "4",
"used_key_parts": ["o_orderkey"],
"ref": ["dbt3_s001.lineitem.l_orderkey"],
+ "loops": 0.101915071,
"rows": 1,
"cost": "COST_REPLACED",
"filtered": 7.466666698,
@@ -1618,6 +1652,7 @@ ANALYZE
"key": "i_l_receiptdate",
"key_length": "4",
"used_key_parts": ["l_receiptDATE"],
+ "loops": 1,
"r_loops": 1,
"rows": 18,
"r_rows": 18,
@@ -1639,6 +1674,7 @@ ANALYZE
"key_length": "4",
"used_key_parts": ["o_orderkey"],
"ref": ["dbt3_s001.lineitem.l_orderkey"],
+ "loops": 0.101915071,
"r_loops": 7,
"rows": 1,
"r_rows": 1,
@@ -1697,6 +1733,7 @@ EXPLAIN
"key": "i_o_totaldiscount",
"key_length": "9",
"used_key_parts": ["o_totaldiscount"],
+ "loops": 1,
"rows": 39,
"cost": "COST_REPLACED",
"filtered": 3.200000048,
@@ -1726,6 +1763,7 @@ EXPLAIN
"rows": 183,
"selectivity_pct": 3.04746045
},
+ "loops": 1.248,
"rows": 4,
"cost": "COST_REPLACED",
"filtered": 3.047460556,
@@ -1769,6 +1807,7 @@ ANALYZE
"key": "i_o_totaldiscount",
"key_length": "9",
"used_key_parts": ["o_totaldiscount"],
+ "loops": 1,
"r_loops": 1,
"rows": 39,
"r_rows": 41,
@@ -1808,6 +1847,7 @@ ANALYZE
"r_buffer_size": "REPLACED",
"r_filling_time_ms": "REPLACED"
},
+ "loops": 1.248,
"r_loops": 1,
"rows": 4,
"r_rows": 4,
@@ -1862,6 +1902,7 @@ EXPLAIN
"key": "i_o_totaldiscount",
"key_length": "9",
"used_key_parts": ["o_totaldiscount"],
+ "loops": 1,
"rows": 39,
"cost": "COST_REPLACED",
"filtered": 3.200000048,
@@ -1883,6 +1924,7 @@ EXPLAIN
"key_length": "4",
"used_key_parts": ["l_orderkey"],
"ref": ["dbt3_s001.orders.o_orderkey"],
+ "loops": 1.248,
"rows": 4,
"cost": "COST_REPLACED",
"filtered": 3.047460556,
@@ -1926,6 +1968,7 @@ ANALYZE
"key": "i_o_totaldiscount",
"key_length": "9",
"used_key_parts": ["o_totaldiscount"],
+ "loops": 1,
"r_loops": 1,
"rows": 39,
"r_rows": 41,
@@ -1952,6 +1995,7 @@ ANALYZE
"key_length": "4",
"used_key_parts": ["l_orderkey"],
"ref": ["dbt3_s001.orders.o_orderkey"],
+ "loops": 1.248,
"r_loops": 1,
"rows": 4,
"r_rows": 6,
@@ -2014,6 +2058,7 @@ EXPLAIN
"key": "i_o_totaldiscount",
"key_length": "9",
"used_key_parts": ["o_totaldiscount"],
+ "loops": 1,
"rows": 39,
"cost": "REPLACED",
"filtered": "REPLACED",
@@ -2035,6 +2080,7 @@ EXPLAIN
"key_length": "4",
"used_key_parts": ["l_orderkey"],
"ref": ["dbt3_s001.orders.o_orderkey"],
+ "loops": 0.760448,
"rows": 4,
"cost": "REPLACED",
"filtered": "REPLACED",
@@ -2083,6 +2129,7 @@ ANALYZE
"key": "i_o_totaldiscount",
"key_length": "9",
"used_key_parts": ["o_totaldiscount"],
+ "loops": 1,
"r_loops": 1,
"rows": 39,
"r_rows": 41,
@@ -2109,6 +2156,7 @@ ANALYZE
"key_length": "4",
"used_key_parts": ["l_orderkey"],
"ref": ["dbt3_s001.orders.o_orderkey"],
+ "loops": 0.760448,
"r_loops": 1,
"rows": 4,
"r_rows": 6,
@@ -2168,6 +2216,7 @@ EXPLAIN
"key": "i_o_totaldiscount",
"key_length": "9",
"used_key_parts": ["o_totaldiscount"],
+ "loops": 1,
"rows": 39,
"cost": "REPLACED",
"filtered": "REPLACED",
@@ -2189,6 +2238,7 @@ EXPLAIN
"key_length": "4",
"used_key_parts": ["l_orderkey"],
"ref": ["dbt3_s001.orders.o_orderkey"],
+ "loops": 0.760448,
"rows": 4,
"cost": "REPLACED",
"filtered": "REPLACED",
@@ -2237,6 +2287,7 @@ ANALYZE
"key": "i_o_totaldiscount",
"key_length": "9",
"used_key_parts": ["o_totaldiscount"],
+ "loops": 1,
"r_loops": 1,
"rows": 39,
"r_rows": 41,
@@ -2263,6 +2314,7 @@ ANALYZE
"key_length": "4",
"used_key_parts": ["l_orderkey"],
"ref": ["dbt3_s001.orders.o_orderkey"],
+ "loops": 0.760448,
"r_loops": 1,
"rows": 4,
"r_rows": 6,
diff --git a/mysql-test/main/rowid_filter_aria.result b/mysql-test/main/rowid_filter_aria.result
index 23c6d1567fd..d0db583168c 100644
--- a/mysql-test/main/rowid_filter_aria.result
+++ b/mysql-test/main/rowid_filter_aria.result
@@ -96,6 +96,7 @@ EXPLAIN
"rows": 949,
"selectivity_pct": 15.80349709
},
+ "loops": 1,
"rows": 482,
"cost": "COST_REPLACED",
"filtered": 15.80349731,
@@ -146,6 +147,7 @@ ANALYZE
"r_buffer_size": "REPLACED",
"r_filling_time_ms": "REPLACED"
},
+ "loops": 1,
"r_loops": 1,
"rows": 482,
"r_rows": 60,
@@ -247,6 +249,7 @@ EXPLAIN
"key": "i_l_shipdate",
"key_length": "4",
"used_key_parts": ["l_shipDATE"],
+ "loops": 1,
"rows": 482,
"cost": "COST_REPLACED",
"filtered": 15.80349731,
@@ -284,6 +287,7 @@ ANALYZE
"key": "i_l_shipdate",
"key_length": "4",
"used_key_parts": ["l_shipDATE"],
+ "loops": 1,
"r_loops": 1,
"rows": 482,
"r_rows": 510,
@@ -393,6 +397,7 @@ EXPLAIN
"key": "i_l_shipdate",
"key_length": "4",
"used_key_parts": ["l_shipDATE"],
+ "loops": 1,
"rows": 92,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -416,6 +421,7 @@ EXPLAIN
"rows": 106,
"selectivity_pct": 7.066666667
},
+ "loops": 92,
"rows": 1,
"cost": "COST_REPLACED",
"filtered": 7.066666603,
@@ -460,6 +466,7 @@ ANALYZE
"key": "i_l_shipdate",
"key_length": "4",
"used_key_parts": ["l_shipDATE"],
+ "loops": 1,
"r_loops": 1,
"rows": 92,
"r_rows": 98,
@@ -493,6 +500,7 @@ ANALYZE
"r_buffer_size": "REPLACED",
"r_filling_time_ms": "REPLACED"
},
+ "loops": 92,
"r_loops": 98,
"rows": 1,
"r_rows": 0.112244898,
@@ -553,6 +561,7 @@ EXPLAIN
"key": "i_l_shipdate",
"key_length": "4",
"used_key_parts": ["l_shipDATE"],
+ "loops": 1,
"rows": 92,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -568,6 +577,7 @@ EXPLAIN
"key_length": "4",
"used_key_parts": ["o_orderkey"],
"ref": ["dbt3_s001.lineitem.l_orderkey"],
+ "loops": 92,
"rows": 1,
"cost": "COST_REPLACED",
"filtered": 7.066666603,
@@ -612,6 +622,7 @@ ANALYZE
"key": "i_l_shipdate",
"key_length": "4",
"used_key_parts": ["l_shipDATE"],
+ "loops": 1,
"r_loops": 1,
"rows": 92,
"r_rows": 98,
@@ -632,6 +643,7 @@ ANALYZE
"key_length": "4",
"used_key_parts": ["o_orderkey"],
"ref": ["dbt3_s001.lineitem.l_orderkey"],
+ "loops": 92,
"r_loops": 98,
"rows": 1,
"r_rows": 1,
@@ -703,6 +715,7 @@ EXPLAIN
"rows": 949,
"selectivity_pct": 15.80349709
},
+ "loops": 1,
"rows": 482,
"cost": "COST_REPLACED",
"filtered": 15.80349731,
@@ -727,6 +740,7 @@ EXPLAIN
"rows": 216,
"selectivity_pct": 14.4
},
+ "loops": 76.17285595,
"rows": 1,
"cost": "COST_REPLACED",
"filtered": 14.39999962,
@@ -787,6 +801,7 @@ ANALYZE
"r_buffer_size": "REPLACED",
"r_filling_time_ms": "REPLACED"
},
+ "loops": 1,
"r_loops": 1,
"rows": 482,
"r_rows": 60,
@@ -821,6 +836,7 @@ ANALYZE
"r_buffer_size": "REPLACED",
"r_filling_time_ms": "REPLACED"
},
+ "loops": 76.17285595,
"r_loops": 60,
"rows": 1,
"r_rows": 0.266666667,
@@ -890,6 +906,7 @@ EXPLAIN
"key": "i_l_shipdate",
"key_length": "4",
"used_key_parts": ["l_shipDATE"],
+ "loops": 1,
"rows": 482,
"cost": "COST_REPLACED",
"filtered": 15.80349731,
@@ -906,6 +923,7 @@ EXPLAIN
"key_length": "4",
"used_key_parts": ["o_orderkey"],
"ref": ["dbt3_s001.lineitem.l_orderkey"],
+ "loops": 76.17285595,
"rows": 1,
"cost": "COST_REPLACED",
"filtered": 14.39999962,
@@ -953,6 +971,7 @@ ANALYZE
"key": "i_l_shipdate",
"key_length": "4",
"used_key_parts": ["l_shipDATE"],
+ "loops": 1,
"r_loops": 1,
"rows": 482,
"r_rows": 510,
@@ -974,6 +993,7 @@ ANALYZE
"key_length": "4",
"used_key_parts": ["o_orderkey"],
"ref": ["dbt3_s001.lineitem.l_orderkey"],
+ "loops": 76.17285595,
"r_loops": 60,
"rows": 1,
"r_rows": 1,
@@ -1043,6 +1063,7 @@ EXPLAIN
"key": "i_o_totalprice",
"key_length": "9",
"used_key_parts": ["o_totalprice"],
+ "loops": 1,
"rows": 106,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -1071,6 +1092,7 @@ EXPLAIN
"rows": 482,
"selectivity_pct": 8.026644463
},
+ "loops": 106,
"rows": 4,
"cost": "COST_REPLACED",
"filtered": 8.026644707,
@@ -1110,6 +1132,7 @@ ANALYZE
"key": "i_o_totalprice",
"key_length": "9",
"used_key_parts": ["o_totalprice"],
+ "loops": 1,
"r_loops": 1,
"rows": 106,
"r_rows": 71,
@@ -1148,6 +1171,7 @@ ANALYZE
"r_buffer_size": "REPLACED",
"r_filling_time_ms": "REPLACED"
},
+ "loops": 106,
"r_loops": 71,
"rows": 4,
"r_rows": 0.521126761,
@@ -1229,6 +1253,7 @@ EXPLAIN
"key": "i_o_totalprice",
"key_length": "9",
"used_key_parts": ["o_totalprice"],
+ "loops": 1,
"rows": 106,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -1249,6 +1274,7 @@ EXPLAIN
"key_length": "4",
"used_key_parts": ["l_orderkey"],
"ref": ["dbt3_s001.orders.o_orderkey"],
+ "loops": 106,
"rows": 4,
"cost": "COST_REPLACED",
"filtered": 8.026644707,
@@ -1288,6 +1314,7 @@ ANALYZE
"key": "i_o_totalprice",
"key_length": "9",
"used_key_parts": ["o_totalprice"],
+ "loops": 1,
"r_loops": 1,
"rows": 106,
"r_rows": 71,
@@ -1313,6 +1340,7 @@ ANALYZE
"key_length": "4",
"used_key_parts": ["l_orderkey"],
"ref": ["dbt3_s001.orders.o_orderkey"],
+ "loops": 106,
"r_loops": 71,
"rows": 4,
"r_rows": 6.704225352,
@@ -1411,6 +1439,7 @@ EXPLAIN
"key": "i_l_receiptdate",
"key_length": "4",
"used_key_parts": ["l_receiptDATE"],
+ "loops": 1,
"rows": 17,
"cost": "COST_REPLACED",
"filtered": 0.532889247,
@@ -1427,6 +1456,7 @@ EXPLAIN
"key_length": "4",
"used_key_parts": ["o_orderkey"],
"ref": ["dbt3_s001.lineitem.l_orderkey"],
+ "loops": 0.090591174,
"rows": 1,
"cost": "COST_REPLACED",
"filtered": 8.466666222,
@@ -1476,6 +1506,7 @@ ANALYZE
"key": "i_l_receiptdate",
"key_length": "4",
"used_key_parts": ["l_receiptDATE"],
+ "loops": 1,
"r_loops": 1,
"rows": 17,
"r_rows": 18,
@@ -1497,6 +1528,7 @@ ANALYZE
"key_length": "4",
"used_key_parts": ["o_orderkey"],
"ref": ["dbt3_s001.lineitem.l_orderkey"],
+ "loops": 0.090591174,
"r_loops": 7,
"rows": 1,
"r_rows": 1,
@@ -1554,6 +1586,7 @@ EXPLAIN
"key": "i_l_receiptdate",
"key_length": "4",
"used_key_parts": ["l_receiptDATE"],
+ "loops": 1,
"rows": 17,
"cost": "COST_REPLACED",
"filtered": 0.532889247,
@@ -1570,6 +1603,7 @@ EXPLAIN
"key_length": "4",
"used_key_parts": ["o_orderkey"],
"ref": ["dbt3_s001.lineitem.l_orderkey"],
+ "loops": 0.090591174,
"rows": 1,
"cost": "COST_REPLACED",
"filtered": 8.466666222,
@@ -1619,6 +1653,7 @@ ANALYZE
"key": "i_l_receiptdate",
"key_length": "4",
"used_key_parts": ["l_receiptDATE"],
+ "loops": 1,
"r_loops": 1,
"rows": 17,
"r_rows": 18,
@@ -1640,6 +1675,7 @@ ANALYZE
"key_length": "4",
"used_key_parts": ["o_orderkey"],
"ref": ["dbt3_s001.lineitem.l_orderkey"],
+ "loops": 0.090591174,
"r_loops": 7,
"rows": 1,
"r_rows": 1,
@@ -1698,6 +1734,7 @@ EXPLAIN
"key": "i_o_totaldiscount",
"key_length": "9",
"used_key_parts": ["o_totaldiscount"],
+ "loops": 1,
"rows": 61,
"cost": "COST_REPLACED",
"filtered": 5,
@@ -1727,6 +1764,7 @@ EXPLAIN
"rows": 174,
"selectivity_pct": 2.897585346
},
+ "loops": 3.05,
"rows": 4,
"cost": "COST_REPLACED",
"filtered": 2.897585392,
@@ -1770,6 +1808,7 @@ ANALYZE
"key": "i_o_totaldiscount",
"key_length": "9",
"used_key_parts": ["o_totaldiscount"],
+ "loops": 1,
"r_loops": 1,
"rows": 61,
"r_rows": 41,
@@ -1809,6 +1848,7 @@ ANALYZE
"r_buffer_size": "REPLACED",
"r_filling_time_ms": "REPLACED"
},
+ "loops": 3.05,
"r_loops": 1,
"rows": 4,
"r_rows": 4,
@@ -1863,6 +1903,7 @@ EXPLAIN
"key": "i_o_totaldiscount",
"key_length": "9",
"used_key_parts": ["o_totaldiscount"],
+ "loops": 1,
"rows": 61,
"cost": "COST_REPLACED",
"filtered": 5,
@@ -1884,6 +1925,7 @@ EXPLAIN
"key_length": "4",
"used_key_parts": ["l_orderkey"],
"ref": ["dbt3_s001.orders.o_orderkey"],
+ "loops": 3.05,
"rows": 4,
"cost": "COST_REPLACED",
"filtered": 2.897585392,
@@ -1927,6 +1969,7 @@ ANALYZE
"key": "i_o_totaldiscount",
"key_length": "9",
"used_key_parts": ["o_totaldiscount"],
+ "loops": 1,
"r_loops": 1,
"rows": 61,
"r_rows": 41,
@@ -1953,6 +1996,7 @@ ANALYZE
"key_length": "4",
"used_key_parts": ["l_orderkey"],
"ref": ["dbt3_s001.orders.o_orderkey"],
+ "loops": 3.05,
"r_loops": 1,
"rows": 4,
"r_rows": 6,
@@ -2015,6 +2059,7 @@ EXPLAIN
"key": "i_o_totaldiscount",
"key_length": "9",
"used_key_parts": ["o_totaldiscount"],
+ "loops": 1,
"rows": 61,
"cost": "REPLACED",
"filtered": "REPLACED",
@@ -2036,6 +2081,7 @@ EXPLAIN
"key_length": "4",
"used_key_parts": ["l_orderkey"],
"ref": ["dbt3_s001.orders.o_orderkey"],
+ "loops": 1.779166667,
"rows": 4,
"cost": "REPLACED",
"filtered": "REPLACED",
@@ -2084,6 +2130,7 @@ ANALYZE
"key": "i_o_totaldiscount",
"key_length": "9",
"used_key_parts": ["o_totaldiscount"],
+ "loops": 1,
"r_loops": 1,
"rows": 61,
"r_rows": 41,
@@ -2110,6 +2157,7 @@ ANALYZE
"key_length": "4",
"used_key_parts": ["l_orderkey"],
"ref": ["dbt3_s001.orders.o_orderkey"],
+ "loops": 1.779166667,
"r_loops": 1,
"rows": 4,
"r_rows": 6,
@@ -2169,6 +2217,7 @@ EXPLAIN
"key": "i_o_totaldiscount",
"key_length": "9",
"used_key_parts": ["o_totaldiscount"],
+ "loops": 1,
"rows": 61,
"cost": "REPLACED",
"filtered": "REPLACED",
@@ -2190,6 +2239,7 @@ EXPLAIN
"key_length": "4",
"used_key_parts": ["l_orderkey"],
"ref": ["dbt3_s001.orders.o_orderkey"],
+ "loops": 1.779166667,
"rows": 4,
"cost": "REPLACED",
"filtered": "REPLACED",
@@ -2238,6 +2288,7 @@ ANALYZE
"key": "i_o_totaldiscount",
"key_length": "9",
"used_key_parts": ["o_totaldiscount"],
+ "loops": 1,
"r_loops": 1,
"rows": 61,
"r_rows": 41,
@@ -2264,6 +2315,7 @@ ANALYZE
"key_length": "4",
"used_key_parts": ["l_orderkey"],
"ref": ["dbt3_s001.orders.o_orderkey"],
+ "loops": 1.779166667,
"r_loops": 1,
"rows": 4,
"r_rows": 6,
diff --git a/mysql-test/main/rowid_filter_innodb.result b/mysql-test/main/rowid_filter_innodb.result
index b3b34710888..dadd1280e5f 100644
--- a/mysql-test/main/rowid_filter_innodb.result
+++ b/mysql-test/main/rowid_filter_innodb.result
@@ -98,6 +98,7 @@ EXPLAIN
"rows": 605,
"selectivity_pct": 10.07493755
},
+ "loops": 1,
"rows": 510,
"cost": "COST_REPLACED",
"filtered": 10.07493782,
@@ -148,6 +149,7 @@ ANALYZE
"r_buffer_size": "REPLACED",
"r_filling_time_ms": "REPLACED"
},
+ "loops": 1,
"r_loops": 1,
"rows": 510,
"r_rows": 60,
@@ -249,6 +251,7 @@ EXPLAIN
"key": "i_l_shipdate",
"key_length": "4",
"used_key_parts": ["l_shipDATE"],
+ "loops": 1,
"rows": 510,
"cost": "COST_REPLACED",
"filtered": 10.07493782,
@@ -286,6 +289,7 @@ ANALYZE
"key": "i_l_shipdate",
"key_length": "4",
"used_key_parts": ["l_shipDATE"],
+ "loops": 1,
"r_loops": 1,
"rows": 510,
"r_rows": 510,
@@ -395,6 +399,7 @@ EXPLAIN
"key": "i_l_shipdate",
"key_length": "4",
"used_key_parts": ["l_shipDATE"],
+ "loops": 1,
"rows": 98,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -411,6 +416,7 @@ EXPLAIN
"key_length": "4",
"used_key_parts": ["o_orderkey"],
"ref": ["dbt3_s001.lineitem.l_orderkey"],
+ "loops": 98,
"rows": 1,
"cost": "COST_REPLACED",
"filtered": 4.733333111,
@@ -455,6 +461,7 @@ ANALYZE
"key": "i_l_shipdate",
"key_length": "4",
"used_key_parts": ["l_shipDATE"],
+ "loops": 1,
"r_loops": 1,
"rows": 98,
"r_rows": 98,
@@ -476,6 +483,7 @@ ANALYZE
"key_length": "4",
"used_key_parts": ["o_orderkey"],
"ref": ["dbt3_s001.lineitem.l_orderkey"],
+ "loops": 98,
"r_loops": 98,
"rows": 1,
"r_rows": 1,
@@ -536,6 +544,7 @@ EXPLAIN
"key": "i_l_shipdate",
"key_length": "4",
"used_key_parts": ["l_shipDATE"],
+ "loops": 1,
"rows": 98,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -552,6 +561,7 @@ EXPLAIN
"key_length": "4",
"used_key_parts": ["o_orderkey"],
"ref": ["dbt3_s001.lineitem.l_orderkey"],
+ "loops": 98,
"rows": 1,
"cost": "COST_REPLACED",
"filtered": 4.733333111,
@@ -596,6 +606,7 @@ ANALYZE
"key": "i_l_shipdate",
"key_length": "4",
"used_key_parts": ["l_shipDATE"],
+ "loops": 1,
"r_loops": 1,
"rows": 98,
"r_rows": 98,
@@ -617,6 +628,7 @@ ANALYZE
"key_length": "4",
"used_key_parts": ["o_orderkey"],
"ref": ["dbt3_s001.lineitem.l_orderkey"],
+ "loops": 98,
"r_loops": 98,
"rows": 1,
"r_rows": 1,
@@ -688,6 +700,7 @@ EXPLAIN
"rows": 605,
"selectivity_pct": 10.07493755
},
+ "loops": 1,
"rows": 510,
"cost": "COST_REPLACED",
"filtered": 10.07493782,
@@ -704,6 +717,7 @@ EXPLAIN
"key_length": "4",
"used_key_parts": ["o_orderkey"],
"ref": ["dbt3_s001.lineitem.l_orderkey"],
+ "loops": 51.38218152,
"rows": 1,
"cost": "COST_REPLACED",
"filtered": 9.600000381,
@@ -764,6 +778,7 @@ ANALYZE
"r_buffer_size": "REPLACED",
"r_filling_time_ms": "REPLACED"
},
+ "loops": 1,
"r_loops": 1,
"rows": 510,
"r_rows": 60,
@@ -785,6 +800,7 @@ ANALYZE
"key_length": "4",
"used_key_parts": ["o_orderkey"],
"ref": ["dbt3_s001.lineitem.l_orderkey"],
+ "loops": 51.38218152,
"r_loops": 60,
"rows": 1,
"r_rows": 1,
@@ -848,6 +864,7 @@ EXPLAIN
"key": "i_o_totalprice",
"key_length": "9",
"used_key_parts": ["o_totalprice"],
+ "loops": 1,
"rows": 144,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -870,6 +887,7 @@ EXPLAIN
"key_length": "4",
"used_key_parts": ["l_orderkey"],
"ref": ["dbt3_s001.orders.o_orderkey"],
+ "loops": 144,
"rows": 4,
"cost": "COST_REPLACED",
"filtered": 0.855656624,
@@ -911,6 +929,7 @@ ANALYZE
"key": "i_o_totalprice",
"key_length": "9",
"used_key_parts": ["o_totalprice"],
+ "loops": 1,
"r_loops": 1,
"rows": 144,
"r_rows": 144,
@@ -938,6 +957,7 @@ ANALYZE
"key_length": "4",
"used_key_parts": ["l_orderkey"],
"ref": ["dbt3_s001.orders.o_orderkey"],
+ "loops": 144,
"r_loops": 144,
"rows": 4,
"r_rows": 6.625,
@@ -1007,6 +1027,7 @@ EXPLAIN
"key": "i_o_totalprice",
"key_length": "9",
"used_key_parts": ["o_totalprice"],
+ "loops": 1,
"rows": 71,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -1028,6 +1049,7 @@ EXPLAIN
"key_length": "4",
"used_key_parts": ["l_orderkey"],
"ref": ["dbt3_s001.orders.o_orderkey"],
+ "loops": 71,
"rows": 4,
"cost": "COST_REPLACED",
"filtered": 8.492922783,
@@ -1067,6 +1089,7 @@ ANALYZE
"key": "i_o_totalprice",
"key_length": "9",
"used_key_parts": ["o_totalprice"],
+ "loops": 1,
"r_loops": 1,
"rows": 71,
"r_rows": 71,
@@ -1093,6 +1116,7 @@ ANALYZE
"key_length": "4",
"used_key_parts": ["l_orderkey"],
"ref": ["dbt3_s001.orders.o_orderkey"],
+ "loops": 71,
"r_loops": 71,
"rows": 4,
"r_rows": 6.704225352,
@@ -1174,6 +1198,7 @@ EXPLAIN
"key": "i_o_totalprice",
"key_length": "9",
"used_key_parts": ["o_totalprice"],
+ "loops": 1,
"rows": 71,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -1195,6 +1220,7 @@ EXPLAIN
"key_length": "4",
"used_key_parts": ["l_orderkey"],
"ref": ["dbt3_s001.orders.o_orderkey"],
+ "loops": 71,
"rows": 4,
"cost": "COST_REPLACED",
"filtered": 8.492922783,
@@ -1234,6 +1260,7 @@ ANALYZE
"key": "i_o_totalprice",
"key_length": "9",
"used_key_parts": ["o_totalprice"],
+ "loops": 1,
"r_loops": 1,
"rows": 71,
"r_rows": 71,
@@ -1260,6 +1287,7 @@ ANALYZE
"key_length": "4",
"used_key_parts": ["l_orderkey"],
"ref": ["dbt3_s001.orders.o_orderkey"],
+ "loops": 71,
"r_loops": 71,
"rows": 4,
"r_rows": 6.704225352,
@@ -1358,6 +1386,7 @@ EXPLAIN
"key": "i_l_receiptdate",
"key_length": "4",
"used_key_parts": ["l_receiptDATE"],
+ "loops": 1,
"rows": 18,
"cost": "COST_REPLACED",
"filtered": 0.566194832,
@@ -1374,6 +1403,7 @@ EXPLAIN
"key_length": "4",
"used_key_parts": ["o_orderkey"],
"ref": ["dbt3_s001.lineitem.l_orderkey"],
+ "loops": 0.101915071,
"rows": 1,
"cost": "COST_REPLACED",
"filtered": 5.666666508,
@@ -1423,6 +1453,7 @@ ANALYZE
"key": "i_l_receiptdate",
"key_length": "4",
"used_key_parts": ["l_receiptDATE"],
+ "loops": 1,
"r_loops": 1,
"rows": 18,
"r_rows": 18,
@@ -1444,6 +1475,7 @@ ANALYZE
"key_length": "4",
"used_key_parts": ["o_orderkey"],
"ref": ["dbt3_s001.lineitem.l_orderkey"],
+ "loops": 0.101915071,
"r_loops": 7,
"rows": 1,
"r_rows": 1,
@@ -1501,6 +1533,7 @@ EXPLAIN
"key": "i_l_receiptdate",
"key_length": "4",
"used_key_parts": ["l_receiptDATE"],
+ "loops": 1,
"rows": 18,
"cost": "COST_REPLACED",
"filtered": 0.566194832,
@@ -1517,6 +1550,7 @@ EXPLAIN
"key_length": "4",
"used_key_parts": ["o_orderkey"],
"ref": ["dbt3_s001.lineitem.l_orderkey"],
+ "loops": 0.101915071,
"rows": 1,
"cost": "COST_REPLACED",
"filtered": 5.666666508,
@@ -1566,6 +1600,7 @@ ANALYZE
"key": "i_l_receiptdate",
"key_length": "4",
"used_key_parts": ["l_receiptDATE"],
+ "loops": 1,
"r_loops": 1,
"rows": 18,
"r_rows": 18,
@@ -1587,6 +1622,7 @@ ANALYZE
"key_length": "4",
"used_key_parts": ["o_orderkey"],
"ref": ["dbt3_s001.lineitem.l_orderkey"],
+ "loops": 0.101915071,
"r_loops": 7,
"rows": 1,
"r_rows": 1,
@@ -1645,6 +1681,7 @@ EXPLAIN
"key": "i_o_totaldiscount",
"key_length": "9",
"used_key_parts": ["o_totaldiscount"],
+ "loops": 1,
"rows": 41,
"cost": "COST_REPLACED",
"filtered": 3.333333254,
@@ -1666,6 +1703,7 @@ EXPLAIN
"key_length": "4",
"used_key_parts": ["l_orderkey"],
"ref": ["dbt3_s001.orders.o_orderkey"],
+ "loops": 1.366666667,
"rows": 4,
"cost": "COST_REPLACED",
"filtered": 3.047460556,
@@ -1709,6 +1747,7 @@ ANALYZE
"key": "i_o_totaldiscount",
"key_length": "9",
"used_key_parts": ["o_totaldiscount"],
+ "loops": 1,
"r_loops": 1,
"rows": 41,
"r_rows": 41,
@@ -1735,6 +1774,7 @@ ANALYZE
"key_length": "4",
"used_key_parts": ["l_orderkey"],
"ref": ["dbt3_s001.orders.o_orderkey"],
+ "loops": 1.366666667,
"r_loops": 1,
"rows": 4,
"r_rows": 6,
@@ -1789,6 +1829,7 @@ EXPLAIN
"key": "i_o_totaldiscount",
"key_length": "9",
"used_key_parts": ["o_totaldiscount"],
+ "loops": 1,
"rows": 41,
"cost": "COST_REPLACED",
"filtered": 3.333333254,
@@ -1810,6 +1851,7 @@ EXPLAIN
"key_length": "4",
"used_key_parts": ["l_orderkey"],
"ref": ["dbt3_s001.orders.o_orderkey"],
+ "loops": 1.366666667,
"rows": 4,
"cost": "COST_REPLACED",
"filtered": 3.047460556,
@@ -1853,6 +1895,7 @@ ANALYZE
"key": "i_o_totaldiscount",
"key_length": "9",
"used_key_parts": ["o_totaldiscount"],
+ "loops": 1,
"r_loops": 1,
"rows": 41,
"r_rows": 41,
@@ -1879,6 +1922,7 @@ ANALYZE
"key_length": "4",
"used_key_parts": ["l_orderkey"],
"ref": ["dbt3_s001.orders.o_orderkey"],
+ "loops": 1.366666667,
"r_loops": 1,
"rows": 4,
"r_rows": 6,
@@ -1941,6 +1985,7 @@ EXPLAIN
"key": "i_o_totaldiscount",
"key_length": "9",
"used_key_parts": ["o_totaldiscount"],
+ "loops": 1,
"rows": 41,
"cost": "REPLACED",
"filtered": "REPLACED",
@@ -1962,6 +2007,7 @@ EXPLAIN
"key_length": "4",
"used_key_parts": ["l_orderkey"],
"ref": ["dbt3_s001.orders.o_orderkey"],
+ "loops": 0.849155556,
"rows": 4,
"cost": "REPLACED",
"filtered": "REPLACED",
@@ -2010,6 +2056,7 @@ ANALYZE
"key": "i_o_totaldiscount",
"key_length": "9",
"used_key_parts": ["o_totaldiscount"],
+ "loops": 1,
"r_loops": 1,
"rows": 41,
"r_rows": 41,
@@ -2036,6 +2083,7 @@ ANALYZE
"key_length": "4",
"used_key_parts": ["l_orderkey"],
"ref": ["dbt3_s001.orders.o_orderkey"],
+ "loops": 0.849155556,
"r_loops": 1,
"rows": 4,
"r_rows": 6,
@@ -2095,6 +2143,7 @@ EXPLAIN
"key": "i_o_totaldiscount",
"key_length": "9",
"used_key_parts": ["o_totaldiscount"],
+ "loops": 1,
"rows": 41,
"cost": "REPLACED",
"filtered": "REPLACED",
@@ -2116,6 +2165,7 @@ EXPLAIN
"key_length": "4",
"used_key_parts": ["l_orderkey"],
"ref": ["dbt3_s001.orders.o_orderkey"],
+ "loops": 0.849155556,
"rows": 4,
"cost": "REPLACED",
"filtered": "REPLACED",
@@ -2164,6 +2214,7 @@ ANALYZE
"key": "i_o_totaldiscount",
"key_length": "9",
"used_key_parts": ["o_totaldiscount"],
+ "loops": 1,
"r_loops": 1,
"rows": 41,
"r_rows": 41,
@@ -2190,6 +2241,7 @@ ANALYZE
"key_length": "4",
"used_key_parts": ["l_orderkey"],
"ref": ["dbt3_s001.orders.o_orderkey"],
+ "loops": 0.849155556,
"r_loops": 1,
"rows": 4,
"r_rows": 6,
@@ -2298,6 +2350,7 @@ EXPLAIN
"rows": 1,
"selectivity_pct": 1.587301587
},
+ "loops": 1,
"rows": 1,
"cost": "COST_REPLACED",
"filtered": 1.587301612,
@@ -2331,6 +2384,7 @@ EXPLAIN
"rows": 1,
"selectivity_pct": 1.587301587
},
+ "loops": 1,
"rows": 1,
"cost": "COST_REPLACED",
"filtered": 1.587301612,
@@ -3313,6 +3367,7 @@ ANALYZE
}
]
},
+ "loops": 1,
"r_loops": 1,
"rows": 2,
"r_rows": 3,
@@ -3335,6 +3390,7 @@ ANALYZE
"key_length": "8",
"used_key_parts": ["aclid"],
"ref": ["test.t.id"],
+ "loops": 2,
"r_loops": 1,
"rows": 1,
"r_rows": 3,
@@ -3376,6 +3432,7 @@ ANALYZE
"r_buffer_size": "REPLACED",
"r_filling_time_ms": "REPLACED"
},
+ "loops": 3.5384,
"r_loops": 1,
"rows": 24,
"r_rows": 32,
diff --git a/mysql-test/main/rowid_filter_myisam.result b/mysql-test/main/rowid_filter_myisam.result
index 2fa9f57dbd2..0a56f87f25f 100644
--- a/mysql-test/main/rowid_filter_myisam.result
+++ b/mysql-test/main/rowid_filter_myisam.result
@@ -142,6 +142,7 @@ EXPLAIN
"table": {
"table_name": "t2",
"access_type": "ALL",
+ "loops": 1,
"rows": 101,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -165,6 +166,7 @@ EXPLAIN
"rows": 87,
"selectivity_pct": 87
},
+ "loops": 101,
"rows": 1,
"cost": "COST_REPLACED",
"filtered": 87,
@@ -186,6 +188,7 @@ EXPLAIN
"key": "PRIMARY",
"key_length": "4",
"used_key_parts": ["pk2"],
+ "loops": 1,
"rows": 1,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -356,6 +359,7 @@ ANALYZE
"key": "idx1",
"key_length": "35",
"used_key_parts": ["nm"],
+ "loops": 1,
"r_loops": 1,
"rows": 1,
"r_rows": 1,
@@ -411,6 +415,7 @@ ANALYZE
"key": "idx1",
"key_length": "35",
"used_key_parts": ["nm"],
+ "loops": 1,
"r_loops": 1,
"rows": 1,
"r_rows": 1,
@@ -505,6 +510,7 @@ ANALYZE
"r_buffer_size": "REPLACED",
"r_filling_time_ms": "REPLACED"
},
+ "loops": 1,
"r_loops": 1,
"rows": 55,
"r_rows": 2,
@@ -620,6 +626,7 @@ ANALYZE
"r_buffer_size": "REPLACED",
"r_filling_time_ms": "REPLACED"
},
+ "loops": 1,
"r_loops": 1,
"rows": 44,
"r_rows": 0,
@@ -688,6 +695,7 @@ ANALYZE
"r_buffer_size": "REPLACED",
"r_filling_time_ms": "REPLACED"
},
+ "loops": 1,
"r_loops": 1,
"rows": 44,
"r_rows": 0,
diff --git a/mysql-test/main/set_operation.result b/mysql-test/main/set_operation.result
index cbd3ce37085..f01b68357a2 100644
--- a/mysql-test/main/set_operation.result
+++ b/mysql-test/main/set_operation.result
@@ -577,6 +577,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 5,
"cost": "REPLACED",
"filtered": 100
@@ -595,6 +596,7 @@ EXPLAIN
"table": {
"table_name": "<derived2>",
"access_type": "ALL",
+ "loops": 1,
"rows": 5,
"cost": "REPLACED",
"filtered": 100,
@@ -613,6 +615,7 @@ EXPLAIN
"table": {
"table_name": "t2",
"access_type": "ALL",
+ "loops": 1,
"rows": 6,
"cost": "REPLACED",
"filtered": 100
@@ -640,6 +643,7 @@ EXPLAIN
"table": {
"table_name": "<derived5>",
"access_type": "ALL",
+ "loops": 1,
"rows": 10,
"cost": "REPLACED",
"filtered": 100,
@@ -656,6 +660,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 5,
"cost": "REPLACED",
"filtered": 100
@@ -674,6 +679,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 5,
"cost": "REPLACED",
"filtered": 100
@@ -710,6 +716,7 @@ EXPLAIN
"table": {
"table_name": "t3",
"access_type": "ALL",
+ "loops": 1,
"rows": 5,
"cost": "REPLACED",
"filtered": 100
@@ -728,6 +735,7 @@ EXPLAIN
"table": {
"table_name": "t2",
"access_type": "ALL",
+ "loops": 1,
"rows": 6,
"cost": "REPLACED",
"filtered": 100
@@ -746,6 +754,7 @@ EXPLAIN
"table": {
"table_name": "t3",
"access_type": "ALL",
+ "loops": 1,
"rows": 5,
"cost": "REPLACED",
"filtered": 100
@@ -764,6 +773,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 5,
"cost": "REPLACED",
"filtered": 100
@@ -774,6 +784,7 @@ EXPLAIN
"table": {
"table_name": "t2",
"access_type": "ALL",
+ "loops": 5,
"rows": 6,
"cost": "REPLACED",
"filtered": 100
@@ -796,6 +807,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 5,
"cost": "REPLACED",
"filtered": 100,
@@ -807,6 +819,7 @@ EXPLAIN
"table": {
"table_name": "t2",
"access_type": "ALL",
+ "loops": 5,
"rows": 6,
"cost": "REPLACED",
"filtered": 100
@@ -829,6 +842,7 @@ EXPLAIN
"table": {
"table_name": "t3",
"access_type": "ALL",
+ "loops": 1,
"rows": 5,
"cost": "REPLACED",
"filtered": 100
diff --git a/mysql-test/main/show_analyze.result b/mysql-test/main/show_analyze.result
index 1cda2f20514..2cc18e40d94 100644
--- a/mysql-test/main/show_analyze.result
+++ b/mysql-test/main/show_analyze.result
@@ -422,6 +422,7 @@ ANALYZE
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"r_loops": 1,
"rows": 2,
"r_rows": 2,
diff --git a/mysql-test/main/show_analyze_json.result b/mysql-test/main/show_analyze_json.result
index 38a73695e9a..87f2ea9a655 100644
--- a/mysql-test/main/show_analyze_json.result
+++ b/mysql-test/main/show_analyze_json.result
@@ -51,6 +51,7 @@ SHOW ANALYZE
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"r_loops": 1,
"rows": 1000,
"r_rows": 1000,
@@ -86,6 +87,7 @@ SHOW ANALYZE
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"r_loops": 1,
"rows": 1000,
"r_rows": 1000,
@@ -124,6 +126,7 @@ SHOW ANALYZE
"table_name": "t1",
"access_type": "ALL",
"possible_keys": ["a"],
+ "loops": 1,
"r_loops": 1,
"rows": 1000,
"r_rows": 1000,
@@ -173,6 +176,7 @@ SHOW ANALYZE
"table": {
"table_name": "a",
"access_type": "ALL",
+ "loops": 1,
"r_loops": 1,
"rows": 10,
"r_rows": 10,
@@ -195,6 +199,7 @@ SHOW ANALYZE
"table": {
"table_name": "b",
"access_type": "ALL",
+ "loops": 1,
"r_loops": 0,
"rows": 10,
"r_rows": null,
@@ -246,6 +251,7 @@ SHOW ANALYZE
"table": {
"table_name": "a",
"access_type": "ALL",
+ "loops": 1,
"r_loops": 1,
"rows": 10,
"r_rows": 10,
@@ -269,6 +275,7 @@ SHOW ANALYZE
"table": {
"table_name": "b",
"access_type": "ALL",
+ "loops": 1,
"r_loops": 1,
"rows": 10,
"r_rows": 10,
@@ -321,6 +328,7 @@ SHOW ANALYZE
"table": {
"table_name": "a",
"access_type": "ALL",
+ "loops": 1,
"r_loops": 1,
"rows": 10,
"r_rows": 10,
@@ -345,6 +353,7 @@ SHOW ANALYZE
"table": {
"table_name": "b",
"access_type": "ALL",
+ "loops": 1,
"r_loops": 0,
"rows": 10,
"r_rows": null,
@@ -397,6 +406,7 @@ SHOW ANALYZE
"table": {
"table_name": "a",
"access_type": "ALL",
+ "loops": 1,
"r_loops": 1,
"rows": 10,
"r_rows": 10,
@@ -423,6 +433,7 @@ SHOW ANALYZE
"table": {
"table_name": "b",
"access_type": "ALL",
+ "loops": 1,
"r_loops": 1,
"rows": 10,
"r_rows": 10,
@@ -470,6 +481,7 @@ SHOW ANALYZE
"table": {
"table_name": "a",
"access_type": "ALL",
+ "loops": 1,
"r_loops": 1,
"rows": 10,
"r_rows": 10,
@@ -491,6 +503,7 @@ SHOW ANALYZE
"table": {
"table_name": "b",
"access_type": "ALL",
+ "loops": 1,
"r_loops": 1,
"rows": 10,
"r_rows": 10,
@@ -535,6 +548,7 @@ SHOW ANALYZE
"table": {
"table_name": "a",
"access_type": "ALL",
+ "loops": 1,
"r_loops": 1,
"rows": 10,
"r_rows": 10,
@@ -559,6 +573,7 @@ SHOW ANALYZE
"table": {
"table_name": "b",
"access_type": "ALL",
+ "loops": 1,
"r_loops": 1,
"rows": 10,
"r_rows": 10,
@@ -603,6 +618,7 @@ SHOW ANALYZE
"table": {
"table_name": "a",
"access_type": "ALL",
+ "loops": 1,
"r_loops": 0,
"rows": 10,
"r_rows": null,
@@ -626,6 +642,7 @@ SHOW ANALYZE
"table": {
"table_name": "b",
"access_type": "ALL",
+ "loops": 1,
"r_loops": 0,
"rows": 10,
"r_rows": null,
@@ -670,6 +687,7 @@ SHOW ANALYZE
"table": {
"table_name": "a",
"access_type": "ALL",
+ "loops": 1,
"r_loops": 1,
"rows": 10,
"r_rows": 10,
@@ -694,6 +712,7 @@ SHOW ANALYZE
"table": {
"table_name": "b",
"access_type": "ALL",
+ "loops": 1,
"r_loops": 2,
"rows": 10,
"r_rows": 10,
@@ -739,6 +758,7 @@ SHOW ANALYZE
"table": {
"table_name": "a",
"access_type": "ALL",
+ "loops": 1,
"r_loops": 1,
"rows": 10,
"r_rows": 10,
@@ -766,6 +786,7 @@ SHOW ANALYZE
"table": {
"table_name": "b",
"access_type": "ALL",
+ "loops": 1,
"r_loops": 2,
"rows": 10,
"r_rows": 10,
@@ -839,6 +860,7 @@ SHOW ANALYZE
"table": {
"table_name": "t0",
"access_type": "ALL",
+ "loops": 1,
"r_loops": 0,
"rows": 10,
"r_rows": null,
@@ -885,6 +907,7 @@ SHOW ANALYZE
"table": {
"table_name": "t0",
"access_type": "ALL",
+ "loops": 1,
"r_loops": 1,
"rows": 10,
"r_rows": 10,
@@ -941,6 +964,7 @@ SHOW ANALYZE
"table": {
"table_name": "t0",
"access_type": "ALL",
+ "loops": 1,
"r_loops": 0,
"rows": 10,
"r_rows": null,
@@ -987,6 +1011,7 @@ SHOW ANALYZE
"table": {
"table_name": "t0",
"access_type": "ALL",
+ "loops": 1,
"r_loops": 1,
"rows": 10,
"r_rows": 10,
@@ -1031,6 +1056,7 @@ SHOW ANALYZE
"table": {
"table_name": "t2",
"access_type": "ALL",
+ "loops": 1,
"r_loops": 1,
"rows": 3,
"r_rows": 1,
@@ -1053,6 +1079,7 @@ SHOW ANALYZE
"table": {
"table_name": "t0",
"access_type": "ALL",
+ "loops": 1,
"r_loops": 0,
"rows": 10,
"r_rows": null,
@@ -1087,6 +1114,7 @@ SHOW ANALYZE
"table": {
"table_name": "t2",
"access_type": "ALL",
+ "loops": 1,
"r_loops": 1,
"rows": 3,
"r_rows": 2,
@@ -1110,6 +1138,7 @@ SHOW ANALYZE
"table": {
"table_name": "t0",
"access_type": "ALL",
+ "loops": 1,
"r_loops": 1,
"rows": 10,
"r_rows": 10,
@@ -1144,6 +1173,7 @@ SHOW ANALYZE
"table": {
"table_name": "t2",
"access_type": "ALL",
+ "loops": 1,
"r_loops": 1,
"rows": 3,
"r_rows": 3,
@@ -1167,6 +1197,7 @@ SHOW ANALYZE
"table": {
"table_name": "t0",
"access_type": "ALL",
+ "loops": 1,
"r_loops": 2,
"rows": 10,
"r_rows": 10,
@@ -1224,6 +1255,7 @@ SHOW ANALYZE
"table": {
"table_name": "t0",
"access_type": "ALL",
+ "loops": 1,
"r_loops": 1,
"rows": 10,
"r_rows": 10,
@@ -1277,6 +1309,7 @@ SHOW ANALYZE
"table": {
"table_name": "t0",
"access_type": "ALL",
+ "loops": 1,
"r_loops": 1,
"rows": 10,
"r_rows": 10,
@@ -1328,6 +1361,7 @@ SHOW ANALYZE
"table": {
"table_name": "t0",
"access_type": "ALL",
+ "loops": 1,
"r_loops": 1,
"rows": 10,
"r_rows": 10,
diff --git a/mysql-test/main/show_explain_json.result b/mysql-test/main/show_explain_json.result
index 1dad0ea2388..4a21528e41d 100644
--- a/mysql-test/main/show_explain_json.result
+++ b/mysql-test/main/show_explain_json.result
@@ -57,6 +57,7 @@ SHOW EXPLAIN
"key": "a",
"key_length": "5",
"used_key_parts": ["a"],
+ "loops": 1,
"rows": 999,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -89,6 +90,7 @@ SHOW EXPLAIN
"key": "a",
"key_length": "5",
"used_key_parts": ["a"],
+ "loops": 1,
"rows": 10,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -120,6 +122,7 @@ SHOW EXPLAIN
"key": "a",
"key_length": "5",
"used_key_parts": ["a"],
+ "loops": 1,
"rows": 10,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -154,6 +157,7 @@ SHOW EXPLAIN
"key": "a",
"key_length": "5",
"used_key_parts": ["a"],
+ "loops": 1,
"rows": 10,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -187,6 +191,7 @@ SHOW EXPLAIN
"key": "a",
"key_length": "5",
"used_key_parts": ["a"],
+ "loops": 1,
"rows": 10,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -226,6 +231,7 @@ SHOW EXPLAIN
"table": {
"table_name": "A",
"access_type": "ALL",
+ "loops": 1,
"rows": 10,
"cost": "COST_REPLACED",
"filtered": 100
@@ -244,6 +250,7 @@ SHOW EXPLAIN
"table": {
"table_name": "B",
"access_type": "ALL",
+ "loops": 1,
"rows": 10,
"cost": "COST_REPLACED",
"filtered": 100
@@ -286,6 +293,7 @@ SHOW EXPLAIN
"table": {
"table_name": "A",
"access_type": "ALL",
+ "loops": 1,
"rows": 10,
"cost": "COST_REPLACED",
"filtered": 100
@@ -304,6 +312,7 @@ SHOW EXPLAIN
"table": {
"table_name": "B",
"access_type": "ALL",
+ "loops": 1,
"rows": 10,
"cost": "COST_REPLACED",
"filtered": 100
@@ -402,6 +411,7 @@ SHOW EXPLAIN
"table": {
"table_name": "a",
"access_type": "ALL",
+ "loops": 1,
"rows": 10,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -420,6 +430,7 @@ SHOW EXPLAIN
"table": {
"table_name": "b",
"access_type": "ALL",
+ "loops": 1,
"rows": 10,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -455,6 +466,7 @@ SHOW EXPLAIN
"table": {
"table_name": "a",
"access_type": "ALL",
+ "loops": 1,
"rows": 10,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -473,6 +485,7 @@ SHOW EXPLAIN
"table": {
"table_name": "b",
"access_type": "ALL",
+ "loops": 1,
"rows": 10,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -508,6 +521,7 @@ SHOW EXPLAIN
"table": {
"table_name": "a",
"access_type": "ALL",
+ "loops": 1,
"rows": 10,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -526,6 +540,7 @@ SHOW EXPLAIN
"table": {
"table_name": "b",
"access_type": "ALL",
+ "loops": 1,
"rows": 10,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -588,6 +603,7 @@ SHOW EXPLAIN
"table": {
"table_name": "t0",
"access_type": "ALL",
+ "loops": 1,
"rows": 10,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -624,6 +640,7 @@ SHOW EXPLAIN
"table": {
"table_name": "t0",
"access_type": "ALL",
+ "loops": 1,
"rows": 10,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -668,6 +685,7 @@ SHOW EXPLAIN
"table": {
"table_name": "t0",
"access_type": "ALL",
+ "loops": 1,
"rows": 10,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -704,6 +722,7 @@ SHOW EXPLAIN
"table": {
"table_name": "t0",
"access_type": "ALL",
+ "loops": 1,
"rows": 10,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -751,6 +770,7 @@ SHOW EXPLAIN
"table": {
"table_name": "t0",
"access_type": "ALL",
+ "loops": 1,
"rows": 10,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -787,6 +807,7 @@ SHOW EXPLAIN
"table": {
"table_name": "t0",
"access_type": "ALL",
+ "loops": 1,
"rows": 10,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -834,6 +855,7 @@ SHOW EXPLAIN
"table": {
"table_name": "t0",
"access_type": "ALL",
+ "loops": 1,
"rows": 10,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -870,6 +892,7 @@ SHOW EXPLAIN
"table": {
"table_name": "t0",
"access_type": "ALL",
+ "loops": 1,
"rows": 10,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -906,6 +929,7 @@ SHOW EXPLAIN
"table": {
"table_name": "t2",
"access_type": "ALL",
+ "loops": 1,
"rows": 3,
"cost": "COST_REPLACED",
"filtered": 100
@@ -923,6 +947,7 @@ SHOW EXPLAIN
"table": {
"table_name": "t0",
"access_type": "ALL",
+ "loops": 1,
"rows": 10,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -949,6 +974,7 @@ SHOW EXPLAIN
"table": {
"table_name": "t2",
"access_type": "ALL",
+ "loops": 1,
"rows": 3,
"cost": "COST_REPLACED",
"filtered": 100
@@ -966,6 +992,7 @@ SHOW EXPLAIN
"table": {
"table_name": "t0",
"access_type": "ALL",
+ "loops": 1,
"rows": 10,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -992,6 +1019,7 @@ SHOW EXPLAIN
"table": {
"table_name": "t2",
"access_type": "ALL",
+ "loops": 1,
"rows": 3,
"cost": "COST_REPLACED",
"filtered": 100
@@ -1009,6 +1037,7 @@ SHOW EXPLAIN
"table": {
"table_name": "t0",
"access_type": "ALL",
+ "loops": 1,
"rows": 10,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -1050,6 +1079,7 @@ SHOW EXPLAIN
"table": {
"table_name": "t2",
"access_type": "ALL",
+ "loops": 1,
"rows": 3,
"cost": "COST_REPLACED",
"filtered": 100
@@ -1067,6 +1097,7 @@ SHOW EXPLAIN
"table": {
"table_name": "t0",
"access_type": "ALL",
+ "loops": 1,
"rows": 10,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -1093,6 +1124,7 @@ SHOW EXPLAIN
"table": {
"table_name": "t2",
"access_type": "ALL",
+ "loops": 1,
"rows": 3,
"cost": "COST_REPLACED",
"filtered": 100
@@ -1110,6 +1142,7 @@ SHOW EXPLAIN
"table": {
"table_name": "t0",
"access_type": "ALL",
+ "loops": 1,
"rows": 10,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -1136,6 +1169,7 @@ SHOW EXPLAIN
"table": {
"table_name": "t2",
"access_type": "ALL",
+ "loops": 1,
"rows": 3,
"cost": "COST_REPLACED",
"filtered": 100
@@ -1153,6 +1187,7 @@ SHOW EXPLAIN
"table": {
"table_name": "t0",
"access_type": "ALL",
+ "loops": 1,
"rows": 10,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -1199,6 +1234,7 @@ SHOW EXPLAIN
"table": {
"table_name": "t0",
"access_type": "ALL",
+ "loops": 1,
"rows": 10,
"cost": "COST_REPLACED",
"filtered": 100
@@ -1248,6 +1284,7 @@ SHOW EXPLAIN
"table": {
"table_name": "t0",
"access_type": "ALL",
+ "loops": 1,
"rows": 10,
"cost": "COST_REPLACED",
"filtered": 100
@@ -1296,6 +1333,7 @@ SHOW EXPLAIN
"table": {
"table_name": "t0",
"access_type": "ALL",
+ "loops": 1,
"rows": 10,
"cost": "COST_REPLACED",
"filtered": 100
@@ -1346,6 +1384,7 @@ SHOW EXPLAIN
"table": {
"table_name": "t0",
"access_type": "ALL",
+ "loops": 1,
"rows": 10,
"cost": "COST_REPLACED",
"filtered": 100,
diff --git a/mysql-test/main/statistics_json.result b/mysql-test/main/statistics_json.result
index 14d3720e06e..a4cf71f9806 100644
--- a/mysql-test/main/statistics_json.result
+++ b/mysql-test/main/statistics_json.result
@@ -8344,6 +8344,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 18,
"cost": "COST_REPLACED",
"filtered": 5.555555344,
diff --git a/mysql-test/main/subselect4.result b/mysql-test/main/subselect4.result
index 2e864355afb..c4e945c2d10 100644
--- a/mysql-test/main/subselect4.result
+++ b/mysql-test/main/subselect4.result
@@ -2937,6 +2937,7 @@ ANALYZE
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"r_loops": 1,
"rows": 2,
"r_rows": 2,
@@ -2963,6 +2964,7 @@ ANALYZE
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"r_loops": 1,
"rows": 2,
"r_rows": 2,
@@ -2987,6 +2989,7 @@ ANALYZE
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"r_loops": 1,
"rows": 2,
"r_rows": 2,
diff --git a/mysql-test/main/subselect_cache.result b/mysql-test/main/subselect_cache.result
index 4e8c3a46205..10bb54cbb14 100644
--- a/mysql-test/main/subselect_cache.result
+++ b/mysql-test/main/subselect_cache.result
@@ -57,6 +57,7 @@ ANALYZE
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"r_loops": 1,
"rows": 10,
"r_rows": 10,
@@ -83,6 +84,7 @@ ANALYZE
"table": {
"table_name": "t2",
"access_type": "ALL",
+ "loops": 1,
"r_loops": 4,
"rows": 4,
"r_rows": 4,
@@ -118,6 +120,7 @@ ANALYZE
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"r_loops": 1,
"rows": 10,
"r_rows": 10,
@@ -152,6 +155,7 @@ ANALYZE
"table": {
"table_name": "t2",
"access_type": "ALL",
+ "loops": 1,
"r_loops": 4,
"rows": 4,
"r_rows": 4,
@@ -194,6 +198,7 @@ ANALYZE
"table": {
"table_name": "t2",
"access_type": "ALL",
+ "loops": 1,
"r_loops": 4,
"rows": 4,
"r_rows": 4,
@@ -224,6 +229,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 10,
"cost": "COST_REPLACED",
"filtered": 100
@@ -242,6 +248,7 @@ EXPLAIN
"table": {
"table_name": "t2",
"access_type": "ALL",
+ "loops": 1,
"rows": 4,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -267,6 +274,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 10,
"cost": "COST_REPLACED",
"filtered": 100
@@ -291,6 +299,7 @@ EXPLAIN
"table": {
"table_name": "t2",
"access_type": "ALL",
+ "loops": 1,
"rows": 4,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -325,6 +334,7 @@ EXPLAIN
"table": {
"table_name": "t2",
"access_type": "ALL",
+ "loops": 1,
"rows": 4,
"cost": "COST_REPLACED",
"filtered": 100,
diff --git a/mysql-test/main/subselect_no_semijoin.result b/mysql-test/main/subselect_no_semijoin.result
index d216d991f8f..d56be525db6 100644
--- a/mysql-test/main/subselect_no_semijoin.result
+++ b/mysql-test/main/subselect_no_semijoin.result
@@ -7444,6 +7444,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 2,
"cost": "COST_REPLACED",
"filtered": 100
@@ -7475,6 +7476,7 @@ EXPLAIN
"table": {
"table_name": "t3",
"access_type": "ALL",
+ "loops": 1,
"rows": 2,
"cost": "COST_REPLACED",
"filtered": 100,
diff --git a/mysql-test/main/table_elim.result b/mysql-test/main/table_elim.result
index a6a3d4d8513..a9602d90249 100644
--- a/mysql-test/main/table_elim.result
+++ b/mysql-test/main/table_elim.result
@@ -744,6 +744,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 10,
"cost": "COST_REPLACED",
"filtered": 100
@@ -778,6 +779,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 10,
"cost": "COST_REPLACED",
"filtered": 100
@@ -792,6 +794,7 @@ EXPLAIN
"key_length": "8",
"used_key_parts": ["b"],
"ref": ["test.t1.a"],
+ "loops": 10,
"rows": 10,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -809,6 +812,7 @@ EXPLAIN
"table": {
"table_name": "t11",
"access_type": "ALL",
+ "loops": 1,
"rows": 1000,
"cost": "COST_REPLACED",
"filtered": 100
@@ -845,6 +849,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 10,
"cost": "COST_REPLACED",
"filtered": 100
@@ -873,6 +878,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 10,
"cost": "COST_REPLACED",
"filtered": 100
@@ -887,6 +893,7 @@ EXPLAIN
"key_length": "5",
"used_key_parts": ["b"],
"ref": ["test.t1.a"],
+ "loops": 10,
"rows": 10,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -904,6 +911,7 @@ EXPLAIN
"table": {
"table_name": "t11",
"access_type": "ALL",
+ "loops": 1,
"rows": 1000,
"cost": "COST_REPLACED",
"filtered": 100
@@ -918,6 +926,7 @@ EXPLAIN
"key_length": "4",
"used_key_parts": ["pk"],
"ref": ["test.t11.b"],
+ "loops": 1000,
"rows": 1,
"cost": "COST_REPLACED",
"filtered": 100,
diff --git a/mysql-test/main/win.result b/mysql-test/main/win.result
index d2a91227723..04fa4c0bf16 100644
--- a/mysql-test/main/win.result
+++ b/mysql-test/main/win.result
@@ -1417,6 +1417,7 @@ EXPLAIN
"table": {
"table_name": "t0",
"access_type": "ALL",
+ "loops": 1,
"rows": 10,
"cost": "COST_REPLACED",
"filtered": 100
@@ -1456,6 +1457,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 10,
"cost": "COST_REPLACED",
"filtered": 100
@@ -1493,6 +1495,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 10,
"cost": "COST_REPLACED",
"filtered": 100
@@ -1535,6 +1538,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 10,
"cost": "COST_REPLACED",
"filtered": 100
@@ -1688,6 +1692,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 3,
"cost": "COST_REPLACED",
"filtered": 100
@@ -1722,6 +1727,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 3,
"cost": "COST_REPLACED",
"filtered": 100
@@ -1756,6 +1762,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 3,
"cost": "COST_REPLACED",
"filtered": 100
@@ -1790,6 +1797,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 3,
"cost": "COST_REPLACED",
"filtered": 100
@@ -1854,6 +1862,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 6,
"cost": "COST_REPLACED",
"filtered": 100
@@ -2015,6 +2024,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 9,
"cost": "COST_REPLACED",
"filtered": 100
@@ -2196,6 +2206,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 11,
"cost": "COST_REPLACED",
"filtered": 100
@@ -2265,6 +2276,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 6,
"cost": "COST_REPLACED",
"filtered": 100
@@ -3874,6 +3886,7 @@ ANALYZE
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"r_loops": 1,
"rows": 3,
"r_rows": 3,
diff --git a/mysql-test/main/win_empty_over.result b/mysql-test/main/win_empty_over.result
index acb83724d72..2f75f80c6ad 100644
--- a/mysql-test/main/win_empty_over.result
+++ b/mysql-test/main/win_empty_over.result
@@ -54,6 +54,7 @@ EXPLAIN
"key": "PRIMARY",
"key_length": "4",
"used_key_parts": ["pk"],
+ "loops": 1,
"rows": 11,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -88,6 +89,7 @@ EXPLAIN
"key": "PRIMARY",
"key_length": "4",
"used_key_parts": ["pk"],
+ "loops": 1,
"rows": 11,
"cost": "COST_REPLACED",
"filtered": 100,
diff --git a/mysql-test/suite/encryption/r/tempfiles_encrypted.result b/mysql-test/suite/encryption/r/tempfiles_encrypted.result
index b75334d8c31..103d8740087 100644
--- a/mysql-test/suite/encryption/r/tempfiles_encrypted.result
+++ b/mysql-test/suite/encryption/r/tempfiles_encrypted.result
@@ -1423,6 +1423,7 @@ EXPLAIN
"table": {
"table_name": "t0",
"access_type": "ALL",
+ "loops": 1,
"rows": 10,
"cost": "COST_REPLACED",
"filtered": 100
@@ -1462,6 +1463,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 10,
"cost": "COST_REPLACED",
"filtered": 100
@@ -1499,6 +1501,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 10,
"cost": "COST_REPLACED",
"filtered": 100
@@ -1541,6 +1544,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 10,
"cost": "COST_REPLACED",
"filtered": 100
@@ -1694,6 +1698,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 3,
"cost": "COST_REPLACED",
"filtered": 100
@@ -1728,6 +1733,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 3,
"cost": "COST_REPLACED",
"filtered": 100
@@ -1762,6 +1768,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 3,
"cost": "COST_REPLACED",
"filtered": 100
@@ -1796,6 +1803,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 3,
"cost": "COST_REPLACED",
"filtered": 100
@@ -1860,6 +1868,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 6,
"cost": "COST_REPLACED",
"filtered": 100
@@ -2021,6 +2030,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 9,
"cost": "COST_REPLACED",
"filtered": 100
@@ -2202,6 +2212,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 11,
"cost": "COST_REPLACED",
"filtered": 100
@@ -2271,6 +2282,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"rows": 6,
"cost": "COST_REPLACED",
"filtered": 100
@@ -3880,6 +3892,7 @@ ANALYZE
"table": {
"table_name": "t1",
"access_type": "ALL",
+ "loops": 1,
"r_loops": 1,
"rows": 3,
"r_rows": 3,
diff --git a/mysql-test/suite/federated/federatedx_create_handlers.result b/mysql-test/suite/federated/federatedx_create_handlers.result
index 92436e1ac64..59ca0bb2fec 100644
--- a/mysql-test/suite/federated/federatedx_create_handlers.result
+++ b/mysql-test/suite/federated/federatedx_create_handlers.result
@@ -166,6 +166,7 @@ EXPLAIN
"table": {
"table_name": "t3",
"access_type": "ALL",
+ "loops": 1,
"rows": 7,
"cost": "COST_REPLACED",
"filtered": 100
@@ -180,6 +181,7 @@ EXPLAIN
"key_length": "18",
"used_key_parts": ["name"],
"ref": ["federated.t3.name"],
+ "loops": 7,
"rows": 2,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -242,6 +244,7 @@ ANALYZE
"table": {
"table_name": "t3",
"access_type": "ALL",
+ "loops": 1,
"r_loops": 1,
"rows": 7,
"r_rows": 7,
@@ -261,6 +264,7 @@ ANALYZE
"key_length": "18",
"used_key_parts": ["name"],
"ref": ["federated.t3.name"],
+ "loops": 7,
"r_loops": 7,
"rows": 2,
"r_rows": 0,
@@ -376,6 +380,7 @@ EXPLAIN
"table": {
"table_name": "t5",
"access_type": "ALL",
+ "loops": 1,
"rows": 2,
"cost": "COST_REPLACED",
"filtered": 100
@@ -386,6 +391,7 @@ EXPLAIN
"table": {
"table_name": "<derived2>",
"access_type": "ALL",
+ "loops": 2,
"rows": 5,
"cost": "COST_REPLACED",
"filtered": 100
diff --git a/mysql-test/suite/json/r/json_table.result b/mysql-test/suite/json/r/json_table.result
index 3eefaa72c1d..900348d8a13 100644
--- a/mysql-test/suite/json/r/json_table.result
+++ b/mysql-test/suite/json/r/json_table.result
@@ -217,6 +217,7 @@ EXPLAIN
"table": {
"table_name": "tt",
"access_type": "ALL",
+ "loops": 1,
"rows": 40,
"cost": "COST_REPLACED",
"filtered": 100,
diff --git a/mysql-test/suite/json/r/json_table_mysql.result b/mysql-test/suite/json/r/json_table_mysql.result
index 44ca370f01f..0be40a8a5c8 100644
--- a/mysql-test/suite/json/r/json_table_mysql.result
+++ b/mysql-test/suite/json/r/json_table_mysql.result
@@ -195,6 +195,7 @@ EXPLAIN
"table": {
"table_name": "tt",
"access_type": "ALL",
+ "loops": 1,
"rows": 40,
"cost": "COST_REPLACED",
"filtered": 100,
diff --git a/sql/opt_subselect.h b/sql/opt_subselect.h
index f59ce0dbb85..1f121855d93 100644
--- a/sql/opt_subselect.h
+++ b/sql/opt_subselect.h
@@ -294,11 +294,12 @@ public:
}
}
- void save_to_position(JOIN_TAB *tab, POSITION *pos)
+ void save_to_position(JOIN_TAB *tab, double record_count, POSITION *pos)
{
pos->read_time= best_loose_scan_cost;
if (best_loose_scan_cost != DBL_MAX)
{
+ pos->loops= record_count;
pos->records_read= best_loose_scan_records;
pos->records_init= pos->records_out= pos->records_read;
pos->key= best_loose_scan_start_key;
diff --git a/sql/sql_explain.cc b/sql/sql_explain.cc
index fd5f675add5..5cfe3082b35 100644
--- a/sql/sql_explain.cc
+++ b/sql/sql_explain.cc
@@ -1916,6 +1916,9 @@ void Explain_table_access::print_explain_json(Explain_query *query,
rowid_filter->print_explain_json(query, writer, is_analyze);
}
+ if (loops != 0.0)
+ writer->add_member("loops").add_double(loops);
+
/* r_loops (not present in tabular output) */
if (is_analyze)
{
diff --git a/sql/sql_explain.h b/sql/sql_explain.h
index 9e560c0be23..67abfe2e9da 100644
--- a/sql/sql_explain.h
+++ b/sql/sql_explain.h
@@ -758,6 +758,8 @@ public:
Explain_table_access(MEM_ROOT *root, bool timed) :
derived_select_number(0),
non_merged_sjm_number(0),
+ cost(0.0),
+ loops(0.0),
extra_tags(root),
range_checked_fer(NULL),
full_scan_on_null_key(false),
@@ -829,6 +831,7 @@ public:
/* Total cost incurred during one execution of this select */
double cost;
+ double loops;
/*
Contents of the 'Extra' column. Some are converted into strings, some have
parameters, values for which are stored below.
diff --git a/sql/sql_select.cc b/sql/sql_select.cc
index 17ae0cf079e..72df1e6e2de 100644
--- a/sql/sql_select.cc
+++ b/sql/sql_select.cc
@@ -8116,6 +8116,7 @@ best_access_path(JOIN *join,
best.uses_jbuf= FALSE;
best.spl_plan= 0;
+ pos->loops= record_count;
disable_jbuf= disable_jbuf || idx == join->const_tables;
trace_wrapper.add_table_name(s);
@@ -9239,7 +9240,7 @@ best_access_path(JOIN *join,
pos->key_dependent= (best.type == JT_EQ_REF ? (table_map) 0 :
key_dependent & remaining_tables);
- loose_scan_opt.save_to_position(s, loose_scan_pos);
+ loose_scan_opt.save_to_position(s, record_count, loose_scan_pos);
if (!best.key &&
idx == join->const_tables && // First table
@@ -12022,6 +12023,7 @@ bool JOIN::get_best_combination()
j->records= (ha_rows) j->records_read;
j->cond_selectivity= 1.0;
j->join_read_time= 0.0; /* Not saved currently */
+ j->join_loops= 0.0;
JOIN_TAB *jt;
JOIN_TAB_RANGE *jt_range;
if (!(jt= (JOIN_TAB*) thd->alloc(sizeof(JOIN_TAB)*sjm->tables)) ||
@@ -12083,6 +12085,7 @@ bool JOIN::get_best_combination()
j->records_read= cur_pos->records_read;
j->records_out= cur_pos->records_out;
j->join_read_time= cur_pos->read_time;
+ j->join_loops= cur_pos->loops;
loop_end:
j->cond_selectivity= cur_pos->cond_selectivity;
@@ -28588,6 +28591,7 @@ bool JOIN_TAB::save_explain_data(Explain_table_access *eta,
eta->key.clear();
eta->quick_info= NULL;
eta->cost= join_read_time;
+ eta->loops= join_loops;
SQL_SELECT *tab_select;
/*
diff --git a/sql/sql_select.h b/sql/sql_select.h
index 3956651c57b..73e8739f960 100644
--- a/sql/sql_select.h
+++ b/sql/sql_select.h
@@ -355,6 +355,7 @@ typedef struct st_join_table {
accessing the table in course of the join execution.
*/
double join_read_time;
+ double join_loops;
/* The selectivity of the conditions that can be pushed to the table */
double cond_selectivity;
@@ -1018,6 +1019,8 @@ public:
*/
double read_time;
+ double loops;
+
double prefix_record_count;
/* Cost for the join prefix */
diff --git a/storage/rocksdb/mysql-test/rocksdb/r/rocksdb_icp.result b/storage/rocksdb/mysql-test/rocksdb/r/rocksdb_icp.result
index 7443909b1ac..a4717570450 100644
--- a/storage/rocksdb/mysql-test/rocksdb/r/rocksdb_icp.result
+++ b/storage/rocksdb/mysql-test/rocksdb/r/rocksdb_icp.result
@@ -57,6 +57,7 @@ EXPLAIN
"key": "kp1",
"key_length": "5",
"used_key_parts": ["kp1"],
+ "loops": 1,
"rows": 1000,
"cost": "COST_REPLACED",
"filtered": 100,
diff --git a/storage/rocksdb/mysql-test/rocksdb/r/rocksdb_icp_rev.result b/storage/rocksdb/mysql-test/rocksdb/r/rocksdb_icp_rev.result
index ece58586d8b..07bce244792 100644
--- a/storage/rocksdb/mysql-test/rocksdb/r/rocksdb_icp_rev.result
+++ b/storage/rocksdb/mysql-test/rocksdb/r/rocksdb_icp_rev.result
@@ -57,6 +57,7 @@ EXPLAIN
"key": "kp1",
"key_length": "5",
"used_key_parts": ["kp1"],
+ "loops": 1,
"rows": 1000,
"cost": "COST_REPLACED",
"filtered": 100,