#1
⏱️ 146.07 мс
select "id" from "stores" where "is_active" = ? and "city_slug" = ?
Bindings:
[true,"nahariya"]
#2
⏱️ 315.14 мс
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",766,1123,1254,410,446,1362,10,241,true,766,1123,1254,410,446,1362,10,241]
#3
⏱️ 243.53 мс
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",766,1123,1254,410,446,1362,10,241,true,766,1123,1254,410,446,1362,10,241]
#4
⏱️ 9.01 мс
select * from "deals" where "master_product_id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and "is_active" = ? and "store_id" in (?, ?, ?, ?, ?, ?, ?, ?)
Bindings:
[1429426,1429424,249788,244506,123088,101406,98575,98574,2976294,2840407,2774407,2744913,2715896,2706046,2705315,2684675,2677301,2676655,2675174,2673298,2662692,2662284,2660991,2659453,2658145,2657773,2657600,2657569,2657343,2657105,2657036,2633565,true,766,1123,1254,410,446,1362,10,241]
#5
⏱️ 6.06 мс
select * from "stores" where "stores"."id" in (10, 241, 410)
#6
⏱️ 11.77 мс
select * from "store_prices" where "master_product_id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and "price" > ? and "store_id" in (?, ?, ?, ?, ?, ?, ?, ?)
Bindings:
[1429426,1429424,249788,244506,123088,101406,98575,98574,2976294,2840407,2774407,2744913,2715896,2706046,2705315,2684675,2677301,2676655,2675174,2673298,2662692,2662284,2660991,2659453,2658145,2657773,2657600,2657569,2657343,2657105,2657036,2633565,0,766,1123,1254,410,446,1362,10,241]
#7
⏱️ 8.05 мс
select * from "stores" where "stores"."id" in (10, 241, 410, 446, 766)
#8
⏱️ 7.34 мс
select * from "locations" where "city_slug" = ? limit 1
Bindings:
["nahariya"]
#9
⏱️ 6.6 мс
select * from "locations" where "is_popular" = ? order by "sort_order" asc
Bindings:
[true]
#10
⏱️ 6.69 мс
select * from "locations" where "is_active" = ? order by "is_popular" desc, "sort_order" asc
Bindings:
[true]