#1
⏱️ 191.6 мс
select "id" from "stores" where "is_active" = ? and "city_slug" = ?
Bindings:
[true,"rehovot"]
#2
⏱️ 1575.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:
[1120,764,768,335,1218,1282,597,1298,349,371,390,20,47,60,81,139,215,1350,455,550,620,1402,134,173,true,1120,764,768,335,1218,1282,597,1298,349,371,390,20,47,60,81,139,215,1350,455,550,620,1402,134,173]
#3
⏱️ 1769.82 мс
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:
[1120,764,768,335,1218,1282,597,1298,349,371,390,20,47,60,81,139,215,1350,455,550,620,1402,134,173,true,1120,764,768,335,1218,1282,597,1298,349,371,390,20,47,60,81,139,215,1350,455,550,620,1402,134,173]
#4
⏱️ 18.04 мс
select * from "canonical_products" where "canonical_products"."id" in (3, 120)
#5
⏱️ 6.86 мс
select "id", "canonical_product_id" from "master_products" where "canonical_product_id" in (?, ?)
Bindings:
[3,120]
#6
⏱️ 160.38 мс
select * from "deals" where "master_product_id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and "is_active" = ? and "store_id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
Bindings:
[7696015,7690377,4991109,4991108,4991102,4991097,4991094,4991092,4991049,4990828,4990825,4990823,4990804,4990789,4990619,4990596,4990576,4990456,4990129,4989961,4989781,4989777,4989772,4989767,4989766,4988820,4988698,4988697,4988681,4988647,4988576,4988403,4988288,4988227,4988219,4987997,4987921,4987920,4987918,4987860,4987774,4987625,4987624,4987518,4987434,4987431,4987359,4987332,4987231,4987210,4987208,4987154,4987001,4986884,4986854,4986842,4986799,4986761,4986722,4986611,4986606,4986557,4986526,4986467,4986434,4986375,4986335,4986312,4986299,4986270,4986222,4986067,4985992,4985768,4985767,4985413,4985340,4985304,4985212,4985209,4985155,4985115,4985032,4985017,4985016,4984993,4984967,4984836,4984771,4984760,4984753,4984746,4984537,4984495,4984486,4984481,8775857,8775862,8775826,8775829,8775830,8775837,8775838,8775841,8775842,8775845,8775843,8775844,8775847,8775846,8775848,8775850,8775851,8775859,8775861,8775867,8775868,2645047,8775839,8775856,8775858,8775860,8775863,8775864,199939,4869230,4619338,8775832,8775833,8775836,8775865,8775825,8775828,4533490,189745,8775840,8775849,8775853,8775855,8775866,2642425,2671007,8775827,8775831,8775834,8775835,8775852,8775854,8775869,190787,4983744,true,1120,764,768,335,1218,1282,597,1298,349,371,390,20,47,60,81,139,215,1350,455,550,620,1402,134,173]
#7
⏱️ 24.37 мс
select * from "stores" where "stores"."id" in (597)
#8
⏱️ 90.99 мс
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 7696015 WHEN sp.master_product_id = 8775862 THEN 7696015 WHEN sp.master_product_id = 8775826 THEN 7696015 WHEN sp.master_product_id = 8775829 THEN 7696015 WHEN sp.master_product_id = 8775830 THEN 7696015 WHEN sp.master_product_id = 8775837 THEN 7696015 WHEN sp.master_product_id = 8775838 THEN 7696015 WHEN sp.master_product_id = 8775841 THEN 7696015 WHEN sp.master_product_id = 8775842 THEN 7696015 WHEN sp.master_product_id = 8775845 THEN 7696015 WHEN sp.master_product_id = 8775843 THEN 7696015 WHEN sp.master_product_id = 8775844 THEN 7696015 WHEN sp.master_product_id = 8775847 THEN 7696015 WHEN sp.master_product_id = 8775846 THEN 7696015 WHEN sp.master_product_id = 8775848 THEN 7696015 WHEN sp.master_product_id = 8775850 THEN 7696015 WHEN sp.master_product_id = 8775851 THEN 7696015 WHEN sp.master_product_id = 8775859 THEN 7696015 WHEN sp.master_product_id = 8775861 THEN 7696015 WHEN sp.master_product_id = 8775867 THEN 7696015 WHEN sp.master_product_id = 8775868 THEN 7696015 WHEN sp.master_product_id = 2645047 THEN 7696015 WHEN sp.master_product_id = 7696015 THEN 7696015 WHEN sp.master_product_id = 8775839 THEN 7696015 WHEN sp.master_product_id = 8775856 THEN 7696015 WHEN sp.master_product_id = 8775858 THEN 7696015 WHEN sp.master_product_id = 8775860 THEN 7696015 WHEN sp.master_product_id = 8775863 THEN 7696015 WHEN sp.master_product_id = 8775864 THEN 7696015 WHEN sp.master_product_id = 199939 THEN 7696015 WHEN sp.master_product_id = 4869230 THEN 7696015 WHEN sp.master_product_id = 4619338 THEN 7696015 WHEN sp.master_product_id = 8775832 THEN 7696015 WHEN sp.master_product_id = 8775833 THEN 7696015 WHEN sp.master_product_id = 8775836 THEN 7696015 WHEN sp.master_product_id = 8775865 THEN 7696015 WHEN sp.master_product_id = 8775825 THEN 7696015 WHEN sp.master_product_id = 8775828 THEN 7696015 WHEN sp.master_product_id = 4533490 THEN 7696015 WHEN sp.master_product_id = 189745 THEN 7696015 WHEN sp.master_product_id = 8775840 THEN 7696015 WHEN sp.master_product_id = 8775849 THEN 7696015 WHEN sp.master_product_id = 8775853 THEN 7696015 WHEN sp.master_product_id = 8775855 THEN 7696015 WHEN sp.master_product_id = 8775866 THEN 7696015 WHEN sp.master_product_id = 2642425 THEN 7696015 WHEN sp.master_product_id = 2671007 THEN 7696015 WHEN sp.master_product_id = 8775827 THEN 7696015 WHEN sp.master_product_id = 8775831 THEN 7696015 WHEN sp.master_product_id = 8775834 THEN 7696015 WHEN sp.master_product_id = 8775835 THEN 7696015 WHEN sp.master_product_id = 8775852 THEN 7696015 WHEN sp.master_product_id = 8775854 THEN 7696015 WHEN sp.master_product_id = 8775869 THEN 7696015 WHEN sp.master_product_id = 190787 THEN 7696015 WHEN sp.master_product_id = 4983744 THEN 4985413 WHEN sp.master_product_id = 4985413 THEN 4985413 ELSE sp.master_product_id END limit 500
Bindings:
[7696015,7690377,4991109,4991108,4991102,4991097,4991094,4991092,4991049,4990828,4990825,4990823,4990804,4990789,4990619,4990596,4990576,4990456,4990129,4989961,4989781,4989777,4989772,4989767,4989766,4988820,4988698,4988697,4988681,4988647,4988576,4988403,4988288,4988227,4988219,4987997,4987921,4987920,4987918,4987860,4987774,4987625,4987624,4987518,4987434,4987431,4987359,4987332,4987231,4987210,4987208,4987154,4987001,4986884,4986854,4986842,4986799,4986761,4986722,4986611,4986606,4986557,4986526,4986467,4986434,4986375,4986335,4986312,4986299,4986270,4986222,4986067,4985992,4985768,4985767,4985413,4985340,4985304,4985212,4985209,4985155,4985115,4985032,4985017,4985016,4984993,4984967,4984836,4984771,4984760,4984753,4984746,4984537,4984495,4984486,4984481,8775857,8775862,8775826,8775829,8775830,8775837,8775838,8775841,8775842,8775845,8775843,8775844,8775847,8775846,8775848,8775850,8775851,8775859,8775861,8775867,8775868,2645047,8775839,8775856,8775858,8775860,8775863,8775864,199939,4869230,4619338,8775832,8775833,8775836,8775865,8775825,8775828,4533490,189745,8775840,8775849,8775853,8775855,8775866,2642425,2671007,8775827,8775831,8775834,8775835,8775852,8775854,8775869,190787,4983744,0,1120,764,768,335,1218,1282,597,1298,349,371,390,20,47,60,81,139,215,1350,455,550,620,1402,134,173]
#9
⏱️ 23.12 мс
select * from "store_prices" where "id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
Bindings:
[3149017,3149022,3149031,3149073,3149282,3149289,3149296,3149307,3149372,3149503,3149529,3149552,3149553,3149568,3149651,3149691,3149745,3149748,3149840,3149876,3148280,3150303,3150304,3150528,3150603,3150758,3150806,3150835,3150848,3150871,3150911,3150970,3151003,3151062,3151093,3151142,3151147,3151258,3151297,3151335,3151378,3151390,3151420,3151537,3151690,3151744,3151746,3151767,3151868,3151895,3151967,3151970,3152054,3152160,3152161,3152310,3152396,3152454,3152456,3152457,3152533,3152755,3152763,3152824,3152939,3153112,3153183,3153217,3153233,3153234,3153356,3154302,3154303,3154308,3154313,3154317,3154497,3154665,3154992,3155112,3155132,3155155,3155325,3155340,3155359,3155361,3155364,3155585,3148152,3148154,3148157,3148162,3148168,3148169,7784422,2802306,2996653,215829,215834,215843,215885,216094,216101,216108,216119,216184,216315,216341,216364,216365,216380,216463,216503,216557,216560,216652,216688,215092,217115,217116,217340,217415,217570,217618,217647,217660,217683,217723,217782,217815,217874,217905,217954,217959,218070,218109,218147,218190,218202,218232,218349,218502,218556,218558,218579,218680,218707,218779,218782,218866,218972,218973,219122,219208,219266,219268,219269,219345,219567,219575,219636,219751,219924,219995,220029,220045,220046,220168,221114,221115,221120,221125,221129,221309,221477,221804,221924,221944,221967,222137,222152,222171,222173,222176,222397,222440,222442,222445,222450,222456,222457,2739115,2733940]
#10
⏱️ 5.53 мс
select * from "stores" where "stores"."id" in (597, 620, 768)
#11
⏱️ 7.23 мс
select * from "locations" where "city_slug" = ? limit 1
Bindings:
["rehovot"]
#12
⏱️ 11.86 мс
select * from "locations" where "is_popular" = ? order by "sort_order" asc
Bindings:
[true]
#13
⏱️ 23.1 мс
select * from "locations" where "is_active" = ? order by "is_popular" desc, "sort_order" asc
Bindings:
[true]