#1
⏱️ 90.96 мс
select "id" from "stores" where "is_active" = ? and "city_slug" = ?
Bindings:
[true,"eilat"]
#2
⏱️ 838.31 мс
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:
["household",1112,755,767,777,1143,1182,1196,1264,148,123,180,237,252,363,481,1379,21,true,1112,755,767,777,1143,1182,1196,1264,148,123,180,237,252,363,481,1379,21]
#3
⏱️ 795.22 мс
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:
["household",1112,755,767,777,1143,1182,1196,1264,148,123,180,237,252,363,481,1379,21,true,1112,755,767,777,1143,1182,1196,1264,148,123,180,237,252,363,481,1379,21]
#4
⏱️ 20.93 мс
select * from "deals" where "master_product_id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and "is_active" = ? and "store_id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
Bindings:
[1599254,1555542,1555497,1551600,1516114,1515669,1501043,1477928,1477241,1476951,1474464,1472874,1452541,1438523,1438359,1437529,1437316,1436920,1434633,1434060,1433680,1433671,1433667,1433597,1433590,1433586,1432944,1432943,1432942,1432939,1432936,1432702,true,1112,755,767,777,1143,1182,1196,1264,148,123,180,237,252,363,481,1379,21]
#5
⏱️ 6.8 мс
select * from "stores" where "stores"."id" in (21, 180, 237, 252)
#6
⏱️ 22.93 мс
select * from "store_prices" where "master_product_id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and "price" > ? and "store_id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
Bindings:
[1599254,1555542,1555497,1551600,1516114,1515669,1501043,1477928,1477241,1476951,1474464,1472874,1452541,1438523,1438359,1437529,1437316,1436920,1434633,1434060,1433680,1433671,1433667,1433597,1433590,1433586,1432944,1432943,1432942,1432939,1432936,1432702,0,1112,755,767,777,1143,1182,1196,1264,148,123,180,237,252,363,481,1379,21]
#7
⏱️ 1.01 мс
select * from "stores" where "stores"."id" in (21, 180, 237, 252)
#8
⏱️ 7.67 мс
select * from "locations" where "city_slug" = ? limit 1
Bindings:
["eilat"]
#9
⏱️ 8.07 мс
select * from "locations" where "is_popular" = ? order by "sort_order" asc
Bindings:
[true]
#10
⏱️ 11.54 мс
select * from "locations" where "is_active" = ? order by "is_popular" desc, "sort_order" asc
Bindings:
[true]