Query time 0.02426
JSON explain
{
"query_block": {
"select_id": 1,
"cost": 1.24524097,
"filesort": {
"sort_key": "products.`timestamp` desc, products.product_id",
"temporary_table": {
"nested_loop": [
{
"table": {
"table_name": "companies",
"access_type": "ALL",
"possible_keys": ["PRIMARY"],
"loops": 1,
"rows": 1,
"cost": 0.0110178,
"filtered": 100,
"attached_condition": "companies.`status` = 'A'"
}
},
{
"table": {
"table_name": "prices",
"access_type": "ref",
"possible_keys": [
"usergroup",
"product_id",
"lower_limit",
"usergroup_id"
],
"key": "lower_limit",
"key_length": "3",
"used_key_parts": ["lower_limit"],
"ref": ["const"],
"loops": 1,
"rows": 247,
"cost": 0.037877115,
"filtered": 100,
"attached_condition": "prices.usergroup_id in (0,0,1)",
"using_index": true
}
},
{
"table": {
"table_name": "products",
"access_type": "eq_ref",
"possible_keys": ["PRIMARY", "status", "idx_parent_product_id"],
"key": "PRIMARY",
"key_length": "3",
"used_key_parts": ["product_id"],
"ref": ["lvshop.prices.product_id"],
"loops": 247,
"rows": 1,
"cost": 0.22584188,
"filtered": 98.38056946,
"attached_condition": "products.parent_product_id = 0 and products.company_id = companies.company_id and (products.usergroup_ids = '' or find_in_set(0,products.usergroup_ids) or find_in_set(1,products.usergroup_ids)) and products.`status` = 'A'"
}
},
{
"table": {
"table_name": "shared_descr",
"access_type": "eq_ref",
"possible_keys": ["PRIMARY", "product_id", "company_id"],
"key": "PRIMARY",
"key_length": "13",
"used_key_parts": ["product_id", "lang_code", "company_id"],
"ref": ["lvshop.prices.product_id", "const", "const"],
"loops": 243,
"rows": 1,
"cost": 0.21816812,
"filtered": 100,
"attached_condition": "trigcond(shared_descr.lang_code = 'en')"
}
},
{
"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": ["lvshop.prices.product_id", "const"],
"loops": 243,
"rows": 1,
"cost": 0.29681132,
"filtered": 100,
"attached_condition": "trigcond(descr1.lang_code = 'en')"
}
},
{
"table": {
"table_name": "products_categories",
"access_type": "ref",
"possible_keys": ["PRIMARY", "pt"],
"key": "pt",
"key_length": "3",
"used_key_parts": ["product_id"],
"ref": ["lvshop.prices.product_id"],
"loops": 243,
"rows": 1,
"cost": 0.237356615,
"filtered": 100,
"using_index": true
}
},
{
"table": {
"table_name": "cscart_categories",
"access_type": "eq_ref",
"possible_keys": ["PRIMARY", "c_status", "p_category_id"],
"key": "PRIMARY",
"key_length": "3",
"used_key_parts": ["category_id"],
"ref": ["lvshop.products_categories.category_id"],
"loops": 243,
"rows": 1,
"cost": 0.21816812,
"filtered": 100,
"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)"
}
}
]
}
}
}
}
Result
| product_id |
product |
company_name |
product_type |
parent_product_id |
| 180 |
18-55mm Portrait Lens |
CS-Cart |
P |
0 |
| 181 |
Women's Bloom Complete Set |
CS-Cart |
P |
0 |
| 182 |
GBC® Smart-View® 3-Ring Report Cover |
CS-Cart |
P |
0 |
| 183 |
Samsung 50-200mm NX Telephoto OIS Lens |
CS-Cart |
P |
0 |
| 184 |
Samsung 30mm NX Pancake Lens |
CS-Cart |
P |
0 |
| 185 |
CG Lightweight Cart Bag |
CS-Cart |
P |
0 |
| 186 |
CG Black Staff Bag |
CS-Cart |
P |
0 |
| 187 |
2010 TOUR STAFF Bag 10" |
CS-Cart |
P |
0 |
| 188 |
NEW Wilson Staff Fifty Elite Yellow Golf Ball |
CS-Cart |
P |
0 |
| 189 |
AF-S NIKKOR 14-24mm f/2.8G ED |
CS-Cart |
P |
0 |
| 190 |
AF-S DX NIKKOR 10-24mm f/3.5-4.5G ED |
CS-Cart |
P |
0 |
| 191 |
Esperanza Spalding - Radio Music Society |
CS-Cart |
P |
0 |
| 1 |
65" Class (64.5" Diag.) LED 8000 Series Smart TV |
CS-Cart |
P |
0 |
| 5 |
46" Class (45.9" Diag.) LCD 610 Series TV |
CS-Cart |
P |
0 |
| 7 |
Trefoil Hoodie |
CS-Cart |
P |
0 |
| 8 |
Toshiba 32TL515U 32" Class 1080P 3D LED HD TV |
CS-Cart |
P |
0 |
| 9 |
Toshiba 42TL515U 42" Class 1080P 3D LED HD TV |
CS-Cart |
P |
0 |
| 10 |
Toshiba 47TL515U 47" Class 1080P 3D LED HD TV |
CS-Cart |
P |
0 |
| 11 |
Collegiate 72 Tee |
CS-Cart |
P |
0 |
| 12 |
100g Pants |
CS-Cart |
P |
0 |
| 13 |
Your Idea, Inc. 12 Steps to Building a Million Dollar Business -- Starting Today! |
CS-Cart |
P |
0 |
| 14 |
Toshiba 40E220U 40" Class 1080P HD LCD TV |
CS-Cart |
P |
0 |
| 15 |
Nike Chambray Super Runner Men's Jacket |
CS-Cart |
P |
0 |
| 16 |
3D Blu-ray Disc™ Player (BD-D7500) |
CS-Cart |
P |
0 |
| 17 |
101 Things Everyone Should Know About Economics A Down and Dirty Guide to Everything from Securities and Derivatives to Interest Rates and Hedge Funds—And What They Mean For You |
CS-Cart |
P |
0 |
| 18 |
3D Blu-ray Disc™ Player (BD-D7000) |
CS-Cart |
P |
0 |
| 19 |
Toshiba BDX2150 Blu-ray Player |
CS-Cart |
P |
0 |
| 20 |
The ABCs of Gold Investing. How to Protect and Build Your Wealth with Gold |
CS-Cart |
P |
0 |
| 21 |
Toshiba SD3300 DVD Player |
CS-Cart |
P |
0 |
| 22 |
7.1 Channel Blu-ray 3D Home Theater System |
CS-Cart |
P |
0 |
| 23 |
5.1 Channel Blu-ray 3D Home Theater System |
CS-Cart |
P |
0 |
| 24 |
5.1 Channel Blu-ray 3D Home Theater System |
CS-Cart |
P |
0 |