#1
⏱️ 155.81 мс
select "id" from "stores" where "is_active" = ? and "city_slug" = ?
Bindings:
[true,"rishon-le-zion"]
#2
⏱️ 1191.47 мс
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:
["meat",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
⏱️ 916.49 мс
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:
["meat",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
⏱️ 30.25 мс
select * from "deals" where "master_product_id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and "is_active" = ? and "store_id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
Bindings:
[1427805,967971,788246,310280,251644,211771,200566,199992,199991,190928,190599,190598,190597,190596,190595,190594,190593,190592,190591,190590,190589,190588,190587,189923,189919,189916,189800,189799,189798,189797,189796,189794,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
⏱️ 8.98 мс
select * from "stores" where "stores"."id" in (22, 92, 116, 129, 150, 299, 399)
#6
⏱️ 19.33 мс
select * from "store_prices" where "master_product_id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and "price" > ? and "store_id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
Bindings:
[1427805,967971,788246,310280,251644,211771,200566,199992,199991,190928,190599,190598,190597,190596,190595,190594,190593,190592,190591,190590,190589,190588,190587,189923,189919,189916,189800,189799,189798,189797,189796,189794,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
⏱️ 5.17 мс
select * from "stores" where "stores"."id" in (22, 92, 116, 129, 150, 175, 299, 321, 343, 399, 427, 586, 600, 617, 749, 769)
#8
⏱️ 10.93 мс
select * from "locations" where "city_slug" = ? limit 1
Bindings:
["rishon-le-zion"]
#9
⏱️ 18.74 мс
select * from "locations" where "is_popular" = ? order by "sort_order" asc
Bindings:
[true]
#10
⏱️ 13.81 мс
select * from "locations" where "is_active" = ? order by "is_popular" desc, "sort_order" asc
Bindings:
[true]