#1
⏱️ 154.57 мс
select "id" from "stores" where "is_active" = ? and "city_slug" = ?
Bindings:
[true,"bnei-brak"]
#2
⏱️ 915.48 мс
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:
[730,748,265,285,45,80,86,84,135,163,217,282,298,432,477,502,682,288,true,730,748,265,285,45,80,86,84,135,163,217,282,298,432,477,502,682,288]
#3
⏱️ 1515.11 мс
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:
[730,748,265,285,45,80,86,84,135,163,217,282,298,432,477,502,682,288,true,730,748,265,285,45,80,86,84,135,163,217,282,298,432,477,502,682,288]
#4
⏱️ 19.25 мс
select * from "canonical_products" where "canonical_products"."id" in (3, 16, 31, 37, 46, 84, 241)
#5
⏱️ 5.32 мс
select "id", "canonical_product_id" from "master_products" where "canonical_product_id" in (?, ?, ?, ?, ?, ?, ?)
Bindings:
[3,37,31,16,84,241,46]
#6
⏱️ 215.92 мс
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,7556845,7463215,7461021,7460606,7460374,7460373,7455589,7455588,7455068,7452710,7452304,7443254,7439517,7431628,7065236,6745776,6708345,5130723,5130389,5127697,4988681,4987518,4983751,4725190,4619338,4533815,2645047,7696015,199939,4869230,4533490,189745,2642425,2671007,190787,7471561,2609947,115658,111499,114703,115686,4859763,191031,3119102,195116,1454922,165505,1907930,150734,133480,true,730,748,265,285,45,80,86,84,135,163,217,282,298,432,477,502,682,288]
#7
⏱️ 12.27 мс
select * from "stores" where "stores"."id" in (84, 86, 135, 282, 285, 288, 730)
#8
⏱️ 69.83 мс
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 4619338 WHEN sp.master_product_id = 8775862 THEN 4619338 WHEN sp.master_product_id = 8775826 THEN 4619338 WHEN sp.master_product_id = 8775829 THEN 4619338 WHEN sp.master_product_id = 8775830 THEN 4619338 WHEN sp.master_product_id = 8775837 THEN 4619338 WHEN sp.master_product_id = 8775838 THEN 4619338 WHEN sp.master_product_id = 8775841 THEN 4619338 WHEN sp.master_product_id = 8775842 THEN 4619338 WHEN sp.master_product_id = 8775845 THEN 4619338 WHEN sp.master_product_id = 8775843 THEN 4619338 WHEN sp.master_product_id = 8775844 THEN 4619338 WHEN sp.master_product_id = 8775847 THEN 4619338 WHEN sp.master_product_id = 8775846 THEN 4619338 WHEN sp.master_product_id = 8775848 THEN 4619338 WHEN sp.master_product_id = 8775850 THEN 4619338 WHEN sp.master_product_id = 8775851 THEN 4619338 WHEN sp.master_product_id = 8775859 THEN 4619338 WHEN sp.master_product_id = 8775861 THEN 4619338 WHEN sp.master_product_id = 8775867 THEN 4619338 WHEN sp.master_product_id = 8775868 THEN 4619338 WHEN sp.master_product_id = 2645047 THEN 4619338 WHEN sp.master_product_id = 7696015 THEN 4619338 WHEN sp.master_product_id = 8775839 THEN 4619338 WHEN sp.master_product_id = 8775856 THEN 4619338 WHEN sp.master_product_id = 8775858 THEN 4619338 WHEN sp.master_product_id = 8775860 THEN 4619338 WHEN sp.master_product_id = 8775863 THEN 4619338 WHEN sp.master_product_id = 8775864 THEN 4619338 WHEN sp.master_product_id = 199939 THEN 4619338 WHEN sp.master_product_id = 4869230 THEN 4619338 WHEN sp.master_product_id = 4619338 THEN 4619338 WHEN sp.master_product_id = 8775832 THEN 4619338 WHEN sp.master_product_id = 8775833 THEN 4619338 WHEN sp.master_product_id = 8775836 THEN 4619338 WHEN sp.master_product_id = 8775865 THEN 4619338 WHEN sp.master_product_id = 8775825 THEN 4619338 WHEN sp.master_product_id = 8775828 THEN 4619338 WHEN sp.master_product_id = 4533490 THEN 4619338 WHEN sp.master_product_id = 189745 THEN 4619338 WHEN sp.master_product_id = 8775840 THEN 4619338 WHEN sp.master_product_id = 8775849 THEN 4619338 WHEN sp.master_product_id = 8775853 THEN 4619338 WHEN sp.master_product_id = 8775855 THEN 4619338 WHEN sp.master_product_id = 8775866 THEN 4619338 WHEN sp.master_product_id = 2642425 THEN 4619338 WHEN sp.master_product_id = 2671007 THEN 4619338 WHEN sp.master_product_id = 8775827 THEN 4619338 WHEN sp.master_product_id = 8775831 THEN 4619338 WHEN sp.master_product_id = 8775834 THEN 4619338 WHEN sp.master_product_id = 8775835 THEN 4619338 WHEN sp.master_product_id = 8775852 THEN 4619338 WHEN sp.master_product_id = 8775854 THEN 4619338 WHEN sp.master_product_id = 8775869 THEN 4619338 WHEN sp.master_product_id = 190787 THEN 4619338 WHEN sp.master_product_id = 8775528 THEN 8775528 WHEN sp.master_product_id = 7471561 THEN 8775528 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 = 4859763 THEN 4725190 WHEN sp.master_product_id = 4725190 THEN 4725190 WHEN sp.master_product_id = 191031 THEN 4725190 WHEN sp.master_product_id = 3119102 THEN 4725190 WHEN sp.master_product_id = 195116 THEN 4725190 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 = 5130723 THEN 5130723 WHEN sp.master_product_id = 1907930 THEN 5130723 WHEN sp.master_product_id = 150734 THEN 5130723 WHEN sp.master_product_id = 133480 THEN 5130723 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,7556845,7463215,7461021,7460606,7460374,7460373,7455589,7455588,7455068,7452710,7452304,7443254,7439517,7431628,7065236,6745776,6708345,5130723,5130389,5127697,4988681,4987518,4983751,4725190,4619338,4533815,2645047,7696015,199939,4869230,4533490,189745,2642425,2671007,190787,7471561,2609947,115658,111499,114703,115686,4859763,191031,3119102,195116,1454922,165505,1907930,150734,133480,0,730,748,265,285,45,80,86,84,135,163,217,282,298,432,477,502,682,288]
#9
⏱️ 22.3 мс
select * from "store_prices" where "id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
Bindings:
[4760653,4712892,5916943,5580274,5585312,5480557,5483493,5241937,5246766,2053713,2509326,2508703,2508572,2504594,2511643,2511756,2512232,2509319,2504326,2504327,2509111,2509112,2509344,2509759,2511953,2602614,2605167,2602832,2603066,2602461,2602746,2605590,2605583,4028656,4030849,4024614,4024829,4024915,4066668,4026463,4027624,4027667,4027710,4027753,4027925,4028011,4028054,6757630,1707989,1706865,6745149,6756292,6755688]
#10
⏱️ 20.55 мс
select * from "stores" where "stores"."id" in (84, 86, 135, 282, 285, 288, 432, 477, 502, 730, 748)
#11
⏱️ 1.92 мс
select * from "locations" where "city_slug" = ? limit 1
Bindings:
["bnei-brak"]
#12
⏱️ 9.63 мс
select * from "locations" where "is_popular" = ? order by "sort_order" asc
Bindings:
[true]
#13
⏱️ 16.15 мс
select * from "locations" where "is_active" = ? order by "is_popular" desc, "sort_order" asc
Bindings:
[true]