Query time 0.01209
JSON explain
{
"query_block": {
"select_id": 1,
"filesort": {
"sort_key": "popularity.total desc, products.product_id",
"temporary_table": {
"table": {
"table_name": "cscart_categories",
"access_type": "range",
"possible_keys": ["PRIMARY", "c_status", "p_category_id"],
"key": "PRIMARY",
"key_length": "3",
"used_key_parts": ["category_id"],
"rows": 12,
"filtered": 100,
"index_condition": "cscart_categories.category_id in (60,136,137,138,139,140,141,142,143,144,145,158)",
"attached_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') and cscart_categories.storefront_id in (0,1)"
},
"table": {
"table_name": "products_categories",
"access_type": "ref",
"possible_keys": ["PRIMARY", "pt"],
"key": "PRIMARY",
"key_length": "3",
"used_key_parts": ["category_id"],
"ref": ["dev.cscart_categories.category_id"],
"rows": 30,
"filtered": 100,
"using_index": true
},
"table": {
"table_name": "products",
"access_type": "eq_ref",
"possible_keys": ["PRIMARY", "status"],
"key": "PRIMARY",
"key_length": "3",
"used_key_parts": ["product_id"],
"ref": ["dev.products_categories.product_id"],
"rows": 1,
"filtered": 99.53488159,
"attached_condition": "(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": "companies",
"access_type": "eq_ref",
"possible_keys": ["PRIMARY"],
"key": "PRIMARY",
"key_length": "4",
"used_key_parts": ["company_id"],
"ref": ["dev.products.company_id"],
"rows": 1,
"filtered": 100,
"attached_condition": "companies.`status` = 'A'"
},
"table": {
"table_name": "user",
"access_type": "eq_ref",
"possible_keys": ["PRIMARY"],
"key": "PRIMARY",
"key_length": "3",
"used_key_parts": ["user_id"],
"ref": ["func"],
"rows": 1,
"filtered": 100,
"attached_condition": "trigcond(`user`.user_id = (subquery#2))"
},
"table": {
"table_name": "descr1",
"access_type": "eq_ref",
"possible_keys": ["PRIMARY", "product_id"],
"key": "PRIMARY",
"key_length": "9",
"used_key_parts": ["product_id", "lang_code"],
"ref": ["dev.products_categories.product_id", "const"],
"rows": 1,
"filtered": 100,
"attached_condition": "trigcond(descr1.lang_code = 'en')"
},
"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": ["dev.user.user_id", "const"],
"rows": 2,
"filtered": 100,
"attached_condition": "trigcond(`user`.user_id = profil.profile_id and profil.field_name = 'avatar' and trigcond(`user`.user_id is not null))"
},
"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))"
},
"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.products_categories.product_id", "const"],
"rows": 1,
"filtered": 100,
"attached_condition": "trigcond(pcmain.link_type = 'M')"
},
"table": {
"table_name": "c4pcmain",
"access_type": "eq_ref",
"possible_keys": ["PRIMARY", "p_category_id"],
"key": "PRIMARY",
"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": "popularity",
"access_type": "eq_ref",
"possible_keys": ["PRIMARY", "total"],
"key": "PRIMARY",
"key_length": "3",
"used_key_parts": ["product_id"],
"ref": ["dev.products_categories.product_id"],
"rows": 1,
"filtered": 100
},
"table": {
"table_name": "prices",
"access_type": "ref",
"possible_keys": [
"usergroup",
"product_id",
"lower_limit",
"usergroup_id"
],
"key": "product_id",
"key_length": "3",
"used_key_parts": ["product_id"],
"ref": ["dev.products_categories.product_id"],
"rows": 17,
"filtered": 99.80066681,
"attached_condition": "prices.lower_limit = 1 and prices.usergroup_id in (0,0,1)"
},
"subqueries": [
{
"expression_cache": {
"state": "uninitialized",
"query_block": {
"select_id": 2,
"table": {
"table_name": "tu",
"access_type": "ALL",
"rows": 89,
"filtered": 100,
"attached_condition": "tu.company_id = companies.company_id"
}
}
}
}
]
}
}
}
}
Result
product_id |
product |
company_name |
root_category |
user_firstname |
user_lastname |
user_id |
avatar_image_image_path |
avatar_image_image_x |
avatar_image_image_y |
avatar_image_is_high_res |
avatar_detailed_image_path |
avatar_detailed_image_x |
avatar_detailed_image_y |
avatar_detailed_is_high_res |
avatar_pair_id |
avatar_image_id |
avatar_detailed_id |
unit_size |
unit_price |
paused |
total_amount |
price_piloted |
price_selfplay |
1479 |
Everlook - Horde |
TiHbKaH2 |
60 |
TiHbKaH2 |
|
101 |
|
|
|
|
b503004dee2c.png |
130 |
130 |
|
10 |
0 |
10 |
1.00 |
0.970000000000 |
N |
485000.0000000000 |
|
|
295 |
1-80 Leveling |
SOME SELLER |
60 |
Nikita990 |
|
86 |
|
|
|
|
|
|
|
|
|
|
|
1.00 |
41.730000000000 |
N |
4173.0000000000 |
|
|
908 |
Thekal - Alliance |
TiHbKaH |
60 |
TiHbKaH |
|
89 |
|
|
|
|
516aace50d41.png |
199 |
199 |
|
9 |
0 |
9 |
1.00 |
0.040000000000 |
N |
39997.5600000000 |
|
|
1452 |
Thekal - Alliance |
TiHbKaH2 |
60 |
TiHbKaH2 |
|
101 |
|
|
|
|
b503004dee2c.png |
130 |
130 |
|
10 |
0 |
10 |
1.00 |
0.970000000000 |
N |
485000.0000000000 |
|
|
934 |
Everlook - Alliance |
TiHbKaH |
60 |
TiHbKaH |
|
89 |
|
|
|
|
516aace50d41.png |
199 |
199 |
|
9 |
0 |
9 |
1.00 |
0.040000000000 |
N |
40000.0000000000 |
|
|
2494 |
test other mounts |
TiHbKaH |
60 |
TiHbKaH |
|
89 |
|
|
|
|
516aace50d41.png |
199 |
199 |
|
9 |
0 |
9 |
1.00 |
18.510000000000 |
N |
155273115.5700000000 |
|
|
927 |
Mograine - Horde |
TiHbKaH |
60 |
TiHbKaH |
|
89 |
|
|
|
|
516aace50d41.png |
199 |
199 |
|
9 |
0 |
9 |
1.00 |
0.040000000000 |
N |
40000.0000000000 |
|
|
915 |
Mandokir - Horde |
TiHbKaH |
60 |
TiHbKaH |
|
89 |
|
|
|
|
516aace50d41.png |
199 |
199 |
|
9 |
0 |
9 |
1.00 |
0.040000000000 |
N |
40000.0000000000 |
|
|
910 |
Jin'do - Alliance |
TiHbKaH |
60 |
TiHbKaH |
|
89 |
|
|
|
|
516aace50d41.png |
199 |
199 |
|
9 |
0 |
9 |
1.00 |
0.040000000000 |
N |
40000.0000000000 |
|
|
924 |
Auberdine - Alliance |
TiHbKaH |
60 |
TiHbKaH |
|
89 |
|
|
|
|
516aace50d41.png |
199 |
199 |
|
9 |
0 |
9 |
1.00 |
0.040000000000 |
N |
40000.0000000000 |
|
|
932 |
Earthshaker - Alliance |
TiHbKaH |
60 |
TiHbKaH |
|
89 |
|
|
|
|
516aace50d41.png |
199 |
199 |
|
9 |
0 |
9 |
1.00 |
0.040000000000 |
N |
40000.0000000000 |
|
|
921 |
Lakeshire - Horde |
TiHbKaH |
60 |
TiHbKaH |
|
89 |
|
|
|
|
516aace50d41.png |
199 |
199 |
|
9 |
0 |
9 |
1.00 |
0.040000000000 |
N |
40000.0000000000 |
|
|