Details
Description
create table t10 (
|
a int,
|
b int
|
);
|
insert into t10 select seq, seq/3 from seq_0_to_999;
|
|
create table t11 (
|
a int,
|
b int
|
);
|
insert into t11 select seq, seq/5 from seq_0_to_999;
|
set join_cache_level=6;
|
analyze format=json
|
select * from t10, t11
|
where
|
t10.a < 700 and
|
t11.a < 100
|
and t10.b=t11.b;
|
will produce
{
|
"block-nl-join": {
|
"table": {
|
"table_name": "t11",
|
"access_type": "hash_ALL",
|
"key": "#hash#$hj",
|
"key_length": "5",
|
"used_key_parts": ["b"],
|
"ref": ["test.t10.b"],
|
"loops": 1000,
|
"r_loops": 1,
|
"rows": 1000,
|
"r_rows": 1000,
|
"cost": 9.5143874,
|
"r_table_time_ms": 0.117991585,
|
"r_other_time_ms": 0.403368737,
|
"filtered": 100,
|
"r_filtered": 10,
|
"attached_condition": "t11.a < 100"
|
},
|
"buffer_type": "flat",
|
"buffer_size": "36Kb",
|
"join_type": "BNLH",
|
"attached_condition": "t11.b = t10.b",
|
"r_filtered": 100,
|
"r_unpack_time_ms": 0
|
}
|
}
|
Note the
"r_unpack_time_ms": 0
|
Attachments
Issue Links
- relates to
-
MDEV-30972 ANALYZE FORMAT=JSON: some time is unaccounted-for in BNL-H joins
-
- Closed
-
Activity
Field | Original Value | New Value |
---|---|---|
Status | Open [ 1 ] | In Progress [ 3 ] |
Link |
This issue relates to |
Assignee | Sergei Petrunia [ psergey ] | Michael Widenius [ monty ] |
Status | In Progress [ 3 ] | In Review [ 10002 ] |
Assignee | Michael Widenius [ monty ] | Sergei Petrunia [ psergey ] |
Status | In Review [ 10002 ] | Stalled [ 10000 ] |
Affects Version/s | 10.6 [ 24028 ] | |
Affects Version/s | 10.7 [ 24805 ] | |
Affects Version/s | 10.8 [ 26121 ] | |
Affects Version/s | 10.9 [ 26905 ] | |
Affects Version/s | 10.10 [ 27530 ] |
Fix Version/s | 10.6.13 [ 28514 ] | |
Fix Version/s | 10.8.8 [ 28518 ] | |
Fix Version/s | 10.10.4 [ 28522 ] | |
Fix Version/s | 11.1.0 [ 28705 ] | |
Fix Version/s | 10.9 [ 26905 ] | |
Fix Version/s | 11.0.2 [ 28706 ] | |
Fix Version/s | 10.7.8 [ 28515 ] | |
Fix Version/s | 11.0 [ 28320 ] |
Fix Version/s | 10.9.6 [ 28520 ] | |
Fix Version/s | 10.9 [ 26905 ] | |
Resolution | Fixed [ 1 ] | |
Status | Stalled [ 10000 ] | Closed [ 6 ] |
https://github.com/MariaDB/server/commit/2ca3d2d6bebbef1a0f5be158932c44fe711c9b50