Query time 0.01630
JSON explain
{
"query_block": {
"select_id": 1,
"filesort": {
"sort_key": "cscart_categories.position, products_categories.category_id, products_categories.position, products.product_id",
"temporary_table": {
"table": {
"table_name": "companies",
"access_type": "system",
"possible_keys": ["PRIMARY"],
"rows": 1,
"filtered": 100
},
"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": 6,
"filtered": 100,
"index_condition": "cscart_categories.category_id in (257,263,264,265,267,276)",
"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": ["markins_test.cscart_categories.category_id"],
"rows": 20,
"filtered": 100
},
"table": {
"table_name": "products",
"access_type": "eq_ref",
"possible_keys": ["PRIMARY", "status"],
"key": "PRIMARY",
"key_length": "3",
"used_key_parts": ["product_id"],
"ref": ["markins_test.products_categories.product_id"],
"rowid_filter": {
"range": {
"key": "status",
"used_key_parts": ["status"]
},
"rows": 192,
"selectivity_pct": 60.56782334
},
"rows": 1,
"filtered": 60.5678215,
"attached_condition": "products.company_id = 1 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": "var_val_18",
"access_type": "eq_ref",
"possible_keys": [
"PRIMARY",
"fl",
"variant_id",
"lang_code",
"product_id",
"fpl",
"idx_product_feature_variant_id"
],
"key": "PRIMARY",
"key_length": "15",
"used_key_parts": ["feature_id", "product_id", "variant_id", "lang_code"],
"ref": [
"const",
"markins_test.products_categories.product_id",
"const",
"const"
],
"rows": 1,
"filtered": 95.54895782,
"attached_condition": "var_val_18.lang_code = 'en'",
"using_index": true
},
"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": ["markins_test.products_categories.product_id", "const", "const"],
"rows": 1,
"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": ["markins_test.products_categories.product_id", "const"],
"rows": 1,
"filtered": 100,
"attached_condition": "trigcond(descr1.lang_code = 'en')"
},
"table": {
"table_name": "prices",
"access_type": "ref",
"possible_keys": [
"usergroup",
"product_id",
"lower_limit",
"usergroup_id"
],
"key": "usergroup",
"key_length": "3",
"used_key_parts": ["product_id"],
"ref": ["markins_test.products_categories.product_id"],
"rows": 2,
"filtered": 56.08769226,
"attached_condition": "prices.lower_limit = 1 and prices.usergroup_id in (0,0,1)",
"using_index": true
}
}
}
}
}
Result
product_id |
product |
company_name |
category_position |
category_id |
593 |
Markins LN-850G SET L-Plate for Nikon D850 + MB-D18 |
Trinple |
50 |
257 |
595 |
Markins LS-A9 Camera Plate |
Trinple |
50 |
257 |
643 |
Markins LU-15 Lens Foot |
Trinple |
50 |
257 |
644 |
Markins LN-Z7 Sub Plate |
Trinple |
50 |
257 |
646 |
Markins PN-Z7 Camera Plate |
Trinple |
50 |
257 |
692 |
Markins LN-22 Lens Foot for Nikon |
Trinple |
50 |
257 |
286 |
Markins P50D Camera Plate |
Trinple |
50 |
257 |
287 |
Markins P53U Camera Plate for Canon EOS 5D MarkIII |
Trinple |
50 |
257 |
501 |
Markins P60H |
Trinple |
50 |
257 |
289 |
Markins P67U Camera Plate for Universal |
Trinple |
50 |
257 |
288 |
Markins P600 Camera Plate |
Trinple |
50 |
257 |
291 |
Markins P810U Camera Plate for Nikon D810 D810A |
Trinple |
50 |
257 |
313 |
Markins LN-810 L-Plate for Nikon D810 D810A |
Trinple |
50 |
257 |
588 |
Markins LN-850 Sub Plate for Nikon D850 |
Trinple |
50 |
257 |
483 |
Markins PC-1DX Canon EOS-1D X / 1D X Mark II Camera Plate |
Trinple |
50 |
257 |
484 |
Markins LC-1DX |
Trinple |
50 |
257 |
293 |
Markins PF-T1 Camera Plate for Fujifilm X-T1 |
Trinple |
50 |
257 |
310 |
Markins LF-T1 Sub Plate for Fujifilm X-T1 |
Trinple |
50 |
257 |
294 |
Markins PG-30U Camera Plate |
Trinple |
50 |
257 |
295 |
Markins PG-32 Camera Plate |
Trinple |
50 |
257 |
296 |
Markins PG-34N Camera Plate |
Trinple |
50 |
257 |
298 |
Markins PG-50 Camera Plate |
Trinple |
50 |
257 |
299 |
Markins PG-80 Nikon D80 D90 Camera Plate |
Trinple |
50 |
257 |
300 |
Markins PM-68 Mamiya 645 67 Camera Plate |
Trinple |
50 |
257 |
577 |
Markins PN-500 Camera Plate for Nikon D500 |
Trinple |
50 |
257 |
475 |
Markins LN-500 Sub Plate for Nikon D500 |
Trinple |
50 |
257 |
301 |
Markins PN-600 Camera Plate for Nikon D600 Canon EOS 6D |
Trinple |
50 |
257 |
302 |
Markins PN-D4 Camera Plate for Nikon D4 D4s D5 |
Trinple |
50 |
257 |
314 |
Markins LN-D4 Sub Plate for Nikon D4 D4s |
Trinple |
50 |
257 |
498 |
Markins PP-K1 Camera Plate for Pentax K-1 |
Trinple |
50 |
257 |
499 |
Markins LP-K1 Sub Plate for Pentax K-1 |
Trinple |
50 |
257 |
304 |
Markins PS-90 Camera Plate for Sony a700 a900 |
Trinple |
50 |
257 |
306 |
Markins PS-A72 Camera Plate for Sony a7II a7RII |
Trinple |
50 |
257 |
316 |
Markins LS-A72 Sub Plate for Sony a7II a7RII |
Trinple |
50 |
257 |
307 |
Markins PU-40 Camera Plate for Universal |
Trinple |
50 |
257 |
311 |
Markins LH-4 L-Plate for Hasselblad H1D H2D H3D H4D H5D |
Trinple |
50 |
257 |
514 |
Markins PV-100 Camera Plate |
Trinple |
50 |
257 |
515 |
Markins LV-160 Sub Plate |
Trinple |
50 |
257 |
516 |
Markins LV-170 Sub Plate |
Trinple |
50 |
257 |
427 |
Markins LC-60N |
Trinple |
50 |
257 |
319 |
Markins LN-20 Lens Foot for Nikon AF-S 70-200mm f/2.8G ED VR/2 |
Trinple |
50 |
257 |
320 |
Markins LN-30 Lens Foot for Nikon |
Trinple |
50 |
257 |
531 |
Markins LN-60N |
Trinple |
50 |
257 |
322 |
Markins PC-14 Lens Plate for Canon |
Trinple |
50 |
257 |
325 |
Markins PL-55 Lens Plate 2.4in (60mm) |
Trinple |
50 |
257 |
326 |
Markins PL-75 Lens Plate 3.0in (75mm) |
Trinple |
50 |
257 |
410 |
Markins PL-85 Lens Plate 3.3in (85mm) |
Trinple |
50 |
257 |
327 |
Markins PL-90 Lens Plate 3.6in (90mm) |
Trinple |
50 |
257 |
323 |
Markins PL-12N Lens Plate 4.7in (120mm) |
Trinple |
50 |
257 |
324 |
Markins PL-15N Lens Plate 5.9in (150mm) |
Trinple |
50 |
257 |