Query time 0.11540
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "3769.15"
},
"ordering_operation": {
"using_filesort": true,
"grouping_operation": {
"using_temporary_table": true,
"using_filesort": false,
"nested_loop": [
{
"table": {
"table_name": "companies",
"access_type": "const",
"possible_keys": [
"PRIMARY"
],
"key": "PRIMARY",
"used_key_parts": [
"company_id"
],
"key_length": "4",
"ref": [
"const"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 1,
"filtered": "100.00",
"cost_info": {
"read_cost": "0.00",
"eval_cost": "0.10",
"prefix_cost": "0.00",
"data_read_per_join": "15K"
},
"used_columns": [
"company_id",
"status",
"company",
"discreet_shipping"
]
}
},
{
"table": {
"table_name": "products",
"access_type": "ref",
"possible_keys": [
"PRIMARY",
"status",
"idx_parent_product_id"
],
"key": "idx_parent_product_id",
"used_key_parts": [
"parent_product_id"
],
"key_length": "4",
"ref": [
"const"
],
"rows_examined_per_scan": 21847,
"rows_produced_per_join": 483,
"filtered": "2.21",
"cost_info": {
"read_cost": "1200.47",
"eval_cost": "48.32",
"prefix_cost": "3385.18",
"data_read_per_join": "2M"
},
"used_columns": [
"product_id",
"product_type",
"status",
"company_id",
"amount",
"usergroup_ids",
"parent_product_id",
"variation_sku"
],
"attached_condition": "((`chocoramo`.`products`.`company_id` = 380) and (`chocoramo`.`products`.`product_id` <> 64823) and (`chocoramo`.`products`.`amount` > 0) and ((`chocoramo`.`products`.`usergroup_ids` = '') or (0 <> find_in_set(0,`chocoramo`.`products`.`usergroup_ids`)) or (0 <> find_in_set(1,`chocoramo`.`products`.`usergroup_ids`))) and (`chocoramo`.`products`.`status` = 'A'))"
}
},
{
"table": {
"table_name": "prices",
"access_type": "ref",
"possible_keys": [
"usergroup",
"product_id",
"lower_limit",
"usergroup_id"
],
"key": "product_id",
"used_key_parts": [
"product_id"
],
"key_length": "3",
"ref": [
"chocoramo.products.product_id"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 144,
"filtered": "30.00",
"cost_info": {
"read_cost": "120.79",
"eval_cost": "14.49",
"prefix_cost": "3554.28",
"data_read_per_join": "3K"
},
"used_columns": [
"product_id",
"lower_limit",
"usergroup_id"
],
"attached_condition": "((`chocoramo`.`prices`.`lower_limit` = 1) and (`chocoramo`.`prices`.`usergroup_id` in (0,0,1)))"
}
},
{
"table": {
"table_name": "products_categories",
"access_type": "ref",
"possible_keys": [
"PRIMARY",
"pt"
],
"key": "pt",
"used_key_parts": [
"product_id"
],
"key_length": "3",
"ref": [
"chocoramo.products.product_id"
],
"rows_examined_per_scan": 2,
"rows_produced_per_join": 289,
"filtered": "100.00",
"cost_info": {
"read_cost": "72.47",
"eval_cost": "28.99",
"prefix_cost": "3655.74",
"data_read_per_join": "4K"
},
"used_columns": [
"product_id",
"category_id"
]
}
},
{
"table": {
"table_name": "cscart_categories",
"access_type": "eq_ref",
"possible_keys": [
"PRIMARY",
"c_status",
"p_category_id"
],
"key": "PRIMARY",
"used_key_parts": [
"category_id"
],
"key_length": "3",
"ref": [
"chocoramo.products_categories.category_id"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 14,
"filtered": "5.00",
"cost_info": {
"read_cost": "72.47",
"eval_cost": "1.45",
"prefix_cost": "3757.20",
"data_read_per_join": "48K"
},
"used_columns": [
"category_id",
"storefront_id",
"usergroup_ids",
"status"
],
"attached_condition": "(((`chocoramo`.`cscart_categories`.`usergroup_ids` = '') or (0 <> find_in_set(0,`chocoramo`.`cscart_categories`.`usergroup_ids`)) or (0 <> find_in_set(1,`chocoramo`.`cscart_categories`.`usergroup_ids`))) and (`chocoramo`.`cscart_categories`.`status` in ('A','H')) and (`chocoramo`.`cscart_categories`.`storefront_id` in (0,1)))"
}
},
{
"table": {
"table_name": "popularity",
"access_type": "eq_ref",
"possible_keys": [
"PRIMARY",
"total"
],
"key": "PRIMARY",
"used_key_parts": [
"product_id"
],
"key_length": "3",
"ref": [
"chocoramo.products.product_id"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 14,
"filtered": "100.00",
"cost_info": {
"read_cost": "1.81",
"eval_cost": "1.45",
"prefix_cost": "3760.46",
"data_read_per_join": "463"
},
"used_columns": [
"product_id",
"total"
]
}
},
{
"table": {
"table_name": "descr1",
"access_type": "eq_ref",
"possible_keys": [
"PRIMARY",
"product_id"
],
"key": "PRIMARY",
"used_key_parts": [
"product_id",
"lang_code"
],
"key_length": "9",
"ref": [
"chocoramo.products.product_id",
"const"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 14,
"filtered": "100.00",
"cost_info": {
"read_cost": "7.25",
"eval_cost": "1.45",
"prefix_cost": "3769.15",
"data_read_per_join": "55K"
},
"used_columns": [
"product_id",
"lang_code",
"product"
]
}
}
]
}
}
}
}
Result
product_id |
product |
company_name |
product_type |
parent_product_id |
variation_sku |
company_discreet_shipping |
69657 |
Nude in Field, Amazing Body, Great Rear End, Beautiful Breasts, Seductive, Classic, Sexy, Pinup, Poster, Wall Art, Multiple Size [202-559] |
Vintageous Gallery |
P |
0 |
|
Y |
66613 |
Exotic, "Waterfall" Vintage Nude, Black & White, Sensual, Beautiful, Classic, Sexy, Erotic, Poster, Print, Wall Art, Multiple Size [202-444] |
Vintageous Gallery |
P |
0 |
|
Y |
66677 |
Bombshell Nude at Pool, Magnificent Breasts, Exceptional Body, Sexy, Seductive, Sensual, Poster, Print, Wall Art, Multiple Sizes [202-460] |
Vintageous Gallery |
P |
0 |
|
Y |
64871 |
Sexy Nude with Wine, Erotic, Sexy, Vintage Photo, Topless, Great Legs, Full Nude, Pinup, Poster, Print, Wall Art, Multiple Sizes [202-045] |
Vintageous Gallery |
P |
0 |
|
Y |
66508 |
Stunning Nude in Bath, Vintage Photo, 1960's, Wet, Breasts, Sexy, Erotic, Stylish, Pinup, Poster, Print, Mature, Multiple Sizes [202-139] |
Vintageous Gallery |
P |
0 |
|
Y |
67004 |
Amazing Nude in Shallows, Vintage Photo, Beach, Wet, Sand, Sexy, Hard Body, Seductive, Sensual, Print, Wall Art, Multiple Sizes [202-510] |
Vintageous Gallery |
P |
0 |
|
Y |
69641 |
Beautiful Couple, "Lover's Gaze", Passion, Sensual, Erotic, Sexy, Stunning, Lesbian, Poster, Nude, Print, Mature, Multiple Sizes [202-930] |
Vintageous Gallery |
P |
0 |
|
Y |
64895 |
Passionate Lovers, Beautiful Breasts, Vintage Photo, Nude, Sensual, Erotic, Sexy, Lesbian, Poster, Print, Wall Art, Multiple Sizes [202-223] |
Vintageous Gallery |
P |
0 |
|
Y |
69766 |
Classic Nude Pose, Auto, Car, Gorgeous Legs, Vintage, 1970's, Sensual, Great Rear End, Pinup, Poster, Wall Art, Multiple Sizes [202-527] |
Vintageous Gallery |
P |
0 |
66CA06F0BF1C6 |
Y |
69574 |
Buxom Nude, "Reflection", Beautiful Breasts, Erotic, Sensual, Sexy, Voluptuous, Nipples, Sultry, Topless, Mature, Many Sizes [202-773] |
Vintageous Gallery |
P |
0 |
|
Y |