#1
⏱️ 141.74 мс
select "id" from "stores" where "is_active" = ? and "city_slug" = ?
Bindings:
[true,"ramat-gan"]
#2
⏱️ 1079.32 мс
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",1109,760,340,384,284,296,1146,557,608,1283,1287,1288,1300,1339,1,326,367,30,41,53,54,76,108,235,264,301,539,555,580,679,1398,true,1109,760,340,384,284,296,1146,557,608,1283,1287,1288,1300,1339,1,326,367,30,41,53,54,76,108,235,264,301,539,555,580,679,1398]
#3
⏱️ 834.19 мс
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",1109,760,340,384,284,296,1146,557,608,1283,1287,1288,1300,1339,1,326,367,30,41,53,54,76,108,235,264,301,539,555,580,679,1398,true,1109,760,340,384,284,296,1146,557,608,1283,1287,1288,1300,1339,1,326,367,30,41,53,54,76,108,235,264,301,539,555,580,679,1398]
#4
⏱️ 84.45 мс
select * from "deals" where "master_product_id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and "is_active" = ? and "store_id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
Bindings:
[8775816,8775815,8775810,8775804,8775803,8775802,8775801,8775755,4574975,4001201,1429426,1429424,249788,244506,190949,181751,166724,160865,156053,115120,101406,98575,98574,8775817,8775750,8775749,8775747,8775738,4660202,4616522,4616130,4584941,true,1109,760,340,384,284,296,1146,557,608,1283,1287,1288,1300,1339,1,326,367,30,41,53,54,76,108,235,264,301,539,555,580,679,1398]
#5
⏱️ 7.27 мс
select * from "stores" where "stores"."id" in (1, 30, 76, 108, 235, 264, 284, 296, 301, 326, 340, 367, 384, 539)
#6
⏱️ 32.33 мс
select * from "store_prices" where "master_product_id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and "price" > ? and "store_id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
Bindings:
[8775816,8775815,8775810,8775804,8775803,8775802,8775801,8775755,4574975,4001201,1429426,1429424,249788,244506,190949,181751,166724,160865,156053,115120,101406,98575,98574,8775817,8775750,8775749,8775747,8775738,4660202,4616522,4616130,4584941,0,1109,760,340,384,284,296,1146,557,608,1283,1287,1288,1300,1339,1,326,367,30,41,53,54,76,108,235,264,301,539,555,580,679,1398]
#7
⏱️ 7.21 мс
select * from "stores" where "stores"."id" in (1, 30, 76, 108, 235, 264, 284, 296, 301, 326, 340, 367, 384, 539, 555, 557, 608, 760)
#8
⏱️ 5.59 мс
select * from "locations" where "city_slug" = ? limit 1
Bindings:
["ramat-gan"]
#9
⏱️ 6.89 мс
select * from "locations" where "is_popular" = ? order by "sort_order" asc
Bindings:
[true]
#10
⏱️ 7.29 мс
select * from "locations" where "is_active" = ? order by "is_popular" desc, "sort_order" asc
Bindings:
[true]