#1
⏱️ 146.85 мс
select "id" from "stores" where "is_active" = ? and "city_slug" = ?
Bindings:
[true,"haifa"]
#2
⏱️ 138.66 мс
select count(*) as "aggregate" from "master_products" where "barcode" is not null and "category_slug" = ? and "subcategory_slug" = ? and (exists (select 1 from "store_prices" where "store_prices"."master_product_id" = "master_products"."id" and "store_prices"."store_id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)) or exists (select 1 from "deals" where "deals"."master_product_id" = "master_products"."id" and "deals"."is_active" = ? and "deals"."store_id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)))
Bindings:
["baby","diapers_hygiene",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
⏱️ 60.95 мс
select * from "master_products" where "barcode" is not null and "category_slug" = ? and "subcategory_slug" = ? and (exists (select 1 from "store_prices" where "store_prices"."master_product_id" = "master_products"."id" and "store_prices"."store_id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)) or exists (select 1 from "deals" where "deals"."master_product_id" = "master_products"."id" and "deals"."is_active" = ? and "deals"."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:
["baby","diapers_hygiene",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
⏱️ 112.67 мс
select * from "deals" where "master_product_id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and "is_active" = ? and "store_id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
Bindings:
[4067534,2634246,1546237,1525313,1515427,1498779,1490556,1488873,1476888,1476886,1474648,1436870,1436357,1436355,1436353,1434609,1434608,1434556,1434065,1434063,1434014,1434013,1432376,1432362,1432352,1432351,1429428,1429427,1429425,1428196,1427713,1426773,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
⏱️ 4.28 мс
select * from "stores" where "stores"."id" in (8, 9, 12, 13, 15, 28, 102, 137, 202, 211, 220, 233, 309, 319, 323, 331, 366, 701, 716, 1111, 1140, 1156, 1207, 1244, 1275, 1291, 1292, 1345, 1356, 1369, 1388)
#6
⏱️ 23.91 мс
select * from "store_prices" where "master_product_id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and "price" > ? and "store_id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
Bindings:
[4067534,2634246,1546237,1525313,1515427,1498779,1490556,1488873,1476888,1476886,1474648,1436870,1436357,1436355,1436353,1434609,1434608,1434556,1434065,1434063,1434014,1434013,1432376,1432362,1432352,1432351,1429428,1429427,1429425,1428196,1427713,1426773,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
⏱️ 10.6 мс
select * from "stores" where "stores"."id" in (8, 9, 12, 13, 15, 28, 102, 137, 202, 211, 220, 233, 309, 319, 323, 331, 366, 422, 434, 701, 707)
#8
⏱️ 10.09 мс
select * from "locations" where "city_slug" = ? limit 1
Bindings:
["haifa"]
#9
⏱️ 19.83 мс
select * from "locations" where "is_popular" = ? order by "sort_order" asc
Bindings:
[true]
#10
⏱️ 18.1 мс
select * from "locations" where "is_active" = ? order by "is_popular" desc, "sort_order" asc
Bindings:
[true]