#1
⏱️ 175.07 мс
select "id" from "stores" where "is_active" = ? and "city_slug" = ?
Bindings:
[true,"ramla"]
#2
⏱️ 1005.84 мс
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:
[462,470,521,true,462,470,521]
#3
⏱️ 910.93 мс
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:
[462,470,521,true,462,470,521]
#4
⏱️ 18.42 мс
select * from "canonical_products" where "canonical_products"."id" in (13, 41, 71, 82, 136, 231, 248, 251)
#5
⏱️ 9.67 мс
select "id", "canonical_product_id" from "master_products" where "canonical_product_id" in (?, ?, ?, ?, ?, ?, ?, ?)
Bindings:
[248,41,231,13,82,71,136,251]
#6
⏱️ 29.92 мс
select * from "deals" where "master_product_id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and "is_active" = ? and "store_id" in (?, ?, ?)
Bindings:
[156909,156202,156089,154741,153944,150507,149755,149071,135652,135651,135645,135636,135634,135622,135615,135596,135582,135578,135564,135557,135548,135519,135494,135447,135404,135385,135384,135372,135370,135364,135363,135320,135278,135203,135112,135093,135088,135069,135038,135026,135025,135022,135019,134997,134976,134890,134842,134804,134801,134800,134797,134684,134681,134610,134571,134567,134558,134557,134505,134489,134481,134463,134426,134425,134309,134286,134278,134268,134259,134257,134254,134253,134248,134237,134161,134159,134156,134109,134067,134064,134058,134051,134045,134042,134034,134025,133999,133996,133973,133925,133922,133898,133881,133880,133876,133871,99982,110100,1431171,170225,1907901,190786,2927777,1909820,7477797,109243,496502,190899,150736,3971484,149284,109335,150753,109477,133477,190931,1907954,96273,127415,1457159,true,462,470,521]
#7
⏱️ 11.25 мс
select * from "stores" where "stores"."id" in (521)
#8
⏱️ 75.45 мс
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 = 99982 THEN 135363 WHEN sp.master_product_id = 135363 THEN 135363 WHEN sp.master_product_id = 110100 THEN 135652 WHEN sp.master_product_id = 1431171 THEN 135652 WHEN sp.master_product_id = 170225 THEN 135652 WHEN sp.master_product_id = 1907901 THEN 135652 WHEN sp.master_product_id = 190786 THEN 135652 WHEN sp.master_product_id = 135652 THEN 135652 WHEN sp.master_product_id = 2927777 THEN 134045 WHEN sp.master_product_id = 1909820 THEN 134045 WHEN sp.master_product_id = 7477797 THEN 134045 WHEN sp.master_product_id = 134045 THEN 134045 WHEN sp.master_product_id = 109243 THEN 134681 WHEN sp.master_product_id = 496502 THEN 134681 WHEN sp.master_product_id = 190899 THEN 134681 WHEN sp.master_product_id = 134681 THEN 134681 WHEN sp.master_product_id = 150736 THEN 134681 WHEN sp.master_product_id = 3971484 THEN 134042 WHEN sp.master_product_id = 149284 THEN 134042 WHEN sp.master_product_id = 134042 THEN 134042 WHEN sp.master_product_id = 109335 THEN 134042 WHEN sp.master_product_id = 150753 THEN 135651 WHEN sp.master_product_id = 109477 THEN 135651 WHEN sp.master_product_id = 135651 THEN 135651 WHEN sp.master_product_id = 133477 THEN 135651 WHEN sp.master_product_id = 190931 THEN 135651 WHEN sp.master_product_id = 1907954 THEN 135651 WHEN sp.master_product_id = 96273 THEN 135651 WHEN sp.master_product_id = 154741 THEN 154741 WHEN sp.master_product_id = 127415 THEN 154741 WHEN sp.master_product_id = 1457159 THEN 133898 WHEN sp.master_product_id = 133898 THEN 133898 ELSE sp.master_product_id END limit 500
Bindings:
[156909,156202,156089,154741,153944,150507,149755,149071,135652,135651,135645,135636,135634,135622,135615,135596,135582,135578,135564,135557,135548,135519,135494,135447,135404,135385,135384,135372,135370,135364,135363,135320,135278,135203,135112,135093,135088,135069,135038,135026,135025,135022,135019,134997,134976,134890,134842,134804,134801,134800,134797,134684,134681,134610,134571,134567,134558,134557,134505,134489,134481,134463,134426,134425,134309,134286,134278,134268,134259,134257,134254,134253,134248,134237,134161,134159,134156,134109,134067,134064,134058,134051,134045,134042,134034,134025,133999,133996,133973,133925,133922,133898,133881,133880,133876,133871,99982,110100,1431171,170225,1907901,190786,2927777,1909820,7477797,109243,496502,190899,150736,3971484,149284,109335,150753,109477,133477,190931,1907954,96273,127415,1457159,0,462,470,521]
#9
⏱️ 42.83 мс
select * from "store_prices" where "id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
Bindings:
[2413052,2413128,2413141,2413142,2408691,2413529,2411707,2412329,2414142,2413741,2405665,2406580,2412152,2411403,2407446,2414666,2415036,2405511,2409506,2409389,2407447,2413503,2413504,2413505,2407448,2413507,2407449,2414121,2414704,2410862,2413718,2408253,2410863,2413562,2407491,2407559,2408161,2412127,2406094,2408319,2414722,2407450,2407451,2407453,2411721,2407456,2412219,2411227,2407457,2413076,2411617,2408060,2411618,2412251,2411619,2414601,2408058,2411132,2412852,2412411,2410919,2414727,2414123,2414128,2410562,2408981,2410563,2408069,2412139,2414773,2411377,2414777,2408587,2409512,2411121,2411361,2405571,2414155,2412512,2411926,2413380,2413220,2406883,2413702,2408929,2473192,2473784,2473616,2473208,2472872,2473646,2473690,2474946,2473731,2473732,2473734,2473748,2476275,2473990,2473130,2476184,2474250,2472777,2472727,2473340,2472423,2472424,2472848,2476426,2474294,2472726,2472834,2473104,2473199,2473825,2474529,2475651,2473758,2474407,69386,69313,69469,69887]
#10
⏱️ 13.45 мс
select * from "stores" where "stores"."id" in (462, 470, 521)
#11
⏱️ 8.56 мс
select * from "locations" where "city_slug" = ? limit 1
Bindings:
["ramla"]
#12
⏱️ 0.88 мс
select * from "locations" where "is_popular" = ? order by "sort_order" asc
Bindings:
[true]
#13
⏱️ 9.06 мс
select * from "locations" where "is_active" = ? order by "is_popular" desc, "sort_order" asc
Bindings:
[true]