#1
⏱️ 205.59 мс
select "id" from "stores" where "is_active" = ? and "city_slug" = ?
Bindings:
[true,"petah-tikva"]
#2
⏱️ 1806.59 мс
select count(*) as "aggregate" from "master_products" where "barcode" is not null 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:
[18,732,750,771,190,356,1145,1211,1239,1246,1262,1306,1328,1334,324,330,391,34,35,103,146,152,174,191,216,224,276,338,448,484,503,504,505,1354,553,575,579,648,655,662,681,688,689,104,257,308,true,18,732,750,771,190,356,1145,1211,1239,1246,1262,1306,1328,1334,324,330,391,34,35,103,146,152,174,191,216,224,276,338,448,484,503,504,505,1354,553,575,579,648,655,662,681,688,689,104,257,308]
#3
⏱️ 2525.71 мс
select * from "master_products" where "barcode" is not null 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 96 offset 0
Bindings:
[18,732,750,771,190,356,1145,1211,1239,1246,1262,1306,1328,1334,324,330,391,34,35,103,146,152,174,191,216,224,276,338,448,484,503,504,505,1354,553,575,579,648,655,662,681,688,689,104,257,308,true,18,732,750,771,190,356,1145,1211,1239,1246,1262,1306,1328,1334,324,330,391,34,35,103,146,152,174,191,216,224,276,338,448,484,503,504,505,1354,553,575,579,648,655,662,681,688,689,104,257,308]
#4
⏱️ 9.6 мс
select * from "canonical_products" where "canonical_products"."id" in (3, 4, 16, 19, 28, 31, 37, 44, 84, 159, 194)
#5
⏱️ 5.22 мс
select "id", "canonical_product_id" from "master_products" where "canonical_product_id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
Bindings:
[3,37,31,16,28,4,159,19,194,84,44]
#6
⏱️ 478.47 мс
select * from "deals" where "master_product_id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and "is_active" = ? and "store_id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
Bindings:
[8775869,8775868,8775867,8775866,8775865,8775864,8775863,8775862,8775861,8775860,8775859,8775858,8775857,8775856,8775855,8775854,8775853,8775852,8775851,8775850,8775849,8775848,8775847,8775846,8775845,8775844,8775843,8775842,8775841,8775840,8775839,8775838,8775837,8775836,8775835,8775834,8775833,8775832,8775831,8775830,8775829,8775828,8775827,8775826,8775825,8775816,8775815,8775810,8775804,8775803,8775802,8775801,8775782,8775781,8775755,8775713,8775712,8775711,8775710,8775709,8775708,8775707,8775651,8775580,8775546,8775533,8775532,8775528,8775519,8775509,8506300,7569492,7568127,7565762,7562101,7561917,7557005,7550923,7529435,7502589,7482266,7466366,7463215,7461021,7460374,7460373,7455589,7455588,7455068,7452304,7446739,7443254,7439517,7431628,7428697,7252747,2645047,7696015,199939,4869230,4619338,4533490,189745,2642425,2671007,190787,4034737,2190109,133509,1952651,7471561,195114,160641,154948,363774,4042739,160958,189969,3619438,622184,190924,154941,95625,97843,2609947,115658,111499,114703,115686,160965,1454922,165505,1941919,1456452,157163,191901,195947,157276,4029456,true,18,732,750,771,190,356,1145,1211,1239,1246,1262,1306,1328,1334,324,330,391,34,35,103,146,152,174,191,216,224,276,338,448,484,503,504,505,1354,553,575,579,648,655,662,681,688,689,104,257,308]
#7
⏱️ 6.57 мс
select * from "stores" where "stores"."id" in (18, 34, 35, 103, 104, 146, 152, 276, 324, 330, 338, 391, 732)
#8
⏱️ 160.76 мс
select min(sp.id) as best_sp_id from "store_prices" as "sp" where "sp"."master_product_id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and "sp"."price" > ? and "sp"."store_id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) group by sp.store_id, CASE WHEN sp.master_product_id = 8775857 THEN 8775825 WHEN sp.master_product_id = 8775862 THEN 8775825 WHEN sp.master_product_id = 8775826 THEN 8775825 WHEN sp.master_product_id = 8775829 THEN 8775825 WHEN sp.master_product_id = 8775830 THEN 8775825 WHEN sp.master_product_id = 8775837 THEN 8775825 WHEN sp.master_product_id = 8775838 THEN 8775825 WHEN sp.master_product_id = 8775841 THEN 8775825 WHEN sp.master_product_id = 8775842 THEN 8775825 WHEN sp.master_product_id = 8775845 THEN 8775825 WHEN sp.master_product_id = 8775843 THEN 8775825 WHEN sp.master_product_id = 8775844 THEN 8775825 WHEN sp.master_product_id = 8775847 THEN 8775825 WHEN sp.master_product_id = 8775846 THEN 8775825 WHEN sp.master_product_id = 8775848 THEN 8775825 WHEN sp.master_product_id = 8775850 THEN 8775825 WHEN sp.master_product_id = 8775851 THEN 8775825 WHEN sp.master_product_id = 8775859 THEN 8775825 WHEN sp.master_product_id = 8775861 THEN 8775825 WHEN sp.master_product_id = 8775867 THEN 8775825 WHEN sp.master_product_id = 8775868 THEN 8775825 WHEN sp.master_product_id = 2645047 THEN 8775825 WHEN sp.master_product_id = 7696015 THEN 8775825 WHEN sp.master_product_id = 8775839 THEN 8775825 WHEN sp.master_product_id = 8775856 THEN 8775825 WHEN sp.master_product_id = 8775858 THEN 8775825 WHEN sp.master_product_id = 8775860 THEN 8775825 WHEN sp.master_product_id = 8775863 THEN 8775825 WHEN sp.master_product_id = 8775864 THEN 8775825 WHEN sp.master_product_id = 199939 THEN 8775825 WHEN sp.master_product_id = 4869230 THEN 8775825 WHEN sp.master_product_id = 4619338 THEN 8775825 WHEN sp.master_product_id = 8775832 THEN 8775825 WHEN sp.master_product_id = 8775833 THEN 8775825 WHEN sp.master_product_id = 8775836 THEN 8775825 WHEN sp.master_product_id = 8775865 THEN 8775825 WHEN sp.master_product_id = 8775825 THEN 8775825 WHEN sp.master_product_id = 8775828 THEN 8775825 WHEN sp.master_product_id = 4533490 THEN 8775825 WHEN sp.master_product_id = 189745 THEN 8775825 WHEN sp.master_product_id = 8775840 THEN 8775825 WHEN sp.master_product_id = 8775849 THEN 8775825 WHEN sp.master_product_id = 8775853 THEN 8775825 WHEN sp.master_product_id = 8775855 THEN 8775825 WHEN sp.master_product_id = 8775866 THEN 8775825 WHEN sp.master_product_id = 2642425 THEN 8775825 WHEN sp.master_product_id = 2671007 THEN 8775825 WHEN sp.master_product_id = 8775827 THEN 8775825 WHEN sp.master_product_id = 8775831 THEN 8775825 WHEN sp.master_product_id = 8775834 THEN 8775825 WHEN sp.master_product_id = 8775835 THEN 8775825 WHEN sp.master_product_id = 8775852 THEN 8775825 WHEN sp.master_product_id = 8775854 THEN 8775825 WHEN sp.master_product_id = 8775869 THEN 8775825 WHEN sp.master_product_id = 190787 THEN 8775825 WHEN sp.master_product_id = 4034737 THEN 7569492 WHEN sp.master_product_id = 2190109 THEN 7569492 WHEN sp.master_product_id = 133509 THEN 7569492 WHEN sp.master_product_id = 7569492 THEN 7569492 WHEN sp.master_product_id = 1952651 THEN 7569492 WHEN sp.master_product_id = 8775528 THEN 8775528 WHEN sp.master_product_id = 7471561 THEN 8775528 WHEN sp.master_product_id = 195114 THEN 7557005 WHEN sp.master_product_id = 7557005 THEN 7557005 WHEN sp.master_product_id = 160641 THEN 7557005 WHEN sp.master_product_id = 154948 THEN 7557005 WHEN sp.master_product_id = 363774 THEN 7557005 WHEN sp.master_product_id = 4042739 THEN 7557005 WHEN sp.master_product_id = 160958 THEN 7557005 WHEN sp.master_product_id = 189969 THEN 7557005 WHEN sp.master_product_id = 3619438 THEN 8506300 WHEN sp.master_product_id = 8506300 THEN 8506300 WHEN sp.master_product_id = 622184 THEN 8506300 WHEN sp.master_product_id = 190924 THEN 8506300 WHEN sp.master_product_id = 154941 THEN 8506300 WHEN sp.master_product_id = 95625 THEN 8506300 WHEN sp.master_product_id = 97843 THEN 8506300 WHEN sp.master_product_id = 8775708 THEN 8775707 WHEN sp.master_product_id = 8775709 THEN 8775707 WHEN sp.master_product_id = 8775712 THEN 8775707 WHEN sp.master_product_id = 8775707 THEN 8775707 WHEN sp.master_product_id = 8775710 THEN 8775707 WHEN sp.master_product_id = 8775711 THEN 8775707 WHEN sp.master_product_id = 2609947 THEN 8775707 WHEN sp.master_product_id = 115658 THEN 8775707 WHEN sp.master_product_id = 8775713 THEN 8775707 WHEN sp.master_product_id = 111499 THEN 8775707 WHEN sp.master_product_id = 114703 THEN 8775707 WHEN sp.master_product_id = 115686 THEN 8775707 WHEN sp.master_product_id = 8775781 THEN 8775781 WHEN sp.master_product_id = 8775782 THEN 8775781 WHEN sp.master_product_id = 7428697 THEN 7428697 WHEN sp.master_product_id = 160965 THEN 7428697 WHEN sp.master_product_id = 7461021 THEN 7461021 WHEN sp.master_product_id = 1454922 THEN 7461021 WHEN sp.master_product_id = 165505 THEN 7461021 WHEN sp.master_product_id = 7561917 THEN 7561917 WHEN sp.master_product_id = 1941919 THEN 7561917 WHEN sp.master_product_id = 1456452 THEN 7561917 WHEN sp.master_product_id = 157163 THEN 7561917 WHEN sp.master_product_id = 191901 THEN 7561917 WHEN sp.master_product_id = 195947 THEN 7561917 WHEN sp.master_product_id = 157276 THEN 7561917 WHEN sp.master_product_id = 4029456 THEN 7529435 WHEN sp.master_product_id = 7529435 THEN 7529435 ELSE sp.master_product_id END limit 500
Bindings:
[8775869,8775868,8775867,8775866,8775865,8775864,8775863,8775862,8775861,8775860,8775859,8775858,8775857,8775856,8775855,8775854,8775853,8775852,8775851,8775850,8775849,8775848,8775847,8775846,8775845,8775844,8775843,8775842,8775841,8775840,8775839,8775838,8775837,8775836,8775835,8775834,8775833,8775832,8775831,8775830,8775829,8775828,8775827,8775826,8775825,8775816,8775815,8775810,8775804,8775803,8775802,8775801,8775782,8775781,8775755,8775713,8775712,8775711,8775710,8775709,8775708,8775707,8775651,8775580,8775546,8775533,8775532,8775528,8775519,8775509,8506300,7569492,7568127,7565762,7562101,7561917,7557005,7550923,7529435,7502589,7482266,7466366,7463215,7461021,7460374,7460373,7455589,7455588,7455068,7452304,7446739,7443254,7439517,7431628,7428697,7252747,2645047,7696015,199939,4869230,4619338,4533490,189745,2642425,2671007,190787,4034737,2190109,133509,1952651,7471561,195114,160641,154948,363774,4042739,160958,189969,3619438,622184,190924,154941,95625,97843,2609947,115658,111499,114703,115686,160965,1454922,165505,1941919,1456452,157163,191901,195947,157276,4029456,0,18,732,750,771,190,356,1145,1211,1239,1246,1262,1306,1328,1334,324,330,391,34,35,103,146,152,174,191,216,224,276,338,448,484,503,504,505,1354,553,575,579,648,655,662,681,688,689,104,257,308]
#9
⏱️ 34.63 мс
select * from "store_prices" where "id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
Bindings:
[6058174,5530322,793518,4236759,6546949,5167294,4841747,5344733,5340205,682236,1044899,1062588,4359974,775259,1353065,2250722,2241647,2529881,2527648,2527282,2530400,2531004,2530361,2608396,2610318,2608006,2608007,2610656,2610657,2605743,2610311,2610839,2609908,2612323,2614457,2614650,2610969,2610970,2614498,2614609,2615185,2614500,2616609,2618816,2621795,2618496,2618658,2618659,2622493,2622494,2618475,2618696,2616611,2616605,2622586,2616866,2616865,2618230,3550072,3551859,3550065,3680336,3678373,3702614,3703757,3702611,3828278,4066670,4026465,4027626,4027669,4027712,4027755,4027927,4028013,4028056,4028658,282181,1735042,275643,7710327,2767010,2769203,7705385,2767844,2766756]
#10
⏱️ 6.22 мс
select * from "stores" where "stores"."id" in (18, 34, 35, 103, 104, 146, 152, 276, 308, 324, 330, 338, 356, 391, 448, 484, 503, 504, 505, 553, 575, 579, 732, 750, 771)
#11
⏱️ 13.35 мс
select * from "stores" where "is_active" = ? and "latitude" is not null and "longitude" is not null and "city_slug" = ?
Bindings:
[true,"petah-tikva"]
#12
⏱️ 198.03 мс
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:
[18,732,750,771,190,356,1145,1211,1239,1246,1262,1306,1328,1334,34,35,103,146,152,174,191,216,224,276,338,448,484,503,504,505,1354,553,575,579,648,655,662,681,688,689,104,257,308,true,"2026-09-08T05:04:35.693695Z"]
#13
⏱️ 17.83 мс
select * from "locations" where "city_slug" = ? limit 1
Bindings:
["petah-tikva"]
#14
⏱️ 21.44 мс
select * from "locations" where "is_popular" = ? order by "sort_order" asc
Bindings:
[true]
#15
⏱️ 26.63 мс
select * from "locations" where "is_active" = ? order by "is_popular" desc, "sort_order" asc
Bindings:
[true]