#1
⏱️ 203.29 мс
select "id" from "stores" where "is_active" = ? and "city_slug" = ?
Bindings:
[true,"givatayim"]
#2
⏱️ 656.33 мс
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:
["grocery","baking_spices",1118,1181,1221,1290,16,14,38,118,261,212,226,231,292,431,454,458,492,493,567,663,672,683,687,32,73,4,223,true,1118,1181,1221,1290,16,14,38,118,261,212,226,231,292,431,454,458,492,493,567,663,672,683,687,32,73,4,223]
#3
⏱️ 544.78 мс
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:
["grocery","baking_spices",1118,1181,1221,1290,16,14,38,118,261,212,226,231,292,431,454,458,492,493,567,663,672,683,687,32,73,4,223,true,1118,1181,1221,1290,16,14,38,118,261,212,226,231,292,431,454,458,492,493,567,663,672,683,687,32,73,4,223]
#4
⏱️ 6.21 мс
select * from "canonical_products" where "canonical_products"."id" in (145)
#5
⏱️ 16.14 мс
select "id", "canonical_product_id" from "master_products" where "canonical_product_id" in (?)
Bindings:
[145]
#6
⏱️ 155.48 мс
select * from "deals" where "master_product_id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and "is_active" = ? and "store_id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
Bindings:
[2608194,1472108,1472107,1455995,1451848,1451847,1434643,1432364,1427804,1419976,1419974,715776,685427,364789,262280,256300,248808,195457,192327,182689,168014,166399,161333,160615,160363,158192,156423,152353,152127,135564,134865,132636,192386,true,1118,1181,1221,1290,16,14,38,118,261,212,226,231,292,431,454,458,492,493,567,663,672,683,687,32,73,4,223]
#7
⏱️ 16.2 мс
select * from "stores" where "stores"."id" in (4, 14, 16, 32, 73, 118, 212, 223, 226, 231, 1118, 1181, 1221, 1290)
#8
⏱️ 59.02 мс
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 = 192386 THEN 192327 WHEN sp.master_product_id = 192327 THEN 192327 ELSE sp.master_product_id END limit 500
Bindings:
[2608194,1472108,1472107,1455995,1451848,1451847,1434643,1432364,1427804,1419976,1419974,715776,685427,364789,262280,256300,248808,195457,192327,182689,168014,166399,161333,160615,160363,158192,156423,152353,152127,135564,134865,132636,192386,0,1118,1181,1221,1290,16,14,38,118,261,212,226,231,292,431,454,458,492,493,567,663,672,683,687,32,73,4,223]
#9
⏱️ 91.54 мс
select * from "store_prices" where "id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
Bindings:
[1545428,1545548,1548236,1549029,1549295,1553037,1548554,1549256,1549292,1596333,1598278,6168742,1614783,6120571,1617437,6121980,1614633,1616714,1617952,1612727,1612728,1616349,5600752,5616817,5632795,5612224,5614784,5616814,459482,461391,4568194,464820,4565111,461931,461352,4564952,6458052,6458178,6464011,6465918,6474322,6464807,6465879,6463937,6465916,6468005,6230640,6228200,6228202,6235189,6238898,6241566,6054269,6062216,6050377,6050378,6062210,6068633,6073965,6056770,6056771,5984313,5984315,5993832,5989148,5867788,5867789,5874748,2040807,2037169,2041073,2029323,2030978,2031426,2034498,2040248,2308265,2305982,2309511,2303157,2306815,2306275,2316518,2306656,2363455,2359114,2365192,2363978,2364656,2365324,2362669,2555384,2556053,2558650,2557663,2560954,2559674,2561693,2563859,2559110,3625032,3623840,3624119,3625206,3625720,3626231,3628129]
#10
⏱️ 21.32 мс
select * from "stores" where "stores"."id" in (4, 14, 16, 32, 73, 118, 212, 223, 226, 231, 431, 454, 458, 492, 493, 567)
#11
⏱️ 1.45 мс
select * from "locations" where "city_slug" = ? limit 1
Bindings:
["givatayim"]
#12
⏱️ 9.75 мс
select * from "locations" where "is_popular" = ? order by "sort_order" asc
Bindings:
[true]
#13
⏱️ 13.17 мс
select * from "locations" where "is_active" = ? order by "is_popular" desc, "sort_order" asc
Bindings:
[true]