Query time 0.00065
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "0.87"
},
"ordering_operation": {
"using_filesort": true,
"grouping_operation": {
"using_temporary_table": true,
"using_filesort": false,
"nested_loop": [
{
"table": {
"table_name": "cscart_store_locations",
"access_type": "ref",
"possible_keys": [
"PRIMARY",
"status"
],
"key": "status",
"used_key_parts": [
"status"
],
"key_length": "3",
"ref": [
"const"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 0,
"filtered": "50.00",
"cost_info": {
"read_cost": "0.25",
"eval_cost": "0.05",
"prefix_cost": "0.35",
"data_read_per_join": "464"
},
"used_columns": [
"store_location_id",
"company_id",
"position",
"country",
"state",
"latitude",
"longitude",
"localization",
"status",
"main_destination_id",
"pickup_destinations_ids",
"store_type",
"shipping_destinations_ids"
],
"attached_condition": "((`test_uchur_k`.`cscart_store_locations`.`company_id` <> 0) and (`test_uchur_k`.`cscart_store_locations`.`store_type` <> 'W'))"
}
},
{
"table": {
"table_name": "cscart_country_descriptions",
"access_type": "eq_ref",
"possible_keys": [
"PRIMARY"
],
"key": "PRIMARY",
"used_key_parts": [
"code",
"lang_code"
],
"key_length": "12",
"ref": [
"test_uchur_k.cscart_store_locations.country",
"const"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 0,
"filtered": "100.00",
"cost_info": {
"read_cost": "0.12",
"eval_cost": "0.05",
"prefix_cost": "0.53",
"data_read_per_join": "200"
},
"used_columns": [
"code",
"lang_code",
"country"
]
}
},
{
"table": {
"table_name": "cscart_store_location_descriptions",
"access_type": "eq_ref",
"possible_keys": [
"PRIMARY"
],
"key": "PRIMARY",
"used_key_parts": [
"store_location_id",
"lang_code"
],
"key_length": "9",
"ref": [
"test_uchur_k.cscart_store_locations.store_location_id",
"const"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 0,
"filtered": "100.00",
"cost_info": {
"read_cost": "0.12",
"eval_cost": "0.05",
"prefix_cost": "0.70",
"data_read_per_join": "804"
},
"used_columns": [
"store_location_id",
"lang_code",
"name",
"description",
"city",
"pickup_address",
"pickup_phone",
"pickup_time"
]
}
},
{
"table": {
"table_name": "cscart_ult_objects_sharing",
"access_type": "eq_ref",
"possible_keys": [
"PRIMARY"
],
"key": "PRIMARY",
"used_key_parts": [
"share_object_id",
"share_company_id",
"share_object_type"
],
"key_length": "159",
"ref": [
"test_uchur_k.cscart_store_locations.store_location_id",
"const",
"const"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 0,
"filtered": "100.00",
"using_index": true,
"cost_info": {
"read_cost": "0.12",
"eval_cost": "0.05",
"prefix_cost": "0.88",
"data_read_per_join": "80"
},
"used_columns": [
"share_company_id",
"share_object_id",
"share_object_type"
],
"attached_condition": "(`test_uchur_k`.`cscart_ult_objects_sharing`.`share_object_id` = `test_uchur_k`.`cscart_store_locations`.`store_location_id`)"
}
}
]
}
}
}
}
Result
| store_location_id |
company_id |
position |
country |
state |
latitude |
longitude |
localization |
status |
main_destination_id |
pickup_destinations_ids |
store_type |
shipping_destinations_ids |
lang_code |
name |
description |
city |
pickup_address |
pickup_phone |
pickup_time |
country_title |
| 28 |
1 |
11 |
KZ |
|
51.140522 |
71.410756 |
|
A |
116 |
1,116 |
S |
116,1 |
kk |
UCHUR Astana |
|
|
|
|
|
Казахстан |