Query time 0.05920
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "3092.60"
},
"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": 15524,
"rows_produced_per_join": 305,
"filtered": "1.97",
"cost_info": {
"read_cost": "884.27",
"eval_cost": "30.53",
"prefix_cost": "2436.68",
"data_read_per_join": "1M"
},
"used_columns": [
"product_id",
"product_type",
"status",
"company_id",
"amount",
"usergroup_ids",
"parent_product_id",
"variation_sku"
],
"attached_condition": "((`cscartdb`.`products`.`company_id` = 404) and (`cscartdb`.`products`.`amount` > 0) and ((`cscartdb`.`products`.`usergroup_ids` = '') or (0 <> find_in_set(0,`cscartdb`.`products`.`usergroup_ids`)) or (0 <> find_in_set(1,`cscartdb`.`products`.`usergroup_ids`))) and (`cscartdb`.`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": [
"cscartdb.products.product_id"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 305,
"filtered": "99.99",
"cost_info": {
"read_cost": "76.33",
"eval_cost": "30.53",
"prefix_cost": "2543.53",
"data_read_per_join": "7K"
},
"used_columns": [
"product_id",
"lower_limit",
"usergroup_id"
],
"attached_condition": "((`cscartdb`.`prices`.`lower_limit` = 1) and (`cscartdb`.`prices`.`usergroup_id` in (0,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": [
"cscartdb.products.product_id"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 305,
"filtered": "100.00",
"cost_info": {
"read_cost": "76.32",
"eval_cost": "30.53",
"prefix_cost": "2650.38",
"data_read_per_join": "9K"
},
"used_columns": [
"product_id",
"total"
]
}
},
{
"table": {
"table_name": "products_categories",
"access_type": "ref",
"possible_keys": [
"PRIMARY",
"pt"
],
"key": "pt",
"used_key_parts": [
"product_id"
],
"key_length": "3",
"ref": [
"cscartdb.products.product_id"
],
"rows_examined_per_scan": 2,
"rows_produced_per_join": 610,
"filtered": "100.00",
"cost_info": {
"read_cost": "152.64",
"eval_cost": "61.06",
"prefix_cost": "2864.08",
"data_read_per_join": "9K"
},
"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": [
"cscartdb.products_categories.category_id"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 30,
"filtered": "5.00",
"cost_info": {
"read_cost": "152.64",
"eval_cost": "3.05",
"prefix_cost": "3077.77",
"data_read_per_join": "102K"
},
"used_columns": [
"category_id",
"storefront_id",
"usergroup_ids",
"status"
],
"attached_condition": "(((`cscartdb`.`cscart_categories`.`usergroup_ids` = '') or (0 <> find_in_set(0,`cscartdb`.`cscart_categories`.`usergroup_ids`)) or (0 <> find_in_set(1,`cscartdb`.`cscart_categories`.`usergroup_ids`))) and (`cscartdb`.`cscart_categories`.`status` in ('A','H')) and (`cscartdb`.`cscart_categories`.`storefront_id` in (0,1)))"
}
},
{
"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": [
"cscartdb.products.product_id",
"const"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 30,
"filtered": "100.00",
"cost_info": {
"read_cost": "11.78",
"eval_cost": "3.05",
"prefix_cost": "3092.60",
"data_read_per_join": "116K"
},
"used_columns": [
"product_id",
"lang_code",
"product"
]
}
}
]
}
}
}
}
Result
product_id |
product |
company_name |
product_type |
parent_product_id |
variation_sku |
company_discreet_shipping |
62676 |
Bondage Waist Belt Set / Forced Orgasm Harness / Thigh Cuffs with Garters |
Bitches Love Leather |
P |
0 |
eb30e9fe-5e50-42ae-999e-2d7a3fb29108 |
Y |
57923 |
Bondage Connector Straps |
Bitches Love Leather |
P |
0 |
8a1ce9d5-3953-4612-8124-e10bdf2d8333 |
Y |
57919 |
Classic Bondage Collar |
Bitches Love Leather |
P |
0 |
a19e199e-6f47-49b7-9ac0-ddbb91c146a1 |
Y |
63369 |
Classic Ball Gag |
Bitches Love Leather |
P |
0 |
|
Y |
57930 |
Bondage Collar and Cuff set / 5 Piece Restraint Set |
Bitches Love Leather |
P |
0 |
3788657a-d6df-4391-9fec-ad5d1d35817b |
Y |
57936 |
Posture Collar |
Bitches Love Leather |
P |
0 |
b58dceaf-d451-4848-97b7-d172d5bf5047 |
Y |
57912 |
Short 12" Bondage Leash |
Bitches Love Leather |
P |
0 |
ae1fcd20-e82e-480d-a7d3-0808fbaf1447 |
Y |
63445 |
Deluxe Strap-on Harness with Corset Back |
Bitches Love Leather |
P |
0 |
8837846c-2f7e-456e-8c80-a284532169c4 |
Y |
63383 |
Ball Gag Harness / Head Trainer Gag |
Bitches Love Leather |
P |
0 |
|
Y |
62954 |
Lilith - Reversible Body Harness |
Bitches Love Leather |
P |
0 |
fa211cc0-b23e-48a6-86bf-1464b0d45e24 |
Y |
57913 |
Classic Bondage Collar with Side Rings |
Bitches Love Leather |
P |
0 |
2c198c6d-0b53-4203-9da8-b52e037c38d8 |
Y |
63431 |
Contoured Panel Ball Gag |
Bitches Love Leather |
P |
0 |
|
Y |
57917 |
Artemis - Hip Harness |
Bitches Love Leather |
P |
0 |
5cfa9c88-d03b-46e6-aada-28d030d7a05f |
Y |
57924 |
Tall Bondage Collar |
Bitches Love Leather |
P |
0 |
27ef9cb6-4f9f-41c0-9e76-672d57b8b8d6 |
Y |
63395 |
Panel Harness Gag / Muzzle Gag |
Bitches Love Leather |
P |
0 |
|
Y |
57934 |
Eros - Reversible Body Harness |
Bitches Love Leather |
P |
0 |
8837846c-2f7e-456e-8c80-a284532169c4 |
Y |
57915 |
Posture Collar with Side Rings |
Bitches Love Leather |
P |
0 |
7de0beac-cc18-4b6f-82ef-8ce8066db4f9 |
Y |
57914 |
Bondage Wrist Cuffs / Wrist Restraints |
Bitches Love Leather |
P |
0 |
4542752b-e72f-4ca5-9f63-fff01e8402ed |
Y |
57940 |
Tall Bondage Collar with Side Rings |
Bitches Love Leather |
P |
0 |
92be1c51-ca92-493c-bd69-ff59ba0de119 |
Y |
63419 |
Bishop Panel Ball Gag |
Bitches Love Leather |
P |
0 |
|
Y |
57946 |
Damaris - Reversible Body Harness |
Bitches Love Leather |
P |
0 |
fa211cc0-b23e-48a6-86bf-1464b0d45e24 |
Y |
63407 |
Classic Ball Gag with Chin Strap |
Bitches Love Leather |
P |
0 |
|
Y |
57947 |
Nyx - Reversible Body Harness |
Bitches Love Leather |
P |
0 |
4b1e79cf-4dbb-4480-a216-dfb65d4dd4e0 |
Y |
57916 |
Gladiator Chest Harness |
Bitches Love Leather |
P |
0 |
f01bdd63-f690-4fc0-bab4-ed344006f52e |
Y |
57927 |
Bondage Ankle Cuffs / Ankle Restraints |
Bitches Love Leather |
P |
0 |
80717389-cd11-49c9-99ac-a100aecaf1cd |
Y |
57920 |
Long 36" Bondage Leash |
Bitches Love Leather |
P |
0 |
dd99a78e-2363-475c-85e7-20fcb51c8aa7 |
Y |
57922 |
Adjustable "Y" Bondage Connector Strap |
Bitches Love Leather |
P |
0 |
48a80ebc-b3fe-4a0b-9a00-4d671012a121 |
Y |
57918 |
Bondage Waist Belt |
Bitches Love Leather |
P |
0 |
eb30e9fe-5e50-42ae-999e-2d7a3fb29108 |
Y |
57928 |
Hogtie "X" Bondage Connector Strap |
Bitches Love Leather |
P |
0 |
b26eb32e-1968-4ff8-97c4-dc81e3546186 |
Y |
57929 |
Bondage Thigh Cuffs |
Bitches Love Leather |
P |
0 |
06b18e47-99b0-41f1-b42b-7931d51d2095 |
Y |
63684 |
Lacing Leather Hood |
Bitches Love Leather |
P |
0 |
fa211cc0-b23e-48a6-86bf-1464b0d45e24 |
Y |
63457 |
Convertible Ball Gag Harness |
Bitches Love Leather |
P |
0 |
|
Y |
57911 |
10 Piece Leather Bondage Straps Set / Bondage Belts |
Bitches Love Leather |
P |
0 |
f32c2c71-c85f-4e94-bb9e-2cee0182d0c6 |
Y |
57935 |
Leather Lacing Armbinder |
Bitches Love Leather |
P |
0 |
086bff54-7965-494c-8269-eae8d156ae85 |
Y |
63443 |
Classic Ring Gag |
Bitches Love Leather |
P |
0 |
|
Y |
63682 |
Build your own custom Leather Bondage Strap Set |
Bitches Love Leather |
P |
0 |
f32c2c71-c85f-4e94-bb9e-2cee0182d0c6 |
Y |