#1
⏱️ 36.67 мс
select "id" from "stores" where "is_active" = ? and "city_slug" = ?
Bindings:
[true,"ashkelon"]
#2
⏱️ 1826.03 мс
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:
[737,765,1394,1125,1159,1175,1192,544,1317,168,467,489,1361,37,122,131,169,182,247,303,352,405,true,737,765,1394,1125,1159,1175,1192,544,1317,168,467,489,1361,37,122,131,169,182,247,303,352,405]
#3
⏱️ 556.22 мс
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 0
Bindings:
[737,765,1394,1125,1159,1175,1192,544,1317,168,467,489,1361,37,122,131,169,182,247,303,352,405,true,737,765,1394,1125,1159,1175,1192,544,1317,168,467,489,1361,37,122,131,169,182,247,303,352,405]
#4
⏱️ 1.65 мс
select * from "canonical_products" where "canonical_products"."id" in (238)
#5
⏱️ 0.64 мс
select "id", "canonical_product_id" from "master_products" where "canonical_product_id" in (?)
Bindings:
[238]
#6
⏱️ 161.38 мс
select * from "deals" where "master_product_id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and "is_active" = ? and "store_id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
Bindings:
[117894874,117894862,117041541,117041540,117041539,117041538,114466133,108808721,91874114,88742449,84869830,82942479,78531197,76754704,76339981,75165094,74076446,72978997,68090455,66413048,65764228,63805154,63265682,62358111,56283367,56112702,56108688,56108187,56108186,55055286,54431099,54411455,42625503,42575457,42476629,42476627,42476625,39028558,38847180,38810854,38673323,37085091,36637160,36601256,34793660,34414162,34206024,34206023,34205246,34105135,32975885,32975875,32975867,32975846,32652869,32430635,32335444,32080559,30721319,30721315,30691571,30247410,30060444,28401773,27883716,27628022,27408007,25603232,25491028,25216901,24893820,24332368,13907412,13094225,13020236,12852012,12851980,12851979,12851978,12721528,12721432,12721431,12359404,12337042,12214467,12201255,12196449,12196440,12196436,12096078,11135534,10880869,10068958,8897354,8776026,8775937,2317173,true,737,765,1394,1125,1159,1175,1192,544,1317,168,467,489,1361,37,122,131,169,182,247,303,352,405]
#7
⏱️ 1.69 мс
select * from "stores" where "stores"."id" in (37, 169, 182, 247, 303, 352, 405, 1125, 1159, 1175, 1192, 1317, 1361, 1394)
#8
⏱️ 25.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 = 2317173 THEN 8897354 WHEN sp.master_product_id = 8897354 THEN 8897354 ELSE sp.master_product_id END limit 500
Bindings:
[117894874,117894862,117041541,117041540,117041539,117041538,114466133,108808721,91874114,88742449,84869830,82942479,78531197,76754704,76339981,75165094,74076446,72978997,68090455,66413048,65764228,63805154,63265682,62358111,56283367,56112702,56108688,56108187,56108186,55055286,54431099,54411455,42625503,42575457,42476629,42476627,42476625,39028558,38847180,38810854,38673323,37085091,36637160,36601256,34793660,34414162,34206024,34206023,34205246,34105135,32975885,32975875,32975867,32975846,32652869,32430635,32335444,32080559,30721319,30721315,30691571,30247410,30060444,28401773,27883716,27628022,27408007,25603232,25491028,25216901,24893820,24332368,13907412,13094225,13020236,12852012,12851980,12851979,12851978,12721528,12721432,12721431,12359404,12337042,12214467,12201255,12196449,12196440,12196436,12096078,11135534,10880869,10068958,8897354,8776026,8775937,2317173,0,737,765,1394,1125,1159,1175,1192,544,1317,168,467,489,1361,37,122,131,169,182,247,303,352,405]
#9
⏱️ 21.53 мс
select * from "store_prices" where "id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
Bindings:
[6507262,18231623,75655974,5592052,36360960,5251237,5528177,36361006,14644151,30080054,30080078,30080086,30080096,89680767,37643447,78377663,56471440,56471353,89717919,89718970,90380243,78579529,90405586,90405585,90405584,90405619,76894780,77853737,37244384,26700086,73643120,68062970,24361340,15676490,77818722,62121878,14433518,57500478,54421973,57500481,77850877,77851706,12114770,87008102,77818303,77852696,72999449,28502329,77820446,49829129,86108914,23144039,68093470,49829131,37216616,54424298,87577467,37219658,77826667,69096161,54424803,77856818,38147222,55179362,80252106,77826787,57505240,77826665,26688918,45475322,68093616,69069616,76894903,77826778,49829900,77826780,68097693,57501622,77826781,49799099,68062720,77820445,77856819,77820712,41490356,57501739,77825018,62985678,58516416,76891198,75570360,51940330,51934363,57506193,62152775,68097585,77829598,77850493,76892997,86122121,88049909,86122149,87577669,86122123,89151180,9806980,9798196]
#10
⏱️ 2.09 мс
select * from "stores" where "stores"."id" in (37, 169, 182, 303, 352, 405, 467, 489, 544, 737)
#11
⏱️ 1.15 мс
select * from "stores" where "is_active" = ? and "latitude" is not null and "longitude" is not null and "city_slug" = ?
Bindings:
[true,"ashkelon"]
#12
⏱️ 349.35 мс
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:
[737,765,1394,1125,1159,1175,1192,544,1317,168,467,489,1361,37,122,131,169,182,247,303,352,true,"2026-10-26T04:14:11.066837Z"]
#13
⏱️ 2.45 мс
select * from "locations" where "city_slug" = ? limit 1
Bindings:
["ashkelon"]
#14
⏱️ 2.89 мс
select * from "locations" where "is_popular" = ? order by "sort_order" asc
Bindings:
[true]
#15
⏱️ 3.48 мс
select * from "locations" where "is_active" = ? order by "is_popular" desc, "sort_order" asc
Bindings:
[true]