#1
⏱️ 142.25 мс
select "id" from "stores" where "is_active" = ? and "city_slug" = ?
Bindings:
[true,"petah-tikva"]
#2
⏱️ 73.2 мс
select count(*) as "aggregate" from "master_products" where "barcode" is not null and "category_slug" = ? and "subcategory_slug" = ? and (exists (select 1 from "store_prices" where "store_prices"."master_product_id" = "master_products"."id" and "store_prices"."store_id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)) or exists (select 1 from "deals" where "deals"."master_product_id" = "master_products"."id" and "deals"."is_active" = ? and "deals"."store_id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)))
Bindings:
["appliances","kitchen_appliances",18,732,750,771,190,356,1145,1211,1239,1246,1262,1306,1328,1334,324,330,391,34,35,103,146,152,174,191,216,224,276,338,448,484,503,504,505,1354,553,575,579,648,655,662,681,688,689,104,257,308,true,18,732,750,771,190,356,1145,1211,1239,1246,1262,1306,1328,1334,324,330,391,34,35,103,146,152,174,191,216,224,276,338,448,484,503,504,505,1354,553,575,579,648,655,662,681,688,689,104,257,308]
#3
⏱️ 27.39 мс
select * from "master_products" where "barcode" is not null and "category_slug" = ? and "subcategory_slug" = ? and (exists (select 1 from "store_prices" where "store_prices"."master_product_id" = "master_products"."id" and "store_prices"."store_id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)) or exists (select 1 from "deals" where "deals"."master_product_id" = "master_products"."id" and "deals"."is_active" = ? and "deals"."store_id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?))) order by CASE WHEN master_products.image_url IS NOT NULL AND master_products.image_url != '' THEN 0 ELSE 1 END, "master_products"."id" desc limit 32 offset 0
Bindings:
["appliances","kitchen_appliances",18,732,750,771,190,356,1145,1211,1239,1246,1262,1306,1328,1334,324,330,391,34,35,103,146,152,174,191,216,224,276,338,448,484,503,504,505,1354,553,575,579,648,655,662,681,688,689,104,257,308,true,18,732,750,771,190,356,1145,1211,1239,1246,1262,1306,1328,1334,324,330,391,34,35,103,146,152,174,191,216,224,276,338,448,484,503,504,505,1354,553,575,579,648,655,662,681,688,689,104,257,308]
#4
⏱️ 4.07 мс
select * from "canonical_products" where "canonical_products"."id" in (25)
#5
⏱️ 3.88 мс
select "id", "canonical_product_id" from "master_products" where "canonical_product_id" in (?)
Bindings:
[25]
#6
⏱️ 254.76 мс
select * from "deals" where "master_product_id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and "is_active" = ? and "store_id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
Bindings:
[4574975,2770206,2707089,2702790,2662602,2657025,2641224,1431089,1426465,1422320,1422114,1422113,1421114,1419338,1419028,207687,207685,190949,181751,156053,101406,11136808,9364090,8775747,4616522,4616130,4584921,4578150,4578147,4578144,4562191,4562159,2657391,2676233,2702341,true,18,732,750,771,190,356,1145,1211,1239,1246,1262,1306,1328,1334,324,330,391,34,35,103,146,152,174,191,216,224,276,338,448,484,503,504,505,1354,553,575,579,648,655,662,681,688,689,104,257,308]
#7
⏱️ 13.12 мс
select * from "stores" where "stores"."id" in (18, 34, 35, 103, 104, 146, 152, 308, 324, 330, 338, 356, 391, 732)
#8
⏱️ 50.7 мс
select min(sp.id) as best_sp_id from "store_prices" as "sp" where "sp"."master_product_id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and "sp"."price" > ? and "sp"."store_id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) group by sp.store_id, CASE WHEN sp.master_product_id = 2657391 THEN 2657025 WHEN sp.master_product_id = 2657025 THEN 2657025 WHEN sp.master_product_id = 2676233 THEN 2657025 WHEN sp.master_product_id = 2702341 THEN 2657025 ELSE sp.master_product_id END limit 500
Bindings:
[4574975,2770206,2707089,2702790,2662602,2657025,2641224,1431089,1426465,1422320,1422114,1422113,1421114,1419338,1419028,207687,207685,190949,181751,156053,101406,11136808,9364090,8775747,4616522,4616130,4584921,4578150,4578147,4578144,4562191,4562159,2657391,2676233,2702341,0,18,732,750,771,190,356,1145,1211,1239,1246,1262,1306,1328,1334,324,330,391,34,35,103,146,152,174,191,216,224,276,338,448,484,503,504,505,1354,553,575,579,648,655,662,681,688,689,104,257,308]
#9
⏱️ 53.04 мс
select * from "store_prices" where "id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
Bindings:
[5557427,5525292,4277309,4783029,4696086,4696394,4707237,4713315,4713317,4713529,4738840,4765706,4713514,6546962,5142645,4769158,4627598,4378175,4355088,2243798,2248898,2618091,3550925,3554363,4026336,1733469,6775961,1731276,6776938,6781662,1725717,2768127,2774068,2774070,2774698,7720662,2776840,7704325,7704328,2768033,2774699,2774746,2775146]
#10
⏱️ 11.56 мс
select * from "stores" where "stores"."id" in (34, 35, 103, 104, 308, 324, 330, 338, 356, 448, 505, 553, 732, 750, 771)
#11
⏱️ 5.71 мс
select * from "locations" where "city_slug" = ? limit 1
Bindings:
["petah-tikva"]
#12
⏱️ 11.09 мс
select * from "locations" where "is_popular" = ? order by "sort_order" asc
Bindings:
[true]
#13
⏱️ 9.84 мс
select * from "locations" where "is_active" = ? order by "is_popular" desc, "sort_order" asc
Bindings:
[true]