#1
⏱️ 156.32 мс
select "id" from "stores" where "is_active" = ? and "city_slug" = ?
Bindings:
[true,"karmiel"]
#2
⏱️ 1327.95 мс
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:
["appliances",743,119,1241,545,1325,398,29,98,186,450,684,true,743,119,1241,545,1325,398,29,98,186,450,684]
#3
⏱️ 984.3 мс
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:
["appliances",743,119,1241,545,1325,398,29,98,186,450,684,true,743,119,1241,545,1325,398,29,98,186,450,684]
#4
⏱️ 7.93 мс
select * from "deals" where "master_product_id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and "is_active" = ? and "store_id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
Bindings:
[8775816,8775815,8775810,8775804,8775803,8775802,8775801,8775755,4001201,2641224,1429426,249788,244506,166724,160865,157962,156053,123088,115120,101406,98575,98574,8775817,8775750,8775749,8775747,8775738,4536413,4049676,4001204,4001190,3656954,true,743,119,1241,545,1325,398,29,98,186,450,684]
#5
⏱️ 3.28 мс
select * from "stores" where "stores"."id" in (29, 98, 119, 186, 398, 743)
#6
⏱️ 10.78 мс
select * from "store_prices" where "master_product_id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and "price" > ? and "store_id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
Bindings:
[8775816,8775815,8775810,8775804,8775803,8775802,8775801,8775755,4001201,2641224,1429426,249788,244506,166724,160865,157962,156053,123088,115120,101406,98575,98574,8775817,8775750,8775749,8775747,8775738,4536413,4049676,4001204,4001190,3656954,0,743,119,1241,545,1325,398,29,98,186,450,684]
#7
⏱️ 0.96 мс
select * from "stores" where "stores"."id" in (29, 98, 119, 186, 398, 450, 545, 743)
#8
⏱️ 8.76 мс
select * from "locations" where "city_slug" = ? limit 1
Bindings:
["karmiel"]
#9
⏱️ 7.41 мс
select * from "locations" where "is_popular" = ? order by "sort_order" asc
Bindings:
[true]
#10
⏱️ 10.02 мс
select * from "locations" where "is_active" = ? order by "is_popular" desc, "sort_order" asc
Bindings:
[true]