#1
⏱️ 32.1 мс
select "id" from "stores" where "is_active" = ? and "city_slug" = ?
Bindings:
[true,"givatayim"]
#2
⏱️ 4745.03 мс
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:
[223,1118,1181,1221,1290,14,38,261,226,292,431,454,458,492,493,567,663,672,683,687,4,16,32,73,118,212,231,true,223,1118,1181,1221,1290,14,38,261,226,292,431,454,458,492,493,567,663,672,683,687,4,16,32,73,118,212,231]
#3
⏱️ 845.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 0
Bindings:
[223,1118,1181,1221,1290,14,38,261,226,292,431,454,458,492,493,567,663,672,683,687,4,16,32,73,118,212,231,true,223,1118,1181,1221,1290,14,38,261,226,292,431,454,458,492,493,567,663,672,683,687,4,16,32,73,118,212,231]
#4
⏱️ 15.14 мс
select * from "canonical_products" where "canonical_products"."id" in (3, 16, 61, 71, 99, 159, 172, 193, 194)
#5
⏱️ 10.51 мс
select "id", "canonical_product_id" from "master_products" where "canonical_product_id" in (?, ?, ?, ?, ?, ?, ?, ?, ?)
Bindings:
[3,159,194,193,172,99,71,61,16]
#6
⏱️ 251.51 мс
select * from "deals" where "master_product_id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and "is_active" = ? and "store_id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
Bindings:
[75165094,74076446,72978997,66413048,64064994,63265682,56283367,56108690,56108187,56108186,54431099,39028558,37085091,34793660,34205246,32652869,32387955,30721319,30691571,28401773,27883716,27408007,25603232,25491028,25216901,24848918,24338782,14970397,12852012,12851980,12851979,12851978,12721528,12721432,12359404,12196449,12196440,12096078,11135534,10880869,8776026,8775937,8775934,8775838,8673439,8616048,8326860,8314242,7561917,7529435,7529293,7514223,7513702,7511974,7509887,7508207,7504693,7502589,7501600,7499337,7495742,7495464,7495251,7493492,7493489,7486186,7486023,7486017,7485999,7485890,7485886,7482266,7478649,7478622,7477938,7477797,7473573,7473572,7473385,7473383,7472471,7472064,7471575,7471561,7471450,7468703,7468425,7468345,7466366,7463528,7463453,7463445,7463411,7463410,7463406,7463404,8775862,8775528,8775826,8775829,8775837,8775841,8775842,8775845,8775843,8775844,8775847,8775846,8775848,8775850,8775851,8775859,8775861,8775867,8775868,4533490,2713394,1909820,7696015,2927777,8775839,8775858,8775856,8775860,8775863,8775864,8775857,4869230,4619338,8775828,8775830,195947,1941919,1456452,112362,3084195,8775832,8775833,8775836,8775865,8775825,2902166,4029456,8775840,8775866,8775849,8775853,8775855,2642425,2645047,8775852,8775854,8775869,8775827,8775831,8775834,8775835,3482419,157276,189745,2604819,190787,191901,134045,157163,112364,2671007,199939,true,223,1118,1181,1221,1290,14,38,261,226,292,431,454,458,492,493,567,663,672,683,687,4,16,32,73,118,212,231]
#7
⏱️ 4.15 мс
select * from "stores" where "stores"."id" in (4, 16, 32, 73, 212, 223, 226, 231, 1118, 1181, 1221, 1290)
#8
⏱️ 87.68 мс
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 = 8775862 THEN 8775838 WHEN sp.master_product_id = 8775528 THEN 7471561 WHEN sp.master_product_id = 8775826 THEN 8775838 WHEN sp.master_product_id = 8775829 THEN 8775838 WHEN sp.master_product_id = 8775837 THEN 8775838 WHEN sp.master_product_id = 8775838 THEN 8775838 WHEN sp.master_product_id = 8775841 THEN 8775838 WHEN sp.master_product_id = 8775842 THEN 8775838 WHEN sp.master_product_id = 8775845 THEN 8775838 WHEN sp.master_product_id = 8775843 THEN 8775838 WHEN sp.master_product_id = 8775844 THEN 8775838 WHEN sp.master_product_id = 8775847 THEN 8775838 WHEN sp.master_product_id = 8775846 THEN 8775838 WHEN sp.master_product_id = 8775848 THEN 8775838 WHEN sp.master_product_id = 8775850 THEN 8775838 WHEN sp.master_product_id = 8775851 THEN 8775838 WHEN sp.master_product_id = 8775859 THEN 8775838 WHEN sp.master_product_id = 8775861 THEN 8775838 WHEN sp.master_product_id = 8775867 THEN 8775838 WHEN sp.master_product_id = 8775868 THEN 8775838 WHEN sp.master_product_id = 4533490 THEN 8775838 WHEN sp.master_product_id = 2713394 THEN 7471575 WHEN sp.master_product_id = 1909820 THEN 7477797 WHEN sp.master_product_id = 7471575 THEN 7471575 WHEN sp.master_product_id = 7696015 THEN 8775838 WHEN sp.master_product_id = 2927777 THEN 7477797 WHEN sp.master_product_id = 8775839 THEN 8775838 WHEN sp.master_product_id = 8775858 THEN 8775838 WHEN sp.master_product_id = 8775856 THEN 8775838 WHEN sp.master_product_id = 8775860 THEN 8775838 WHEN sp.master_product_id = 8775863 THEN 8775838 WHEN sp.master_product_id = 8775864 THEN 8775838 WHEN sp.master_product_id = 7513702 THEN 7513702 WHEN sp.master_product_id = 8775857 THEN 8775838 WHEN sp.master_product_id = 4869230 THEN 8775838 WHEN sp.master_product_id = 4619338 THEN 8775838 WHEN sp.master_product_id = 7561917 THEN 7561917 WHEN sp.master_product_id = 8775828 THEN 8775838 WHEN sp.master_product_id = 7529293 THEN 7529293 WHEN sp.master_product_id = 8775830 THEN 8775838 WHEN sp.master_product_id = 195947 THEN 7561917 WHEN sp.master_product_id = 7493492 THEN 7493492 WHEN sp.master_product_id = 1941919 THEN 7561917 WHEN sp.master_product_id = 1456452 THEN 7561917 WHEN sp.master_product_id = 112362 THEN 7529293 WHEN sp.master_product_id = 3084195 THEN 7471575 WHEN sp.master_product_id = 8775832 THEN 8775838 WHEN sp.master_product_id = 8775833 THEN 8775838 WHEN sp.master_product_id = 8775836 THEN 8775838 WHEN sp.master_product_id = 8775865 THEN 8775838 WHEN sp.master_product_id = 8775825 THEN 8775838 WHEN sp.master_product_id = 2902166 THEN 7513702 WHEN sp.master_product_id = 4029456 THEN 7529435 WHEN sp.master_product_id = 8775840 THEN 8775838 WHEN sp.master_product_id = 8775866 THEN 8775838 WHEN sp.master_product_id = 8775849 THEN 8775838 WHEN sp.master_product_id = 8775853 THEN 8775838 WHEN sp.master_product_id = 8775855 THEN 8775838 WHEN sp.master_product_id = 2642425 THEN 8775838 WHEN sp.master_product_id = 7477797 THEN 7477797 WHEN sp.master_product_id = 2645047 THEN 8775838 WHEN sp.master_product_id = 7471561 THEN 7471561 WHEN sp.master_product_id = 8775852 THEN 8775838 WHEN sp.master_product_id = 8775854 THEN 8775838 WHEN sp.master_product_id = 8775869 THEN 8775838 WHEN sp.master_product_id = 8775827 THEN 8775838 WHEN sp.master_product_id = 8775831 THEN 8775838 WHEN sp.master_product_id = 8775834 THEN 8775838 WHEN sp.master_product_id = 8775835 THEN 8775838 WHEN sp.master_product_id = 3482419 THEN 7513702 WHEN sp.master_product_id = 157276 THEN 7561917 WHEN sp.master_product_id = 189745 THEN 8775838 WHEN sp.master_product_id = 7529435 THEN 7529435 WHEN sp.master_product_id = 2604819 THEN 7493492 WHEN sp.master_product_id = 190787 THEN 8775838 WHEN sp.master_product_id = 191901 THEN 7561917 WHEN sp.master_product_id = 134045 THEN 7477797 WHEN sp.master_product_id = 157163 THEN 7561917 WHEN sp.master_product_id = 112364 THEN 7493492 WHEN sp.master_product_id = 2671007 THEN 8775838 WHEN sp.master_product_id = 199939 THEN 8775838 ELSE sp.master_product_id END limit 500
Bindings:
[75165094,74076446,72978997,66413048,64064994,63265682,56283367,56108690,56108187,56108186,54431099,39028558,37085091,34793660,34205246,32652869,32387955,30721319,30691571,28401773,27883716,27408007,25603232,25491028,25216901,24848918,24338782,14970397,12852012,12851980,12851979,12851978,12721528,12721432,12359404,12196449,12196440,12096078,11135534,10880869,8776026,8775937,8775934,8775838,8673439,8616048,8326860,8314242,7561917,7529435,7529293,7514223,7513702,7511974,7509887,7508207,7504693,7502589,7501600,7499337,7495742,7495464,7495251,7493492,7493489,7486186,7486023,7486017,7485999,7485890,7485886,7482266,7478649,7478622,7477938,7477797,7473573,7473572,7473385,7473383,7472471,7472064,7471575,7471561,7471450,7468703,7468425,7468345,7466366,7463528,7463453,7463445,7463411,7463410,7463406,7463404,8775862,8775528,8775826,8775829,8775837,8775841,8775842,8775845,8775843,8775844,8775847,8775846,8775848,8775850,8775851,8775859,8775861,8775867,8775868,4533490,2713394,1909820,7696015,2927777,8775839,8775858,8775856,8775860,8775863,8775864,8775857,4869230,4619338,8775828,8775830,195947,1941919,1456452,112362,3084195,8775832,8775833,8775836,8775865,8775825,2902166,4029456,8775840,8775866,8775849,8775853,8775855,2642425,2645047,8775852,8775854,8775869,8775827,8775831,8775834,8775835,3482419,157276,189745,2604819,190787,191901,134045,157163,112364,2671007,199939,0,223,1118,1181,1221,1290,14,38,261,226,292,431,454,458,492,493,567,663,672,683,687,4,16,32,73,118,212,231]
#9
⏱️ 50.54 мс
select * from "store_prices" where "id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
Bindings:
[27550118,1617030,1617028,1614150,70723099,70622729,6507478,70622731,4565212,4565210,4557506,79959253,8209463,77652836,2032193,33179264,2041841,2029774,29414667,67674507,57046552,56032887,57060717,51676275,54062684,2303474,2310289,31345234,11277694,11277691,29776380,29772074,56303850,44623844,44623932,56318011,62117146,56318010,11408103,2356884,29876031,68122290,11435033,31390947,31398625,60005161,56360038,52322747,49910407,52322745,30309688,30309691,30309695,30309868,30309729,30309755,2556741,12151237,12151413,12153358,12157475,12158093,12158108,12159101,12160014,12151005,12151007,12151198,12151199,2556428,31750131,47699613,30309513,30309748,56592536,56592539,56595028,56595229,30310745,30304638,30309675,2554548,2556945,2558625,78598534,31746529,2556855,79858604,2558855,2558856,47711571,47711572,2558937,56601016,2562369,31760701,56598488,12166388,12169813,31760171,31760196,31757916,2563944,2563951,47712800,2558897,2558899,2559095,78609851,78610131,56601214,56598192,56600959,30317964,30315809,2560712,2562430,2562961,78605237,12167588,2562433,2563273,72648112,60106375,60100340,60125900,60092704,43127649,60097666,60129623,60129630,60099476,60090940,60091009,60126514,60126515,60126516,60126550,60091015,60127891,60097665,60091016,60127655,60127657,60125814,60099420,60132049,60132048,60132050,60127824,60127670,60090936,60090937,60092772,60127814,72449361,76516138]
#10
⏱️ 1.7 мс
select * from "stores" where "stores"."id" in (4, 16, 32, 73, 212, 223, 431, 454, 458, 492, 493, 567)
#11
⏱️ 2.04 мс
select * from "stores" where "is_active" = ? and "latitude" is not null and "longitude" is not null and "city_slug" = ?
Bindings:
[true,"givatayim"]
#12
⏱️ 499.72 мс
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:
[223,1118,1181,1221,1290,14,38,261,226,292,431,454,458,492,493,567,663,672,683,687,4,16,32,73,118,212,231,true,"2026-10-22T15:47:14.373174Z"]
#13
⏱️ 4.95 мс
select * from "locations" where "city_slug" = ? limit 1
Bindings:
["givatayim"]
#14
⏱️ 2.02 мс
select * from "locations" where "is_popular" = ? order by "sort_order" asc
Bindings:
[true]
#15
⏱️ 2.22 мс
select * from "locations" where "is_active" = ? order by "is_popular" desc, "sort_order" asc
Bindings:
[true]