Query time 0.01487
JSON explain
{
"query_block": {
"select_id": 1,
"filesort": {
"sort_key": "products.product_id desc",
"temporary_table": {
"table": {
"table_name": "companies",
"access_type": "const",
"possible_keys": ["PRIMARY"],
"key": "PRIMARY",
"key_length": "4",
"used_key_parts": ["company_id"],
"ref": ["const"],
"rows": 1,
"filtered": 100
},
"table": {
"table_name": "user",
"access_type": "const",
"possible_keys": ["PRIMARY"],
"key": "PRIMARY",
"key_length": "3",
"used_key_parts": ["user_id"],
"ref": ["const"],
"rows": 1,
"filtered": 100
},
"table": {
"table_name": "profil",
"access_type": "ref",
"possible_keys": ["profile_id"],
"key": "profile_id",
"key_length": "102",
"used_key_parts": ["profile_id", "field_name"],
"ref": ["const", "const"],
"rows": 1,
"filtered": 10,
"attached_condition": "trigcond(82 = profil.profile_id and profil.field_name = 'avatar')"
},
"table": {
"table_name": "profi_i",
"access_type": "eq_ref",
"possible_keys": ["PRIMARY"],
"key": "PRIMARY",
"key_length": "4",
"used_key_parts": ["image_id"],
"ref": ["dev.profil.image_id"],
"rows": 1,
"filtered": 100,
"attached_condition": "trigcond(trigcond(profil.image_id is not null))"
},
"table": {
"table_name": "profi_d",
"access_type": "eq_ref",
"possible_keys": ["PRIMARY"],
"key": "PRIMARY",
"key_length": "4",
"used_key_parts": ["image_id"],
"ref": ["dev.profil.detailed_id"],
"rows": 1,
"filtered": 100,
"attached_condition": "trigcond(trigcond(profil.detailed_id is not null))"
},
"block-nl-join": {
"table": {
"table_name": "prices",
"access_type": "ALL",
"possible_keys": [
"usergroup",
"product_id",
"lower_limit",
"usergroup_id"
],
"rows": 2987,
"filtered": 100,
"attached_condition": "prices.lower_limit = 1 and prices.usergroup_id in (0,0,1)"
},
"buffer_type": "flat",
"buffer_size": "18Kb",
"join_type": "BNL"
},
"table": {
"table_name": "products",
"access_type": "eq_ref",
"possible_keys": ["PRIMARY", "status"],
"key": "PRIMARY",
"key_length": "3",
"used_key_parts": ["product_id"],
"ref": ["dev.prices.product_id"],
"rows": 1,
"filtered": 98.29260254,
"attached_condition": "products.company_id = 19 and (products.usergroup_ids = '' or find_in_set(0,products.usergroup_ids) or find_in_set(1,products.usergroup_ids)) and products.`status` = 'A' and products.paused <> 'Y'"
},
"table": {
"table_name": "products_categories",
"access_type": "ref",
"possible_keys": ["PRIMARY", "pt"],
"key": "pt",
"key_length": "3",
"used_key_parts": ["product_id"],
"ref": ["dev.prices.product_id"],
"rows": 1,
"filtered": 100
},
"table": {
"table_name": "cscart_categories",
"access_type": "ref",
"possible_keys": ["PRIMARY", "c_status", "p_category_id"],
"key": "p_category_id",
"key_length": "3",
"used_key_parts": ["category_id"],
"ref": ["dev.products_categories.category_id"],
"rows": 1,
"filtered": 100,
"index_condition": "(cscart_categories.usergroup_ids = '' or find_in_set(0,cscart_categories.usergroup_ids) or find_in_set(1,cscart_categories.usergroup_ids)) and cscart_categories.`status` in ('A','H')",
"attached_condition": "cscart_categories.storefront_id in (0,1)"
},
"table": {
"table_name": "pcmain",
"access_type": "ref",
"possible_keys": ["link_type", "pt"],
"key": "pt",
"key_length": "6",
"used_key_parts": ["product_id", "link_type"],
"ref": ["dev.prices.product_id", "const"],
"rows": 1,
"filtered": 100,
"attached_condition": "trigcond(pcmain.link_type = 'M')"
},
"table": {
"table_name": "c4pcmain",
"access_type": "ref",
"possible_keys": ["PRIMARY", "p_category_id"],
"key": "p_category_id",
"key_length": "3",
"used_key_parts": ["category_id"],
"ref": ["dev.pcmain.category_id"],
"rows": 1,
"filtered": 100,
"attached_condition": "trigcond(trigcond(pcmain.category_id is not null))"
},
"table": {
"table_name": "cd4pcmain",
"access_type": "eq_ref",
"possible_keys": ["PRIMARY"],
"key": "PRIMARY",
"key_length": "9",
"used_key_parts": ["category_id", "lang_code"],
"ref": ["dev.pcmain.category_id", "const"],
"rows": 1,
"filtered": 100,
"attached_condition": "trigcond(cd4pcmain.lang_code = 'en' and trigcond(pcmain.category_id is not null))"
},
"table": {
"table_name": "cdroot4pcmain",
"access_type": "eq_ref",
"possible_keys": ["PRIMARY"],
"key": "PRIMARY",
"key_length": "9",
"used_key_parts": ["category_id", "lang_code"],
"ref": ["func", "const"],
"rows": 1,
"filtered": 100,
"attached_condition": "trigcond(cdroot4pcmain.category_id = substring_index(cscart_categories.id_path,'/',1) and cdroot4pcmain.lang_code = 'en')"
},
"table": {
"table_name": "descr1",
"access_type": "ref",
"possible_keys": ["PRIMARY", "product_id"],
"key": "product_id",
"key_length": "3",
"used_key_parts": ["product_id"],
"ref": ["dev.prices.product_id"],
"rows": 3,
"filtered": 100,
"attached_condition": "trigcond(descr1.lang_code = 'en')"
},
"subqueries": [
{
"query_block": {
"select_id": 2,
"table": {
"table_name": "tu",
"access_type": "ALL",
"rows": 96,
"filtered": 100,
"attached_condition": "tu.company_id = 19"
}
}
}
]
}
}
}
}