#1
⏱️ 72.44 мс
select "id" from "stores" where "is_active" = ? and "city_slug" = ?
Bindings:
[true,"ashkelon"]
#2
⏱️ 3334.3 мс
select count(*) as "aggregate" from "master_products" where "barcode" is not null and "category_slug" = ? 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:
["bakery",737,765,405,1394,1125,1159,1175,1192,544,1317,122,131,168,182,247,303,467,489,1361,37,169,352,true,737,765,405,1394,1125,1159,1175,1192,544,1317,122,131,168,182,247,303,467,489,1361,37,169,352]
#3
⏱️ 2932.67 мс
select * from "master_products" where "barcode" is not null and "category_slug" = ? 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 32 offset 0
Bindings:
["bakery",737,765,405,1394,1125,1159,1175,1192,544,1317,122,131,168,182,247,303,467,489,1361,37,169,352,true,737,765,405,1394,1125,1159,1175,1192,544,1317,122,131,168,182,247,303,467,489,1361,37,169,352]
#4
⏱️ 43.17 мс
select * from "deals" where "master_product_id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and "is_active" = ? and "store_id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
Bindings:
[3983369,753002,753001,398149,283557,264948,249189,249188,249187,249106,249034,249032,248996,241499,241362,185455,181926,168075,167704,161256,161255,161254,160540,160539,159349,159348,152333,152126,152125,152123,152122,152121,true,737,765,405,1394,1125,1159,1175,1192,544,1317,122,131,168,182,247,303,467,489,1361,37,169,352]
#5
⏱️ 10.74 мс
select * from "stores" where "stores"."id" in (37, 122, 131, 169, 303, 352, 405)
#6
⏱️ 19.23 мс
select * from "store_prices" where "master_product_id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and "price" > ? and "store_id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
Bindings:
[3983369,753002,753001,398149,283557,264948,249189,249188,249187,249106,249034,249032,248996,241499,241362,185455,181926,168075,167704,161256,161255,161254,160540,160539,159349,159348,152333,152126,152125,152123,152122,152121,0,737,765,405,1394,1125,1159,1175,1192,544,1317,122,131,168,182,247,303,467,489,1361,37,169,352]
#7
⏱️ 3.44 мс
select * from "stores" where "stores"."id" in (37, 122, 131, 169, 303, 352, 405, 489, 544, 765)
#8
⏱️ 3.03 мс
select * from "locations" where "city_slug" = ? limit 1
Bindings:
["ashkelon"]
#9
⏱️ 2.96 мс
select * from "locations" where "is_popular" = ? order by "sort_order" asc
Bindings:
[true]
#10
⏱️ 5.95 мс
select * from "locations" where "is_active" = ? order by "is_popular" desc, "sort_order" asc
Bindings:
[true]