#1
⏱️ 84.23 мс
select "id" from "stores" where "is_active" = ? and "city_slug" = ? and "chain_slug" = ?
Bindings:
[true,"holon","tiv_taam"]
#2
⏱️ 315.47 мс
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:
[552,573,true,552,573]
#3
⏱️ 478.73 мс
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:
[552,573,true,552,573]
#4
⏱️ 4.13 мс
select * from "canonical_products" where "canonical_products"."id" in (4, 86, 136, 163, 171, 284)
#5
⏱️ 5.75 мс
select "id", "canonical_product_id" from "master_products" where "canonical_product_id" in (?, ?, ?, ?, ?, ?)
Bindings:
[284,163,171,4,136,86]
#6
⏱️ 5.56 мс
select * from "deals" where "master_product_id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and "is_active" = ? and "store_id" in (?, ?)
Bindings:
[4344609,4222653,4222652,4215849,4214558,4213899,4213727,4213380,4208773,4158159,4110824,4084217,4084216,4063255,4061313,4047733,4047728,4043256,4039527,4039525,4034737,4025282,4023736,4022757,4020207,4013398,4010322,4009223,4003162,3997644,3991036,3987313,3985360,3985099,3979153,3978294,3977494,3977492,3973613,3971484,2067877,2046307,1429495,1428988,1425606,814424,785710,784002,685427,364183,211624,205790,199992,199991,199537,196266,195759,189505,188491,187408,186629,186248,185940,184232,184003,183312,183246,183245,183236,183235,182438,182437,182124,181926,181923,181921,181855,181158,180993,180913,180263,180049,179447,179119,177699,177275,176178,175670,175421,175152,174683,174613,174579,173524,173026,172850,2190109,133509,7569492,1952651,1456444,149284,134042,109335,158027,195156,2045916,157118,157278,155793,4315844,true,552,573]
#7
⏱️ 9.93 мс
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 = 4034737 THEN 4034737 WHEN sp.master_product_id = 2190109 THEN 4034737 WHEN sp.master_product_id = 133509 THEN 4034737 WHEN sp.master_product_id = 7569492 THEN 4034737 WHEN sp.master_product_id = 1952651 THEN 4034737 WHEN sp.master_product_id = 1456444 THEN 180913 WHEN sp.master_product_id = 180913 THEN 180913 WHEN sp.master_product_id = 3971484 THEN 3971484 WHEN sp.master_product_id = 149284 THEN 3971484 WHEN sp.master_product_id = 134042 THEN 3971484 WHEN sp.master_product_id = 109335 THEN 3971484 WHEN sp.master_product_id = 158027 THEN 4213727 WHEN sp.master_product_id = 4213727 THEN 4213727 WHEN sp.master_product_id = 195156 THEN 4213727 WHEN sp.master_product_id = 2045916 THEN 4110824 WHEN sp.master_product_id = 4110824 THEN 4110824 WHEN sp.master_product_id = 157118 THEN 4110824 WHEN sp.master_product_id = 157278 THEN 4110824 WHEN sp.master_product_id = 155793 THEN 4110824 WHEN sp.master_product_id = 4215849 THEN 4215849 WHEN sp.master_product_id = 4315844 THEN 4215849 ELSE sp.master_product_id END limit 500
Bindings:
[4344609,4222653,4222652,4215849,4214558,4213899,4213727,4213380,4208773,4158159,4110824,4084217,4084216,4063255,4061313,4047733,4047728,4043256,4039527,4039525,4034737,4025282,4023736,4022757,4020207,4013398,4010322,4009223,4003162,3997644,3991036,3987313,3985360,3985099,3979153,3978294,3977494,3977492,3973613,3971484,2067877,2046307,1429495,1428988,1425606,814424,785710,784002,685427,364183,211624,205790,199992,199991,199537,196266,195759,189505,188491,187408,186629,186248,185940,184232,184003,183312,183246,183245,183236,183235,182438,182437,182124,181926,181923,181921,181855,181158,180993,180913,180263,180049,179447,179119,177699,177275,176178,175670,175421,175152,174683,174613,174579,173524,173026,172850,2190109,133509,7569492,1952651,1456444,149284,134042,109335,158027,195156,2045916,157118,157278,155793,4315844,0,552,573]
#8
⏱️ 13.87 мс
select * from "store_prices" where "id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
Bindings:
[3535877,3535911,3536462,3536474,3536540,3537164,3537447,3538264,3538581,3539633,3539834,3540279,3540424,3540800,3540857,3540957,3541319,3541350,3541352,3541355,3541496,3541703,3541704,3542189,3542190,3542198,3542199,3542271,3542802,3542962,3544240,3544458,3544742,3545306,3545966,3546597,3541746,3542218,3545007,3545996,3545997,3540790,3542495,3541372,3543557,3542633,3540033,3542684,3543195,3539085,3539086,3535683,3536279,3539250,3540034,3540891,3546062,3535331,3536840,3541767,3540022,3541371,3544814,3537570,3539640,3540363,3541262,3537558,3537560,3539990,3542185,3542188,3536979,3538225,3544290,3544291,3537409,3546242,3544213,3537053,3537403,3537574,3538233,3539525,3546335,3546336,3665018,3665348,3665459,3667133,3668261,3668558,3669005,3670906,3667801,3671223,3667654,3668817,3669195,3666913,3670855,3670863,3667135,3664808,3667172,3668019]
#9
⏱️ 7.3 мс
select * from "stores" where "stores"."id" in (552, 573)
#10
⏱️ 3.14 мс
select * from "stores" where "is_active" = ? and "latitude" is not null and "longitude" is not null and "city_slug" = ? and "chain_slug" = ?
Bindings:
[true,"holon","tiv_taam"]
#11
⏱️ 10.08 мс
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:
[552,573,true,"2026-09-08T05:02:27.756093Z"]
#12
⏱️ 9.65 мс
select * from "locations" where "city_slug" = ? limit 1
Bindings:
["holon"]
#13
⏱️ 11.19 мс
select * from "locations" where "is_popular" = ? order by "sort_order" asc
Bindings:
[true]
#14
⏱️ 9.36 мс
select * from "locations" where "is_active" = ? order by "is_popular" desc, "sort_order" asc
Bindings:
[true]