mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
MDEV-28926 Add time spent on query optimizer to JSON ANALYZE (#2193)
* Add query optimizer timer to ANALYZE FORMAT=JSON * Adapt tests and results * Change logic to always close the writer after printing query blocks
This commit is contained in:
committed by
Sergei Petrunia
parent
f45f60636f
commit
ad7631bdce
@ -1667,6 +1667,9 @@ analyze format=json
|
||||
values (1,2);
|
||||
ANALYZE
|
||||
{
|
||||
"query_optimization": {
|
||||
"r_total_time_ms": "REPLACED"
|
||||
},
|
||||
"query_block": {
|
||||
"union_result": {
|
||||
"query_specifications": [
|
||||
@ -1713,6 +1716,9 @@ union
|
||||
values (1,2),(3,4);
|
||||
ANALYZE
|
||||
{
|
||||
"query_optimization": {
|
||||
"r_total_time_ms": "REPLACED"
|
||||
},
|
||||
"query_block": {
|
||||
"union_result": {
|
||||
"table_name": "<union1,2>",
|
||||
@ -1747,6 +1753,9 @@ union
|
||||
select 1,2;
|
||||
ANALYZE
|
||||
{
|
||||
"query_optimization": {
|
||||
"r_total_time_ms": "REPLACED"
|
||||
},
|
||||
"query_block": {
|
||||
"union_result": {
|
||||
"table_name": "<union1,2>",
|
||||
@ -1781,6 +1790,9 @@ union
|
||||
values (1,2),(3,4);
|
||||
ANALYZE
|
||||
{
|
||||
"query_optimization": {
|
||||
"r_total_time_ms": "REPLACED"
|
||||
},
|
||||
"query_block": {
|
||||
"union_result": {
|
||||
"table_name": "<union1,2>",
|
||||
@ -1828,6 +1840,9 @@ union
|
||||
values (1,2);
|
||||
ANALYZE
|
||||
{
|
||||
"query_optimization": {
|
||||
"r_total_time_ms": "REPLACED"
|
||||
},
|
||||
"query_block": {
|
||||
"union_result": {
|
||||
"table_name": "<union1,2,3>",
|
||||
@ -1894,6 +1909,9 @@ union all
|
||||
select 1,2;
|
||||
ANALYZE
|
||||
{
|
||||
"query_optimization": {
|
||||
"r_total_time_ms": "REPLACED"
|
||||
},
|
||||
"query_block": {
|
||||
"union_result": {
|
||||
"query_specifications": [
|
||||
@ -1924,6 +1942,9 @@ union
|
||||
values (1,2),(3,4);
|
||||
ANALYZE
|
||||
{
|
||||
"query_optimization": {
|
||||
"r_total_time_ms": "REPLACED"
|
||||
},
|
||||
"query_block": {
|
||||
"union_result": {
|
||||
"table_name": "<union1,2>",
|
||||
@ -1958,6 +1979,9 @@ union all
|
||||
values (1,2),(3,4);
|
||||
ANALYZE
|
||||
{
|
||||
"query_optimization": {
|
||||
"r_total_time_ms": "REPLACED"
|
||||
},
|
||||
"query_block": {
|
||||
"union_result": {
|
||||
"query_specifications": [
|
||||
@ -2000,6 +2024,9 @@ union all
|
||||
values (1,2);
|
||||
ANALYZE
|
||||
{
|
||||
"query_optimization": {
|
||||
"r_total_time_ms": "REPLACED"
|
||||
},
|
||||
"query_block": {
|
||||
"union_result": {
|
||||
"query_specifications": [
|
||||
|
Reference in New Issue
Block a user