#1
⏱️ 101.31 мс
select "id" from "stores" where "is_active" = ? and "city_slug" = ?
Bindings:
[true,"rishon-le-zion"]
#2
⏱️ 595.03 мс
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:
["meat","beef_lamb",3,731,749,769,321,343,1142,1160,1230,1232,1261,586,1280,600,617,1305,1312,1321,299,399,1349,39,92,116,129,126,150,175,196,238,365,427,457,508,509,1352,547,578,685,690,691,1384,22,true,3,731,749,769,321,343,1142,1160,1230,1232,1261,586,1280,600,617,1305,1312,1321,299,399,1349,39,92,116,129,126,150,175,196,238,365,427,457,508,509,1352,547,578,685,690,691,1384,22]
#3
⏱️ 185.27 мс
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:
["meat","beef_lamb",3,731,749,769,321,343,1142,1160,1230,1232,1261,586,1280,600,617,1305,1312,1321,299,399,1349,39,92,116,129,126,150,175,196,238,365,427,457,508,509,1352,547,578,685,690,691,1384,22,true,3,731,749,769,321,343,1142,1160,1230,1232,1261,586,1280,600,617,1305,1312,1321,299,399,1349,39,92,116,129,126,150,175,196,238,365,427,457,508,509,1352,547,578,685,690,691,1384,22]
#4
⏱️ 105.98 мс
select * from "deals" where "master_product_id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and "is_active" = ? and "store_id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
Bindings:
[1427805,967971,199991,190594,189797,189793,189792,164707,163802,133954,128118,124785,108230,108071,107853,107851,105210,100994,100918,100917,100916,100915,100913,100912,100897,100895,100894,100854,100853,100852,100851,100772,true,3,731,749,769,321,343,1142,1160,1230,1232,1261,586,1280,600,617,1305,1312,1321,299,399,1349,39,92,116,129,126,150,175,196,238,365,427,457,508,509,1352,547,578,685,690,691,1384,22]
#5
⏱️ 6.72 мс
select * from "stores" where "stores"."id" in (3, 22, 92, 116, 126, 129, 150, 299, 321, 343, 365, 399)
#6
⏱️ 31.69 мс
select * from "store_prices" where "master_product_id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and "price" > ? and "store_id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
Bindings:
[1427805,967971,199991,190594,189797,189793,189792,164707,163802,133954,128118,124785,108230,108071,107853,107851,105210,100994,100918,100917,100916,100915,100913,100912,100897,100895,100894,100854,100853,100852,100851,100772,0,3,731,749,769,321,343,1142,1160,1230,1232,1261,586,1280,600,617,1305,1312,1321,299,399,1349,39,92,116,129,126,150,175,196,238,365,427,457,508,509,1352,547,578,685,690,691,1384,22]
#7
⏱️ 12.93 мс
select * from "stores" where "stores"."id" in (3, 22, 92, 116, 126, 129, 150, 175, 299, 321, 343, 365, 399, 427, 457, 547, 578, 586, 600, 617, 749, 769)
#8
⏱️ 15.18 мс
select * from "stores" where "is_active" = ? and "latitude" is not null and "longitude" is not null and "city_slug" = ?
Bindings:
[true,"rishon-le-zion"]
#9
⏱️ 148.4 мс
select store_id, count(*) as total from "deals" where "store_id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and "is_active" = ? and ("expires_at" is null or "expires_at" >= ?) group by "store_id"
Bindings:
[3,731,749,769,321,343,1142,1160,1230,1232,1261,586,1280,600,617,1305,1312,1321,1349,39,92,116,129,126,150,175,196,238,365,427,457,508,509,1352,547,578,685,690,691,1384,22,true,"2026-09-08T07:07:01.410069Z"]
#10
⏱️ 1.65 мс
select * from "locations" where "city_slug" = ? limit 1
Bindings:
["rishon-le-zion"]
#11
⏱️ 9.37 мс
select * from "locations" where "is_popular" = ? order by "sort_order" asc
Bindings:
[true]
#12
⏱️ 5.51 мс
select * from "locations" where "is_active" = ? order by "is_popular" desc, "sort_order" asc
Bindings:
[true]