Query time 0.00031
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "1.83"
},
"ordering_operation": {
"using_temporary_table": true,
"using_filesort": true,
"nested_loop": [
{
"table": {
"table_name": "mdi",
"access_type": "ALL",
"possible_keys": [
"PRIMARY"
],
"rows_examined_per_scan": 5,
"rows_produced_per_join": 1,
"filtered": "20.00",
"cost_info": {
"read_cost": "0.65",
"eval_cost": "0.10",
"prefix_cost": "0.75",
"data_read_per_join": "336"
},
"used_columns": [
"mdi_id",
"tag",
"is_faq",
"is_open",
"status",
"position",
"position_on_page",
"item_type",
"filling_type",
"filling_data"
],
"attached_condition": "(`CS_Cart_Dev`.`mdi`.`status` = 'A')"
}
},
{
"table": {
"table_name": "global_links_include",
"access_type": "ref",
"possible_keys": [
"object_id",
"item_id"
],
"key": "object_id",
"used_key_parts": [
"object_id",
"object_type"
],
"key_length": "156",
"ref": [
"const",
"const"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 1,
"filtered": "100.00",
"cost_info": {
"read_cost": "0.25",
"eval_cost": "0.10",
"prefix_cost": "1.10",
"data_read_per_join": "168"
},
"used_columns": [
"id",
"object_id",
"object_type",
"item_id",
"link_type"
],
"attached_condition": "<if>(is_not_null_compl(global_links_include), ((`CS_Cart_Dev`.`global_links_include`.`item_id` = `CS_Cart_Dev`.`mdi`.`mdi_id`) and (`CS_Cart_Dev`.`global_links_include`.`link_type` = 'I')), true)"
}
},
{
"table": {
"table_name": "global_links_exclude",
"access_type": "ref",
"possible_keys": [
"object_id",
"item_id"
],
"key": "object_id",
"used_key_parts": [
"object_id",
"object_type"
],
"key_length": "156",
"ref": [
"const",
"const"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 1,
"filtered": "100.00",
"not_exists": true,
"cost_info": {
"read_cost": "0.25",
"eval_cost": "0.10",
"prefix_cost": "1.45",
"data_read_per_join": "168"
},
"used_columns": [
"id",
"object_id",
"object_type",
"item_id",
"link_type"
],
"attached_condition": "(<if>(found_match(global_links_exclude), (`CS_Cart_Dev`.`global_links_exclude`.`object_id` is null), true) and <if>(is_not_null_compl(global_links_exclude), ((`CS_Cart_Dev`.`global_links_exclude`.`item_id` = `CS_Cart_Dev`.`mdi`.`mdi_id`) and (`CS_Cart_Dev`.`global_links_exclude`.`link_type` = 'E')), true))"
}
},
{
"table": {
"table_name": "item_settings",
"access_type": "eq_ref",
"possible_keys": [
"PRIMARY"
],
"key": "PRIMARY",
"used_key_parts": [
"item_id",
"object_type"
],
"key_length": "156",
"ref": [
"CS_Cart_Dev.mdi.mdi_id",
"const"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 0,
"filtered": "10.00",
"cost_info": {
"read_cost": "0.25",
"eval_cost": "0.01",
"prefix_cost": "1.80",
"data_read_per_join": "16"
},
"used_columns": [
"item_id",
"object_type",
"status",
"is_global"
],
"attached_condition": "(((`CS_Cart_Dev`.`item_settings`.`status` = 'A') and ((`CS_Cart_Dev`.`item_settings`.`is_global` = 'Y') or (`CS_Cart_Dev`.`global_links_include`.`object_id` is not null)) and (`CS_Cart_Dev`.`mdi`.`mdi_id` = `CS_Cart_Dev`.`item_settings`.`item_id`)) and (`CS_Cart_Dev`.`item_settings`.`item_id` is not null))"
}
},
{
"table": {
"table_name": "mdid",
"access_type": "eq_ref",
"possible_keys": [
"PRIMARY"
],
"key": "PRIMARY",
"used_key_parts": [
"mdi_id",
"lang_code"
],
"key_length": "10",
"ref": [
"CS_Cart_Dev.item_settings.item_id",
"const"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 0,
"filtered": "100.00",
"cost_info": {
"read_cost": "0.03",
"eval_cost": "0.01",
"prefix_cost": "1.84",
"data_read_per_join": "79"
},
"used_columns": [
"mdi_id",
"lang_code",
"title",
"description"
],
"attached_condition": "((`CS_Cart_Dev`.`mdid`.`mdi_id` = `CS_Cart_Dev`.`mdi`.`mdi_id`) and (0 <> if((`CS_Cart_Dev`.`mdi`.`item_type` = 'elements'),(trim(`CS_Cart_Dev`.`mdid`.`description`) <> ''),(trim(`CS_Cart_Dev`.`mdid`.`title`) <> ''))))"
}
}
]
}
}
}