#1
⏱️ 121.86 мс
select "id" from "stores" where "is_active" = ? and "city_slug" = ?
Bindings:
[true,"haifa"]
#2
⏱️ 1063.71 мс
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",1111,13,701,707,716,734,721,211,220,309,323,1140,1156,1207,1244,1275,583,1291,1292,657,1345,9,319,331,8,15,28,49,52,57,61,62,67,72,89,102,137,202,233,422,434,468,472,474,1356,558,658,671,1369,1388,366,12,74,true,1111,13,701,707,716,734,721,211,220,309,323,1140,1156,1207,1244,1275,583,1291,1292,657,1345,9,319,331,8,15,28,49,52,57,61,62,67,72,89,102,137,202,233,422,434,468,472,474,1356,558,658,671,1369,1388,366,12,74]
#3
⏱️ 861.21 мс
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",1111,13,701,707,716,734,721,211,220,309,323,1140,1156,1207,1244,1275,583,1291,1292,657,1345,9,319,331,8,15,28,49,52,57,61,62,67,72,89,102,137,202,233,422,434,468,472,474,1356,558,658,671,1369,1388,366,12,74,true,1111,13,701,707,716,734,721,211,220,309,323,1140,1156,1207,1244,1275,583,1291,1292,657,1345,9,319,331,8,15,28,49,52,57,61,62,67,72,89,102,137,202,233,422,434,468,472,474,1356,558,658,671,1369,1388,366,12,74]
#4
⏱️ 73.88 мс
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,2662602,2641224,1434258,1431089,1431087,1431086,1431085,1429426,1429424,1429411,1426465,1422325,1422324,1422323,1422320,1422318,1422310,1422114,1422113,1422112,1421114,1419338,1419028,true,1111,13,701,707,716,734,721,211,220,309,323,1140,1156,1207,1244,1275,583,1291,1292,657,1345,9,319,331,8,15,28,49,52,57,61,62,67,72,89,102,137,202,233,422,434,468,472,474,1356,558,658,671,1369,1388,366,12,74]
#5
⏱️ 9.47 мс
select * from "stores" where "stores"."id" in (202, 211, 220, 716, 734)
#6
⏱️ 26.44 мс
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,2662602,2641224,1434258,1431089,1431087,1431086,1431085,1429426,1429424,1429411,1426465,1422325,1422324,1422323,1422320,1422318,1422310,1422114,1422113,1422112,1421114,1419338,1419028,0,1111,13,701,707,716,734,721,211,220,309,323,1140,1156,1207,1244,1275,583,1291,1292,657,1345,9,319,331,8,15,28,49,52,57,61,62,67,72,89,102,137,202,233,422,434,468,472,474,1356,558,658,671,1369,1388,366,12,74]
#7
⏱️ 3.78 мс
select * from "stores" where "stores"."id" in (8, 202, 211, 220, 422, 434, 472, 707, 734)
#8
⏱️ 16.49 мс
select * from "locations" where "city_slug" = ? limit 1
Bindings:
["haifa"]
#9
⏱️ 14.84 мс
select * from "locations" where "is_popular" = ? order by "sort_order" asc
Bindings:
[true]
#10
⏱️ 19.05 мс
select * from "locations" where "is_active" = ? order by "is_popular" desc, "sort_order" asc
Bindings:
[true]