Query time 0.02853
JSON explain
{
"query_block": {
"select_id": 1,
"filesort": {
"sort_key": "products.`timestamp` desc, products.product_id",
"temporary_table": {
"table": {
"table_name": "shared_descr",
"access_type": "system",
"possible_keys": ["PRIMARY", "product_id", "company_id"],
"rows": 0,
"filtered": 0,
"const_row_not_found": true
},
"table": {
"table_name": "prices",
"access_type": "index",
"possible_keys": [
"usergroup",
"product_id",
"lower_limit",
"usergroup_id"
],
"key": "usergroup",
"key_length": "9",
"used_key_parts": ["product_id", "usergroup_id", "lower_limit"],
"rows": 1699,
"filtered": 99.23484039,
"attached_condition": "prices.lower_limit = 1 and 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": ["noframes_angrybeaver.prices.product_id"],
"rows": 1,
"filtered": 96.7084198,
"attached_condition": "products.parent_product_id = 0 and (products.amount > 0 or products.tracking = 'D') 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": "descr1",
"access_type": "eq_ref",
"possible_keys": ["PRIMARY", "product_id"],
"key": "PRIMARY",
"key_length": "9",
"used_key_parts": ["product_id", "lang_code"],
"ref": ["noframes_angrybeaver.prices.product_id", "const"],
"rows": 1,
"filtered": 100,
"attached_condition": "trigcond(descr1.lang_code = 'ru')"
},
"table": {
"table_name": "products_categories",
"access_type": "ref",
"possible_keys": ["PRIMARY", "pt"],
"key": "pt",
"key_length": "3",
"used_key_parts": ["product_id"],
"ref": ["noframes_angrybeaver.prices.product_id"],
"rows": 1,
"filtered": 100
},
"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": ["noframes_angrybeaver.products_categories.category_id"],
"rows": 1,
"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)"
},
"block-nl-join": {
"table": {
"table_name": "companies",
"access_type": "ALL",
"possible_keys": ["PRIMARY"],
"rows": 2,
"filtered": 100,
"attached_condition": "companies.`status` = 'A'"
},
"buffer_type": "flat",
"buffer_size": "2048Kb",
"join_type": "BNL",
"attached_condition": "companies.company_id = products.company_id"
}
}
}
}
}
Result
| product_id |
product |
company_name |
product_type |
parent_product_id |
| 10456 |
Graff col.02 |
NoFrames |
P |
0 |
| 10455 |
Graff col.01 |
NoFrames |
P |
0 |
| 12702 |
Гравитация col.02 |
NoFrames |
P |
0 |
| 10446 |
Salon col.06 |
NoFrames |
P |
0 |
| 12579 |
Бельгийский ковер MIRROR 80x125 |
NoFrames |
P |
0 |
| 12580 |
Бельгийский ковер ANTIQUE 80x125 |
NoFrames |
P |
0 |
| 12700 |
Winnie col.08 |
NoFrames |
P |
0 |
| 10444 |
Fly col.20 |
NoFrames |
P |
0 |
| 10443 |
Fly col.19 |
NoFrames |
P |
0 |
| 10442 |
Fly col.18 |
NoFrames |
P |
0 |
| 10441 |
Fly col.17 |
NoFrames |
P |
0 |
| 10440 |
Fly col.16 |
NoFrames |
P |
0 |
| 10439 |
Fly col.15 |
NoFrames |
P |
0 |
| 10438 |
Fly col.14 |
NoFrames |
P |
0 |
| 10437 |
Fly col.13 |
NoFrames |
P |
0 |
| 10436 |
Fly col.12 |
NoFrames |
P |
0 |
| 10435 |
Fly col.11 |
NoFrames |
P |
0 |
| 10434 |
Fly col.10 |
NoFrames |
P |
0 |
| 10433 |
Fly col.09 |
NoFrames |
P |
0 |
| 10432 |
Fly col.08 |
NoFrames |
P |
0 |
| 10431 |
Fly col.07 |
NoFrames |
P |
0 |
| 10430 |
Fly col.06 |
NoFrames |
P |
0 |
| 10429 |
Fly col.05 |
NoFrames |
P |
0 |
| 10428 |
Fly col.04 |
NoFrames |
P |
0 |
| 10427 |
Fly col.03 |
NoFrames |
P |
0 |
| 10426 |
Fly col.02 |
NoFrames |
P |
0 |
| 10425 |
Fly col.01 |
NoFrames |
P |
0 |
| 12564 |
Бельгийский ковер GRANITE 200х300 |
NoFrames |
P |
0 |
| 10424 |
Respect col.30 |
NoFrames |
P |
0 |
| 10423 |
Respect col.28 |
NoFrames |
P |
0 |
| 10422 |
Respect col.27 |
NoFrames |
P |
0 |
| 10421 |
Respect col.26 |
NoFrames |
P |
0 |
| 10420 |
Respect col.25 |
NoFrames |
P |
0 |
| 10419 |
Respect col.24 |
NoFrames |
P |
0 |
| 10418 |
Respect col.23 |
NoFrames |
P |
0 |
| 10417 |
Respect col.22 |
NoFrames |
P |
0 |
| 12856 |
Respect col.20 |
NoFrames |
P |
0 |
| 10416 |
Respect col.19 |
NoFrames |
P |
0 |
| 10415 |
Respect col.18 |
NoFrames |
P |
0 |
| 10414 |
Respect col.17 |
NoFrames |
P |
0 |
| 12855 |
Respect col.16 |
NoFrames |
P |
0 |
| 12854 |
Respect col.15 |
NoFrames |
P |
0 |
| 12853 |
Respect col.13 |
NoFrames |
P |
0 |
| 10412 |
Respect col.12 |
NoFrames |
P |
0 |
| 10411 |
Respect col.11 |
NoFrames |
P |
0 |
| 10410 |
Respect col.10 |
NoFrames |
P |
0 |
| 10409 |
Respect col.09 |
NoFrames |
P |
0 |
| 10408 |
Respect col.08 |
NoFrames |
P |
0 |
| 10407 |
Respect col.07 |
NoFrames |
P |
0 |
| 10406 |
Respect col.06 |
NoFrames |
P |
0 |
| 15781 |
Respect col.05 |
NoFrames |
P |
0 |
| 10405 |
Respect col.03 |
NoFrames |
P |
0 |
| 10404 |
Respect col.02 |
NoFrames |
P |
0 |
| 10403 |
Respect col.01 |
NoFrames |
P |
0 |
| 10402 |
Winnie col.06 |
NoFrames |
P |
0 |
| 10401 |
Winnie col.05 |
NoFrames |
P |
0 |
| 10400 |
Winnie col.04 |
NoFrames |
P |
0 |
| 10399 |
Winnie col.03 |
NoFrames |
P |
0 |
| 10398 |
Winnie col.02 |
NoFrames |
P |
0 |
| 10397 |
Winnie col.01 |
NoFrames |
P |
0 |
| 10395 |
Inspiration leave col.01 |
NoFrames |
P |
0 |
| 10394 |
Inspiration plain col.01 |
NoFrames |
P |
0 |
| 10393 |
Inspiration plain col.02 |
NoFrames |
P |
0 |
| 10392 |
Inspiration plain col.03 |
NoFrames |
P |
0 |
| 10390 |
Inspiration leave col.02 |
NoFrames |
P |
0 |
| 10389 |
Inspiration plain col.05 |
NoFrames |
P |
0 |
| 10388 |
Inspiration plain col.06 |
NoFrames |
P |
0 |
| 10387 |
Inspiration col.03 |
NoFrames |
P |
0 |
| 10386 |
Inspiration plain col.04 |
NoFrames |
P |
0 |
| 10384 |
Respect patchwork col.01 |
NoFrames |
P |
0 |
| 10383 |
Respect patchwork col.02 |
NoFrames |
P |
0 |
| 10382 |
Respect patchwork col.03 |
NoFrames |
P |
0 |
| 12679 |
Solo col.10 |
NoFrames |
P |
0 |
| 12678 |
Solo col.09 |
NoFrames |
P |
0 |
| 12677 |
Solo col.08 |
NoFrames |
P |
0 |
| 12676 |
Solo col.07 |
NoFrames |
P |
0 |
| 12675 |
Solo col.06 |
NoFrames |
P |
0 |
| 12674 |
Solo col.05 |
NoFrames |
P |
0 |
| 12673 |
Solo col.04 |
NoFrames |
P |
0 |
| 15779 |
Solo col.03 |
NoFrames |
P |
0 |
| 12672 |
Solo col.02 |
NoFrames |
P |
0 |
| 12671 |
Solo col.01 |
NoFrames |
P |
0 |
| 12994 |
Primo col.10 |
NoFrames |
P |
0 |
| 12993 |
Primo col.09 |
NoFrames |
P |
0 |
| 12992 |
Primo col.08 |
NoFrames |
P |
0 |
| 12991 |
Primo col.07 |
NoFrames |
P |
0 |
| 12990 |
Primo col.06 |
NoFrames |
P |
0 |
| 12989 |
Primo col.05 |
NoFrames |
P |
0 |
| 12988 |
Primo col.04 |
NoFrames |
P |
0 |
| 12987 |
Primo col.03 |
NoFrames |
P |
0 |
| 12986 |
Primo col.02 |
NoFrames |
P |
0 |
| 12985 |
Primo col.01 |
NoFrames |
P |
0 |
| 10343 |
Excellence col.01 |
NoFrames |
P |
0 |
| 10345 |
Excellence col.03 |
NoFrames |
P |
0 |
| 10346 |
Excellence col.04 |
NoFrames |
P |
0 |
| 10347 |
Excellence col.05 |
NoFrames |
P |
0 |
| 10348 |
Excellence col.06 |
NoFrames |
P |
0 |
| 10349 |
Excellence col.07 |
NoFrames |
P |
0 |
| 10323 |
Mechta col.01 |
NoFrames |
P |
0 |
| 10350 |
Excellence col.08 |
NoFrames |
P |
0 |
| 10370 |
Impulse col.01 |
NoFrames |
P |
0 |
| 10324 |
Mechta col.02 |
NoFrames |
P |
0 |
| 10351 |
Excellence col.09 |
NoFrames |
P |
0 |
| 10371 |
Impulse I col.01 |
NoFrames |
P |
0 |
| 10325 |
Mechta col.03 |
NoFrames |
P |
0 |
| 10352 |
Excellence col.10 |
NoFrames |
P |
0 |
| 10372 |
Impulse col.02 |
NoFrames |
P |
0 |
| 10305 |
Devotion col.01 |
NoFrames |
P |
0 |
| 10326 |
Mechta col.04 |
NoFrames |
P |
0 |
| 10353 |
Excellence col.11 |
NoFrames |
P |
0 |
| 10373 |
Impulse I col.02 |
NoFrames |
P |
0 |
| 10306 |
Devotion col.02 |
NoFrames |
P |
0 |
| 10327 |
Mechta col.05 |
NoFrames |
P |
0 |
| 10354 |
Excellence col.12 |
NoFrames |
P |
0 |
| 10374 |
Impulse col.03 |
NoFrames |
P |
0 |
| 10307 |
Devotion col.03 |
NoFrames |
P |
0 |
| 10328 |
Mechta col.06 |
NoFrames |
P |
0 |
| 10355 |
Excellence col.13 |
NoFrames |
P |
0 |
| 10375 |
Impulse I col.03 |
NoFrames |
P |
0 |
| 10308 |
Devotion col.04 |
NoFrames |
P |
0 |
| 10329 |
Mechta col.07 |
NoFrames |
P |
0 |
| 10356 |
Excellence col.14 |
NoFrames |
P |
0 |
| 10376 |
Impulse col.04 |
NoFrames |
P |
0 |
| 10309 |
Devotion col.05 |
NoFrames |
P |
0 |
| 10330 |
Mechta col.08 |
NoFrames |
P |
0 |
| 10357 |
Excellence col.15 |
NoFrames |
P |
0 |
| 10377 |
Impulse col.05 |
NoFrames |
P |
0 |
| 10310 |
Devotion col.06 |
NoFrames |
P |
0 |