#1
⏱️ 45.04 мс
select "id" from "stores" where "is_active" = ? and "city_slug" = ?
Bindings:
[true,"ramat-gan"]
#2
⏱️ 511.23 мс
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:
[1109,760,340,384,284,296,1146,557,608,1283,1287,1288,1300,1339,1,326,367,30,41,53,54,76,108,235,264,301,539,555,580,679,1398,true,1109,760,340,384,284,296,1146,557,608,1283,1287,1288,1300,1339,1,326,367,30,41,53,54,76,108,235,264,301,539,555,580,679,1398]
#3
⏱️ 655.26 мс
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 288
Bindings:
[1109,760,340,384,284,296,1146,557,608,1283,1287,1288,1300,1339,1,326,367,30,41,53,54,76,108,235,264,301,539,555,580,679,1398,true,1109,760,340,384,284,296,1146,557,608,1283,1287,1288,1300,1339,1,326,367,30,41,53,54,76,108,235,264,301,539,555,580,679,1398]
#4
⏱️ 3.64 мс
select * from "canonical_products" where "canonical_products"."id" in (3, 49, 53, 129, 275, 308, 310, 313, 314)
#5
⏱️ 1.96 мс
select "id", "canonical_product_id" from "master_products" where "canonical_product_id" in (?, ?, ?, ?, ?, ?, ?, ?, ?)
Bindings:
[275,3,313,314,310,49,308,129,53]
#6
⏱️ 59.6 мс
select * from "deals" where "master_product_id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and "is_active" = ? and "store_id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
Bindings:
[4540339,4540285,4539975,4539502,4535017,4534927,4534846,4534774,4534738,4534639,4534637,4534609,4534608,4534601,4534184,4534183,4533815,4533540,4533538,4533528,4533508,4533498,4533490,4532830,4531886,4531885,4529854,4529153,4528085,4528009,4527798,4527795,4527794,4526929,4526816,4525248,4524191,4524189,4522965,4522964,4213380,4193606,4116124,4096508,4095651,4085054,4077839,4077655,4073788,4073680,4073673,4073634,4073345,4073344,4073343,4072560,4072452,4072451,4070635,4068252,4067970,4067969,4067751,4067750,4067541,4067534,4067533,4067304,4066985,4066766,4066305,4065908,4065750,4065749,4065279,4064767,4064694,4063255,4062299,4062070,4062032,4061991,4061313,4060087,4059957,4059577,4059543,4058397,4057840,4057513,4056979,4056893,4056801,4056423,4051230,4051227,8775857,8775862,8775826,8775829,8775830,8775837,8775838,8775841,8775842,8775845,8775843,8775844,8775847,8775846,8775848,8775850,8775851,8775859,8775861,8775867,8775868,2645047,7696015,8775839,8775856,8775858,8775860,8775863,8775864,199939,4869230,4619338,8775832,8775833,8775836,8775865,8775825,8775828,189745,8775840,8775849,8775853,8775855,8775866,2642425,2671007,8775827,8775831,8775834,8775835,8775852,8775854,8775869,190787,157207,1456451,154874,160600,162815,96257,149434,2661944,154964,1907955,133473,109566,190782,2663682,1059071,4983721,97174,158802,97181,96295,true,1109,760,340,384,284,296,1146,557,608,1283,1287,1288,1300,1339,1,326,367,30,41,53,54,76,108,235,264,301,539,555,580,679,1398]
#7
⏱️ 1.07 мс
select * from "stores" where "stores"."id" in (1, 30, 76, 108, 284, 296, 326, 340, 367, 384, 539, 1109, 1146, 1283, 1287, 1288, 1300, 1339, 1398)
#8
⏱️ 60.5 мс
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 4533490 WHEN sp.master_product_id = 8775862 THEN 4533490 WHEN sp.master_product_id = 8775826 THEN 4533490 WHEN sp.master_product_id = 8775829 THEN 4533490 WHEN sp.master_product_id = 8775830 THEN 4533490 WHEN sp.master_product_id = 8775837 THEN 4533490 WHEN sp.master_product_id = 8775838 THEN 4533490 WHEN sp.master_product_id = 8775841 THEN 4533490 WHEN sp.master_product_id = 8775842 THEN 4533490 WHEN sp.master_product_id = 8775845 THEN 4533490 WHEN sp.master_product_id = 8775843 THEN 4533490 WHEN sp.master_product_id = 8775844 THEN 4533490 WHEN sp.master_product_id = 8775847 THEN 4533490 WHEN sp.master_product_id = 8775846 THEN 4533490 WHEN sp.master_product_id = 8775848 THEN 4533490 WHEN sp.master_product_id = 8775850 THEN 4533490 WHEN sp.master_product_id = 8775851 THEN 4533490 WHEN sp.master_product_id = 8775859 THEN 4533490 WHEN sp.master_product_id = 8775861 THEN 4533490 WHEN sp.master_product_id = 8775867 THEN 4533490 WHEN sp.master_product_id = 8775868 THEN 4533490 WHEN sp.master_product_id = 2645047 THEN 4533490 WHEN sp.master_product_id = 7696015 THEN 4533490 WHEN sp.master_product_id = 8775839 THEN 4533490 WHEN sp.master_product_id = 8775856 THEN 4533490 WHEN sp.master_product_id = 8775858 THEN 4533490 WHEN sp.master_product_id = 8775860 THEN 4533490 WHEN sp.master_product_id = 8775863 THEN 4533490 WHEN sp.master_product_id = 8775864 THEN 4533490 WHEN sp.master_product_id = 199939 THEN 4533490 WHEN sp.master_product_id = 4869230 THEN 4533490 WHEN sp.master_product_id = 4619338 THEN 4533490 WHEN sp.master_product_id = 8775832 THEN 4533490 WHEN sp.master_product_id = 8775833 THEN 4533490 WHEN sp.master_product_id = 8775836 THEN 4533490 WHEN sp.master_product_id = 8775865 THEN 4533490 WHEN sp.master_product_id = 8775825 THEN 4533490 WHEN sp.master_product_id = 8775828 THEN 4533490 WHEN sp.master_product_id = 4533490 THEN 4533490 WHEN sp.master_product_id = 189745 THEN 4533490 WHEN sp.master_product_id = 8775840 THEN 4533490 WHEN sp.master_product_id = 8775849 THEN 4533490 WHEN sp.master_product_id = 8775853 THEN 4533490 WHEN sp.master_product_id = 8775855 THEN 4533490 WHEN sp.master_product_id = 8775866 THEN 4533490 WHEN sp.master_product_id = 2642425 THEN 4533490 WHEN sp.master_product_id = 2671007 THEN 4533490 WHEN sp.master_product_id = 8775827 THEN 4533490 WHEN sp.master_product_id = 8775831 THEN 4533490 WHEN sp.master_product_id = 8775834 THEN 4533490 WHEN sp.master_product_id = 8775835 THEN 4533490 WHEN sp.master_product_id = 8775852 THEN 4533490 WHEN sp.master_product_id = 8775854 THEN 4533490 WHEN sp.master_product_id = 8775869 THEN 4533490 WHEN sp.master_product_id = 190787 THEN 4533490 WHEN sp.master_product_id = 157207 THEN 4526816 WHEN sp.master_product_id = 4526816 THEN 4526816 WHEN sp.master_product_id = 1456451 THEN 4526816 WHEN sp.master_product_id = 154874 THEN 4526816 WHEN sp.master_product_id = 160600 THEN 4526816 WHEN sp.master_product_id = 162815 THEN 4526816 WHEN sp.master_product_id = 96257 THEN 4526816 WHEN sp.master_product_id = 149434 THEN 4526816 WHEN sp.master_product_id = 2661944 THEN 4526816 WHEN sp.master_product_id = 4064767 THEN 4064767 WHEN sp.master_product_id = 154964 THEN 4064767 WHEN sp.master_product_id = 1907955 THEN 4524191 WHEN sp.master_product_id = 4524191 THEN 4524191 WHEN sp.master_product_id = 133473 THEN 4524191 WHEN sp.master_product_id = 109566 THEN 4524191 WHEN sp.master_product_id = 190782 THEN 4524191 WHEN sp.master_product_id = 2663682 THEN 4534927 WHEN sp.master_product_id = 1059071 THEN 4534927 WHEN sp.master_product_id = 4534927 THEN 4534927 WHEN sp.master_product_id = 4983721 THEN 4525248 WHEN sp.master_product_id = 4525248 THEN 4525248 WHEN sp.master_product_id = 97174 THEN 4527794 WHEN sp.master_product_id = 4527794 THEN 4527794 WHEN sp.master_product_id = 4529854 THEN 4529854 WHEN sp.master_product_id = 158802 THEN 4529854 WHEN sp.master_product_id = 97181 THEN 4527795 WHEN sp.master_product_id = 4527795 THEN 4527795 WHEN sp.master_product_id = 96295 THEN 4527795 ELSE sp.master_product_id END limit 500
Bindings:
[4540339,4540285,4539975,4539502,4535017,4534927,4534846,4534774,4534738,4534639,4534637,4534609,4534608,4534601,4534184,4534183,4533815,4533540,4533538,4533528,4533508,4533498,4533490,4532830,4531886,4531885,4529854,4529153,4528085,4528009,4527798,4527795,4527794,4526929,4526816,4525248,4524191,4524189,4522965,4522964,4213380,4193606,4116124,4096508,4095651,4085054,4077839,4077655,4073788,4073680,4073673,4073634,4073345,4073344,4073343,4072560,4072452,4072451,4070635,4068252,4067970,4067969,4067751,4067750,4067541,4067534,4067533,4067304,4066985,4066766,4066305,4065908,4065750,4065749,4065279,4064767,4064694,4063255,4062299,4062070,4062032,4061991,4061313,4060087,4059957,4059577,4059543,4058397,4057840,4057513,4056979,4056893,4056801,4056423,4051230,4051227,8775857,8775862,8775826,8775829,8775830,8775837,8775838,8775841,8775842,8775845,8775843,8775844,8775847,8775846,8775848,8775850,8775851,8775859,8775861,8775867,8775868,2645047,7696015,8775839,8775856,8775858,8775860,8775863,8775864,199939,4869230,4619338,8775832,8775833,8775836,8775865,8775825,8775828,189745,8775840,8775849,8775853,8775855,8775866,2642425,2671007,8775827,8775831,8775834,8775835,8775852,8775854,8775869,190787,157207,1456451,154874,160600,162815,96257,149434,2661944,154964,1907955,133473,109566,190782,2663682,1059071,4983721,97174,158802,97181,96295,0,1109,760,340,384,284,296,1146,557,608,1283,1287,1288,1300,1339,1,326,367,30,41,53,54,76,108,235,264,301,539,555,580,679,1398]
#9
⏱️ 44.51 мс
select * from "store_prices" where "id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
Bindings:
[625842,626936,625880,1003467,5679029,5679069,4461350,6338123,6338742,6338132,5513437,645045,645075,667245,667278,1054111,1055532,1054154,1061047,1094960,1096249,1095001,1101230,1177280,1177320,1183067,1297514,1298856,1297556,1304192,170405,4028690,3567914,3569264,3571509,3568744,3397634,3397637,3380297,3380671,3380763,3380849,3381384,3381710,3382268,3383415,3383450,3383829,3383961,3385184,3385862,3385903,3385941,3386168,3387125,3388559,3386276,3389144,3389611,3389612,3389772,3390167,3390629,3390848,3391169,3391398,3391399,3391406,3391616,3391617,3391830,3391831,3392113,3394496,3396307,3396308,3396417,3397194,3397195,3397196,3397482,3397522,3397529,3397636,3401512,3401693,3391085,7613309,3380202,3716134,3718001,3712697,2865119,2865120,7876323,7877321,7868805,7866713,2857056,2858174,2858176,2859182,7873863,2860663,2861428,2861429,2861431,2861638,2861718,2862670,7879202,2865252,2866162,2857055,2866685,2866687,3185745,2866725,2866727,2867312,2867313,2867706,7888783,2867713,2867740,2867742,2867844,2868019,2868043,2857039,2857122,2861432,2861895,2862158,7876542,481149,481185]
#10
⏱️ 4.16 мс
select * from "stores" where "stores"."id" in (1, 30, 76, 108, 284, 296, 326, 340, 367, 384, 539, 555, 557, 580, 608, 760)
#11
⏱️ 5.88 мс
select * from "locations" where "city_slug" = ? limit 1
Bindings:
["ramat-gan"]
#12
⏱️ 4.34 мс
select * from "locations" where "is_popular" = ? order by "sort_order" asc
Bindings:
[true]
#13
⏱️ 1.23 мс
select * from "locations" where "is_active" = ? order by "is_popular" desc, "sort_order" asc
Bindings:
[true]