#1
⏱️ 45.16 мс
select "id" from "stores" where "is_active" = ? and "city_slug" = ?
Bindings:
[true,"rosh-haayin"]
#2
⏱️ 848.77 мс
select count(*) as "aggregate" from "master_products" where "barcode" is not null and "master_products"."id" in ((select "master_product_id" from "store_prices" where "store_id" in (?, ?, ?, ?, ?)) union (select "master_product_id" from "deals" where "is_active" = ? and "store_id" in (?, ?, ?, ?, ?)))
Bindings:
[33,188,280,71,351,true,33,188,280,71,351]
#3
⏱️ 1134.85 мс
select * from "master_products" where "barcode" is not null and "master_products"."id" in ((select "master_product_id" from "store_prices" where "store_id" in (?, ?, ?, ?, ?)) union (select "master_product_id" from "deals" where "is_active" = ? and "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 96 offset 192
Bindings:
[33,188,280,71,351,true,33,188,280,71,351]
#4
⏱️ 10.73 мс
select * from "canonical_products" where "canonical_products"."id" in (64, 73, 183, 264, 276, 307, 318, 347)
#5
⏱️ 33.13 мс
select "id", "canonical_product_id" from "master_products" where "canonical_product_id" in (?, ?, ?, ?, ?, ?, ?, ?)
Bindings:
[276,64,307,347,264,73,318,183]
#6
⏱️ 65.49 мс
select * from "deals" where "master_product_id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and "is_active" = ? and "store_id" in (?, ?, ?, ?, ?)
Bindings:
[1476019,1475945,1475940,1475394,1475391,1475376,1475368,1475335,1475305,1475004,1474847,1474515,1474494,1474418,1474417,1472874,1472175,1472170,1472108,1472107,1471814,1471484,1471481,1471479,1471454,1470980,1470951,1470946,1470942,1470939,1467932,1465150,1463675,1463428,1462893,1462617,1462306,1462258,1462252,1462251,1462250,1462248,1461292,1461266,1461236,1461069,1461068,1461067,1460850,1458610,1458545,1458529,1458528,1458526,1458275,1458241,1458062,1457784,1457763,1457611,1457567,1457566,1457401,1457328,1457128,1457124,1457123,1457122,1457121,1457120,1457119,1457118,1457103,1456789,1456787,1456785,1456784,1456783,1456739,1456738,1456196,1456000,1455999,1455921,1455918,1455917,1455914,1455913,1455912,1455911,1455910,1455909,1455908,1455907,1455896,1455752,130435,195132,2193998,4539718,793980,97984,194318,1454238,98914,4602029,1907944,158903,1454924,true,33,188,280,71,351]
#7
⏱️ 12.37 мс
select * from "stores" where "stores"."id" in (33, 71, 188, 280, 351)
#8
⏱️ 67.39 мс
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 = 130435 THEN 1465150 WHEN sp.master_product_id = 1465150 THEN 1465150 WHEN sp.master_product_id = 195132 THEN 1458062 WHEN sp.master_product_id = 2193998 THEN 1458062 WHEN sp.master_product_id = 4539718 THEN 1458062 WHEN sp.master_product_id = 793980 THEN 1458062 WHEN sp.master_product_id = 97984 THEN 1458062 WHEN sp.master_product_id = 1458062 THEN 1458062 WHEN sp.master_product_id = 194318 THEN 1458062 WHEN sp.master_product_id = 1455921 THEN 1455921 WHEN sp.master_product_id = 1454238 THEN 1455921 WHEN sp.master_product_id = 1458529 THEN 1458529 WHEN sp.master_product_id = 98914 THEN 1458529 WHEN sp.master_product_id = 4602029 THEN 1467932 WHEN sp.master_product_id = 1467932 THEN 1467932 WHEN sp.master_product_id = 1907944 THEN 1463428 WHEN sp.master_product_id = 1463428 THEN 1463428 WHEN sp.master_product_id = 1457328 THEN 1457328 WHEN sp.master_product_id = 158903 THEN 1457328 WHEN sp.master_product_id = 1454924 THEN 1462306 WHEN sp.master_product_id = 1462306 THEN 1462306 ELSE sp.master_product_id END limit 500
Bindings:
[1476019,1475945,1475940,1475394,1475391,1475376,1475368,1475335,1475305,1475004,1474847,1474515,1474494,1474418,1474417,1472874,1472175,1472170,1472108,1472107,1471814,1471484,1471481,1471479,1471454,1470980,1470951,1470946,1470942,1470939,1467932,1465150,1463675,1463428,1462893,1462617,1462306,1462258,1462252,1462251,1462250,1462248,1461292,1461266,1461236,1461069,1461068,1461067,1460850,1458610,1458545,1458529,1458528,1458526,1458275,1458241,1458062,1457784,1457763,1457611,1457567,1457566,1457401,1457328,1457128,1457124,1457123,1457122,1457121,1457120,1457119,1457118,1457103,1456789,1456787,1456785,1456784,1456783,1456739,1456738,1456196,1456000,1455999,1455921,1455918,1455917,1455914,1455913,1455912,1455911,1455910,1455909,1455908,1455907,1455896,1455752,130435,195132,2193998,4539718,793980,97984,194318,1454238,98914,4602029,1907944,158903,1454924,0,33,188,280,71,351]
#9
⏱️ 38.16 мс
select * from "store_prices" where "id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
Bindings:
[5577598,5583081,5566055,6411961,6413261,8260982,4573723,4573731,4573772,4576753,4576770,4576998,4579703,4579704,4579762,4582250,4584631,4586199,4573551,4573732,4573756,4573770,4573780,5656251,5656312,5656316,5656317,5656318,5656319,5656320,5656321,5656322,5656324,5656325,5656326,5650922,5656373,5656374,5658308,5658524,5658525,5658559,5658560,5658561,5658573,5658575,5658712,5658718,5658719,5658721,5658722,5658723,5658724,5658725,5658727,5658788,5660840,5660929,5660930,5660963,5661074,5661092,5661277,5663411,5663443,5663647,5663649,5663650,5663661,5663724,5675191,5675277,5675278,5675279,5675352,5675355,5675358,5645744,5645745,5645746,5645747,5645751,5645770,5645874,5648090,5650517,5650638,5656074,5663599,765994,766718,5253281,5255512]
#10
⏱️ 1.11 мс
select * from "stores" where "stores"."id" in (33, 71, 188, 280, 351)
#11
⏱️ 10.85 мс
select * from "stores" where "is_active" = ? and "latitude" is not null and "longitude" is not null and "city_slug" = ?
Bindings:
[true,"rosh-haayin"]
#12
⏱️ 39.11 мс
select store_id, count(*) as total from "deals" where "store_id" in (?, ?, ?, ?, ?) and "is_active" = ? and ("expires_at" is null or "expires_at" >= ?) group by "store_id"
Bindings:
[33,188,280,71,351,true,"2026-09-08T05:02:44.298658Z"]
#13
⏱️ 4.7 мс
select * from "locations" where "city_slug" = ? limit 1
Bindings:
["rosh-haayin"]
#14
⏱️ 5.21 мс
select * from "locations" where "is_popular" = ? order by "sort_order" asc
Bindings:
[true]
#15
⏱️ 12.86 мс
select * from "locations" where "is_active" = ? order by "is_popular" desc, "sort_order" asc
Bindings:
[true]