mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
Added more digits to JSON output of double
sprintf() format of double changed from '%lg' to '%-.11lg' The change was to make it easier to read optimizer trace output with tables that has millions of records.
This commit is contained in:
@@ -80,7 +80,7 @@ select * from db1.t1 {
|
||||
"table": "t1",
|
||||
"table_scan": {
|
||||
"rows": 3,
|
||||
"cost": 2.0051
|
||||
"cost": 2.005126953
|
||||
}
|
||||
}
|
||||
]
|
||||
@@ -95,19 +95,19 @@ select * from db1.t1 {
|
||||
{
|
||||
"access_type": "scan",
|
||||
"resulting_rows": 3,
|
||||
"cost": 2.0051,
|
||||
"cost": 2.005126953,
|
||||
"chosen": true
|
||||
}
|
||||
],
|
||||
"chosen_access_method": {
|
||||
"type": "scan",
|
||||
"records": 3,
|
||||
"cost": 2.0051,
|
||||
"cost": 2.005126953,
|
||||
"uses_join_buffering": false
|
||||
}
|
||||
},
|
||||
"rows_for_plan": 3,
|
||||
"cost_for_plan": 2.6051,
|
||||
"cost_for_plan": 2.605126953,
|
||||
"estimated_join_cardinality": 3
|
||||
}
|
||||
]
|
||||
@@ -203,7 +203,7 @@ select * from db1.v1 {
|
||||
"table": "t1",
|
||||
"table_scan": {
|
||||
"rows": 3,
|
||||
"cost": 2.0051
|
||||
"cost": 2.005126953
|
||||
}
|
||||
}
|
||||
]
|
||||
@@ -218,19 +218,19 @@ select * from db1.v1 {
|
||||
{
|
||||
"access_type": "scan",
|
||||
"resulting_rows": 3,
|
||||
"cost": 2.0051,
|
||||
"cost": 2.005126953,
|
||||
"chosen": true
|
||||
}
|
||||
],
|
||||
"chosen_access_method": {
|
||||
"type": "scan",
|
||||
"records": 3,
|
||||
"cost": 2.0051,
|
||||
"cost": 2.005126953,
|
||||
"uses_join_buffering": false
|
||||
}
|
||||
},
|
||||
"rows_for_plan": 3,
|
||||
"cost_for_plan": 2.6051,
|
||||
"cost_for_plan": 2.605126953,
|
||||
"estimated_join_cardinality": 3
|
||||
}
|
||||
]
|
||||
|
Reference in New Issue
Block a user