Жаппай сатылым

Дүкендер

Флагмандық гипермаркет – ең ауқымды ассортимент
Гипермаркет – тауарлардың мол ассортименті
Супермаркет – тауарлардың негізгі ассортименті
  • RUS
  • BEL
  • KZH
Жақында ашылуы

142
хобби гипермаркеті желінің құрамына кіреді

136
дүкендер в 59 Ресей қалаларында

3
дүкен Беларусь респ.   Минск қ.

3
дүкен в респ. Казахстан в г. Астана, в г. Алматы.

Главная Каталог Чат Корзина0 Профиль
DEBUG enable
Num SQL queries:196
Num fetched rows:473
including array rows:207
Time of script run:0.047615051269531
Time of SQL queries:0.036499500274658
Timers out:
Счетчик "Подгототовка страницы", время выполнения - 0.0016с
Счетчик "Module=shops", время выполнения - 0.0338с
Счетчик "Block=cssstyles", время выполнения - 0.0001с
Счетчик "Block=headlongtextjs", время выполнения - 0с
Счетчик "Block=header", время выполнения - 0.0001с
Счетчик "Block=catalogtree", время выполнения - 0.0007с
Счетчик "Block=rentmagazin", время выполнения - 0.002с
Счетчик "Block=footer", время выполнения - 0.0002с
Счетчик "Block=appdownload", время выполнения - 0.0001с
Счетчик "Block=footercartjs", время выполнения - 0.0001с
Счетчик "Block=ganalitics", время выполнения - 0.0001с
Счетчик "Block=jivosite", время выполнения - 0.0001с
Счетчик "Block=metrika", время выполнения - 0.0005с
Счетчик "Block=statmailru", время выполнения - 0.0001с
Счетчик "Block=stat", время выполнения - 0.0001с

SELECT new_link FROM leo_redirect WHERE old_link = "/shop/geo/astana/" AND active = 1 # Num rows 0Run time:Time of run:0.00022101402282715

SELECT id_city FROM leo_city_preffered WHERE city='Astana' ORDER BY `lock` DESC,countEnt DESC LIMIT 1; # Num rows -1Run time:Time of run:0.00013303756713867

SELECT id_city,path,name,ishop_id,ishop_name,kladr_id,country_id,utc,largest_dep_id,final_sale FROM leo_city WHERE path='astana'; # Num rows 1Run time:Time of run:0.00017619132995605

SELECT index_id,title,domen FROM leonardo_kz_ru.leo_index WHERE parent_index_id=0 AND alias LIKE 'shop' LIMIT 1; # Num rows 1Run time:Time of run:0.00018811225891113

SELECT index_id,title,domen FROM leonardo_kz_ru.leo_index WHERE parent_index_id=15 AND alias LIKE 'geo' LIMIT 1; # Num rows 0Run time:Time of run:0.00014090538024902

SELECT IFNULL(NULLIF(lil.title,""), li.title) as title,li.template_id,li.content,li.domen,li.index_id FROM leonardo_kz_ru.leo_index AS li LEFT JOIN leonardo_kz_ru.leo_index_lang AS lil ON li.index_id=lil.index_id AND lil.lang="kz" WHERE li.index_id=15; # Num rows 1Run time:Time of run:0.00020480155944824

SELECT html FROM leonardo_kz_ru.leo_template WHERE template_id=20 # Num rows 1Run time:Time of run:0.00017595291137695

SELECT metatag FROM leonardo_kz_ru.leo_index WHERE index_id = 15 # Num rows 1Run time:Time of run:0.00014901161193848



SELECT t1.id_city,t1.path,t1.name,t1.country_id FROM leo_city AS t1, leo_shops AS t2 WHERE t1.id_city = t2.id_city AND t1.path='astana' AND t2.work = 1 LIMIT 1; # Num rows 1Run time:Time of run:0.00021100044250488

SELECT COUNT(*) FROM leo_shops WHERE work=1 # Num rows 1Run time:Time of run:0.00017905235290527

SELECT t1.* FROM leo_city AS t1,leo_shops AS t2 WHERE t2.work=1 AND t2.id_city=t1.id_city GROUP BY id_city # Num rows 62Run time:Time of run:0.0016179084777832

SELECT t1.name AS cityname, t3.path, t3.name AS shopname FROM leo_city AS t1 LEFT JOIN leo_shops AS t3 ON t1.id_city=t3.id_city AND t3.work=0 WHERE t3.id_city IS NOT NULL ORDER BY cityname,path # Num rows 0Run time:Time of run:0.00022578239440918

SELECT t1.`name`, t1.path, t1.adress, t2.name AS name_city FROM `leo_shops` AS t1, leo_city AS t2 WHERE t1.`id_city`=t2.id_city /*AND t2.country_id=1*/ /*AND t1.work=1*/ AND (t1.work = 0 OR t1.work = 1) ORDER BY name_city, t1.`name`, t1.adress; # Num rows 143Run time:Time of run:0.0013408660888672

SELECT t1.* FROM leo_city AS t1,leo_shops AS t2 WHERE t2.work=1 AND t2.id_city=t1.id_city GROUP BY id_city ORDER BY t1.name # Num rows 62Run time:Time of run:0.0018601417541504

SELECT id_city,name,path,final_sale FROM leo_city where visible=1 ORDER BY name; # Num rows 85Run time:Time of run:0.00038695335388184

SELECT count(*) FROM leo_shops WHERE (work=1) and dep_id NOT IN (190) AND (id_city='51'); # Num rows 1Run time:Time of run:0.00022006034851074

SELECT count(*) FROM leo_shops WHERE (work=0) and (id_city='51'); # Num rows 1Run time:Time of run:0.0001528263092041

SELECT count(*) FROM leo_shops WHERE (work=1) and dep_id NOT IN (190) AND (id_city='83'); # Num rows 1Run time:Time of run:0.00017905235290527

SELECT count(*) FROM leo_shops WHERE (work=0) and (id_city='83'); # Num rows 1Run time:Time of run:0.00016188621520996

SELECT count(*) FROM leo_shops WHERE (work=1) and dep_id NOT IN (190) AND (id_city='24'); # Num rows 1Run time:Time of run:0.00018882751464844

SELECT count(*) FROM leo_shops WHERE (work=0) and (id_city='24'); # Num rows 1Run time:Time of run:0.00013995170593262

SELECT count(*) FROM leo_shops WHERE (work=1) and dep_id NOT IN (190) AND (id_city='64'); # Num rows 1Run time:Time of run:0.0001530647277832

SELECT count(*) FROM leo_shops WHERE (work=0) and (id_city='64'); # Num rows 1Run time:Time of run:0.00014305114746094

SELECT count(*) FROM leo_shops WHERE (work=1) and dep_id NOT IN (190) AND (id_city='46'); # Num rows 1Run time:Time of run:0.00016212463378906

SELECT count(*) FROM leo_shops WHERE (work=0) and (id_city='46'); # Num rows 1Run time:Time of run:0.0001530647277832

SELECT count(*) FROM leo_shops WHERE (work=1) and dep_id NOT IN (190) AND (id_city='37'); # Num rows 1Run time:Time of run:0.00017499923706055

SELECT count(*) FROM leo_shops WHERE (work=0) and (id_city='37'); # Num rows 1Run time:Time of run:0.00014781951904297

SELECT count(*) FROM leo_shops WHERE (work=1) and dep_id NOT IN (190) AND (id_city='65'); # Num rows 1Run time:Time of run:0.00018405914306641

SELECT count(*) FROM leo_shops WHERE (work=0) and (id_city='65'); # Num rows 1Run time:Time of run:0.00014901161193848

SELECT count(*) FROM leo_shops WHERE (work=1) and dep_id NOT IN (190) AND (id_city='66'); # Num rows 1Run time:Time of run:0.00014400482177734

SELECT count(*) FROM leo_shops WHERE (work=0) and (id_city='66'); # Num rows 1Run time:Time of run:0.0001521110534668

SELECT count(*) FROM leo_shops WHERE (work=1) and dep_id NOT IN (190) AND (id_city='49'); # Num rows 1Run time:Time of run:0.00016689300537109

SELECT count(*) FROM leo_shops WHERE (work=0) and (id_city='49'); # Num rows 1Run time:Time of run:0.00013899803161621

SELECT count(*) FROM leo_shops WHERE (work=1) and dep_id NOT IN (190) AND (id_city='17'); # Num rows 1Run time:Time of run:0.00015521049499512

SELECT count(*) FROM leo_shops WHERE (work=0) and (id_city='17'); # Num rows 1Run time:Time of run:0.00015807151794434

SELECT count(*) FROM leo_shops WHERE (work=1) and dep_id NOT IN (190) AND (id_city='88'); # Num rows 1Run time:Time of run:0.00016403198242188

SELECT count(*) FROM leo_shops WHERE (work=0) and (id_city='88'); # Num rows 1Run time:Time of run:0.00013518333435059

SELECT count(*) FROM leo_shops WHERE (work=1) and dep_id NOT IN (190) AND (id_city='52'); # Num rows 1Run time:Time of run:0.00016498565673828

SELECT count(*) FROM leo_shops WHERE (work=0) and (id_city='52'); # Num rows 1Run time:Time of run:0.00013589859008789

SELECT count(*) FROM leo_shops WHERE (work=1) and dep_id NOT IN (190) AND (id_city='87'); # Num rows 1Run time:Time of run:0.00014805793762207

SELECT count(*) FROM leo_shops WHERE (work=0) and (id_city='87'); # Num rows 1Run time:Time of run:0.00014114379882812

SELECT count(*) FROM leo_shops WHERE (work=1) and dep_id NOT IN (190) AND (id_city='41'); # Num rows 1Run time:Time of run:0.00015783309936523

SELECT count(*) FROM leo_shops WHERE (work=0) and (id_city='41'); # Num rows 1Run time:Time of run:0.00019598007202148

SELECT count(*) FROM leo_shops WHERE (work=1) and dep_id NOT IN (190) AND (id_city='61'); # Num rows 1Run time:Time of run:0.00016880035400391

SELECT count(*) FROM leo_shops WHERE (work=0) and (id_city='61'); # Num rows 1Run time:Time of run:0.00015401840209961

SELECT count(*) FROM leo_shops WHERE (work=1) and dep_id NOT IN (190) AND (id_city='47'); # Num rows 1Run time:Time of run:0.00016307830810547

SELECT count(*) FROM leo_shops WHERE (work=0) and (id_city='47'); # Num rows 1Run time:Time of run:0.00013995170593262

SELECT count(*) FROM leo_shops WHERE (work=1) and dep_id NOT IN (190) AND (id_city='60'); # Num rows 1Run time:Time of run:0.0001530647277832

SELECT count(*) FROM leo_shops WHERE (work=0) and (id_city='60'); # Num rows 1Run time:Time of run:0.00014781951904297

SELECT count(*) FROM leo_shops WHERE (work=1) and dep_id NOT IN (190) AND (id_city='18'); # Num rows 1Run time:Time of run:0.0001990795135498

SELECT count(*) FROM leo_shops WHERE (work=0) and (id_city='18'); # Num rows 1Run time:Time of run:0.00014591217041016

SELECT count(*) FROM leo_shops WHERE (work=1) and dep_id NOT IN (190) AND (id_city='67'); # Num rows 1Run time:Time of run:0.00014615058898926

SELECT count(*) FROM leo_shops WHERE (work=0) and (id_city='67'); # Num rows 1Run time:Time of run:0.00013589859008789

SELECT count(*) FROM leo_shops WHERE (work=1) and dep_id NOT IN (190) AND (id_city='12'); # Num rows 1Run time:Time of run:0.00017094612121582

SELECT count(*) FROM leo_shops WHERE (work=0) and (id_city='12'); # Num rows 1Run time:Time of run:0.00016188621520996

SELECT count(*) FROM leo_shops WHERE (work=1) and dep_id NOT IN (190) AND (id_city='78'); # Num rows 1Run time:Time of run:0.00014996528625488

SELECT count(*) FROM leo_shops WHERE (work=0) and (id_city='78'); # Num rows 1Run time:Time of run:0.00013518333435059

SELECT count(*) FROM leo_shops WHERE (work=1) and dep_id NOT IN (190) AND (id_city='68'); # Num rows 1Run time:Time of run:0.00014400482177734

SELECT count(*) FROM leo_shops WHERE (work=0) and (id_city='68'); # Num rows 1Run time:Time of run:0.00013399124145508

SELECT count(*) FROM leo_shops WHERE (work=1) and dep_id NOT IN (190) AND (id_city='7'); # Num rows 1Run time:Time of run:0.00017690658569336

SELECT count(*) FROM leo_shops WHERE (work=0) and (id_city='7'); # Num rows 1Run time:Time of run:0.00014114379882812

SELECT count(*) FROM leo_shops WHERE (work=1) and dep_id NOT IN (190) AND (id_city='69'); # Num rows 1Run time:Time of run:0.00014901161193848

SELECT count(*) FROM leo_shops WHERE (work=0) and (id_city='69'); # Num rows 1Run time:Time of run:0.00013589859008789

SELECT count(*) FROM leo_shops WHERE (work=1) and dep_id NOT IN (190) AND (id_city='20'); # Num rows 1Run time:Time of run:0.00016093254089355

SELECT count(*) FROM leo_shops WHERE (work=0) and (id_city='20'); # Num rows 1Run time:Time of run:0.00014400482177734

SELECT count(*) FROM leo_shops WHERE (work=1) and dep_id NOT IN (190) AND (id_city='38'); # Num rows 1Run time:Time of run:0.00015783309936523

SELECT count(*) FROM leo_shops WHERE (work=0) and (id_city='38'); # Num rows 1Run time:Time of run:0.00013899803161621

SELECT count(*) FROM leo_shops WHERE (work=1) and dep_id NOT IN (190) AND (id_city='45'); # Num rows 1Run time:Time of run:0.0001528263092041

SELECT count(*) FROM leo_shops WHERE (work=0) and (id_city='45'); # Num rows 1Run time:Time of run:0.0001368522644043

SELECT count(*) FROM leo_shops WHERE (work=1) and dep_id NOT IN (190) AND (id_city='5'); # Num rows 1Run time:Time of run:0.00015902519226074

SELECT count(*) FROM leo_shops WHERE (work=0) and (id_city='5'); # Num rows 1Run time:Time of run:0.00014019012451172

SELECT count(*) FROM leo_shops WHERE (work=1) and dep_id NOT IN (190) AND (id_city='59'); # Num rows 1Run time:Time of run:0.00015997886657715

SELECT count(*) FROM leo_shops WHERE (work=0) and (id_city='59'); # Num rows 1Run time:Time of run:0.0001380443572998

SELECT count(*) FROM leo_shops WHERE (work=1) and dep_id NOT IN (190) AND (id_city='56'); # Num rows 1Run time:Time of run:0.0001518726348877

SELECT count(*) FROM leo_shops WHERE (work=0) and (id_city='56'); # Num rows 1Run time:Time of run:0.00013899803161621

SELECT count(*) FROM leo_shops WHERE (work=1) and dep_id NOT IN (190) AND (id_city='89'); # Num rows 1Run time:Time of run:0.00015592575073242

SELECT count(*) FROM leo_shops WHERE (work=0) and (id_city='89'); # Num rows 1Run time:Time of run:0.00014400482177734

SELECT count(*) FROM leo_shops WHERE (work=1) and dep_id NOT IN (190) AND (id_city='70'); # Num rows 1Run time:Time of run:0.00014996528625488

SELECT count(*) FROM leo_shops WHERE (work=0) and (id_city='70'); # Num rows 1Run time:Time of run:0.00015592575073242

SELECT count(*) FROM leo_shops WHERE (work=1) and dep_id NOT IN (190) AND (id_city='71'); # Num rows 1Run time:Time of run:0.00014686584472656

SELECT count(*) FROM leo_shops WHERE (work=0) and (id_city='71'); # Num rows 1Run time:Time of run:0.00014019012451172

SELECT count(*) FROM leo_shops WHERE (work=1) and dep_id NOT IN (190) AND (id_city='8'); # Num rows 1Run time:Time of run:0.00016212463378906

SELECT count(*) FROM leo_shops WHERE (work=0) and (id_city='8'); # Num rows 1Run time:Time of run:0.00014901161193848

SELECT count(*) FROM leo_shops WHERE (work=1) and dep_id NOT IN (190) AND (id_city='10'); # Num rows 1Run time:Time of run:0.00016212463378906

SELECT count(*) FROM leo_shops WHERE (work=0) and (id_city='10'); # Num rows 1Run time:Time of run:0.00016498565673828

SELECT count(*) FROM leo_shops WHERE (work=1) and dep_id NOT IN (190) AND (id_city='43'); # Num rows 1Run time:Time of run:0.00016212463378906

SELECT count(*) FROM leo_shops WHERE (work=0) and (id_city='43'); # Num rows 1Run time:Time of run:0.00014114379882812

SELECT count(*) FROM leo_shops WHERE (work=1) and dep_id NOT IN (190) AND (id_city='80'); # Num rows 1Run time:Time of run:0.00015902519226074

SELECT count(*) FROM leo_shops WHERE (work=0) and (id_city='80'); # Num rows 1Run time:Time of run:0.0001370906829834

SELECT count(*) FROM leo_shops WHERE (work=1) and dep_id NOT IN (190) AND (id_city='72'); # Num rows 1Run time:Time of run:0.00014805793762207

SELECT count(*) FROM leo_shops WHERE (work=0) and (id_city='72'); # Num rows 1Run time:Time of run:0.00013303756713867

SELECT count(*) FROM leo_shops WHERE (work=1) and dep_id NOT IN (190) AND (id_city='27'); # Num rows 1Run time:Time of run:0.00014710426330566

SELECT count(*) FROM leo_shops WHERE (work=0) and (id_city='27'); # Num rows 1Run time:Time of run:0.00015711784362793

SELECT count(*) FROM leo_shops WHERE (work=1) and dep_id NOT IN (190) AND (id_city='42'); # Num rows 1Run time:Time of run:0.00020480155944824

SELECT count(*) FROM leo_shops WHERE (work=0) and (id_city='42'); # Num rows 1Run time:Time of run:0.00015878677368164

SELECT count(*) FROM leo_shops WHERE (work=1) and dep_id NOT IN (190) AND (id_city='3'); # Num rows 1Run time:Time of run:0.00024080276489258

SELECT count(*) FROM leo_shops WHERE (work=0) and (id_city='3'); # Num rows 1Run time:Time of run:0.00016188621520996

SELECT count(*) FROM leo_shops WHERE (work=1) and dep_id NOT IN (190) AND (id_city='84'); # Num rows 1Run time:Time of run:0.00016093254089355

SELECT count(*) FROM leo_shops WHERE (work=0) and (id_city='84'); # Num rows 1Run time:Time of run:0.00014901161193848

SELECT count(*) FROM leo_shops WHERE (work=1) and dep_id NOT IN (190) AND (id_city='79'); # Num rows 1Run time:Time of run:0.00019288063049316

SELECT count(*) FROM leo_shops WHERE (work=0) and (id_city='79'); # Num rows 1Run time:Time of run:0.00015807151794434

SELECT count(*) FROM leo_shops WHERE (work=1) and dep_id NOT IN (190) AND (id_city='58'); # Num rows 1Run time:Time of run:0.00015521049499512

SELECT count(*) FROM leo_shops WHERE (work=0) and (id_city='58'); # Num rows 1Run time:Time of run:0.00014114379882812

SELECT count(*) FROM leo_shops WHERE (work=1) and dep_id NOT IN (190) AND (id_city='28'); # Num rows 1Run time:Time of run:0.0001981258392334

SELECT count(*) FROM leo_shops WHERE (work=0) and (id_city='28'); # Num rows 1Run time:Time of run:0.00017905235290527

SELECT count(*) FROM leo_shops WHERE (work=1) and dep_id NOT IN (190) AND (id_city='36'); # Num rows 1Run time:Time of run:0.00016188621520996

SELECT count(*) FROM leo_shops WHERE (work=0) and (id_city='36'); # Num rows 1Run time:Time of run:0.00014281272888184

SELECT count(*) FROM leo_shops WHERE (work=1) and dep_id NOT IN (190) AND (id_city='81'); # Num rows 1Run time:Time of run:0.00017213821411133

SELECT count(*) FROM leo_shops WHERE (work=0) and (id_city='81'); # Num rows 1Run time:Time of run:0.0001680850982666

SELECT count(*) FROM leo_shops WHERE (work=1) and dep_id NOT IN (190) AND (id_city='9'); # Num rows 1Run time:Time of run:0.00017595291137695

SELECT count(*) FROM leo_shops WHERE (work=0) and (id_city='9'); # Num rows 1Run time:Time of run:0.0001530647277832

SELECT count(*) FROM leo_shops WHERE (work=1) and dep_id NOT IN (190) AND (id_city='73'); # Num rows 1Run time:Time of run:0.00015592575073242

SELECT count(*) FROM leo_shops WHERE (work=0) and (id_city='73'); # Num rows 1Run time:Time of run:0.00013995170593262

SELECT count(*) FROM leo_shops WHERE (work=1) and dep_id NOT IN (190) AND (id_city='11'); # Num rows 1Run time:Time of run:0.00015997886657715

SELECT count(*) FROM leo_shops WHERE (work=0) and (id_city='11'); # Num rows 1Run time:Time of run:0.00014805793762207

SELECT count(*) FROM leo_shops WHERE (work=1) and dep_id NOT IN (190) AND (id_city='55'); # Num rows 1Run time:Time of run:0.00015592575073242

SELECT count(*) FROM leo_shops WHERE (work=0) and (id_city='55'); # Num rows 1Run time:Time of run:0.0001528263092041

SELECT count(*) FROM leo_shops WHERE (work=1) and dep_id NOT IN (190) AND (id_city='25'); # Num rows 1Run time:Time of run:0.00015091896057129

SELECT count(*) FROM leo_shops WHERE (work=0) and (id_city='25'); # Num rows 1Run time:Time of run:0.00015997886657715

SELECT count(*) FROM leo_shops WHERE (work=1) and dep_id NOT IN (190) AND (id_city='63'); # Num rows 1Run time:Time of run:0.00014686584472656

SELECT count(*) FROM leo_shops WHERE (work=0) and (id_city='63'); # Num rows 1Run time:Time of run:0.00013518333435059

SELECT count(*) FROM leo_shops WHERE (work=1) and dep_id NOT IN (190) AND (id_city='16'); # Num rows 1Run time:Time of run:0.0001530647277832

SELECT count(*) FROM leo_shops WHERE (work=0) and (id_city='16'); # Num rows 1Run time:Time of run:0.00014209747314453

SELECT count(*) FROM leo_shops WHERE (work=1) and dep_id NOT IN (190) AND (id_city='39'); # Num rows 1Run time:Time of run:0.0001528263092041

SELECT count(*) FROM leo_shops WHERE (work=0) and (id_city='39'); # Num rows 1Run time:Time of run:0.0001370906829834

SELECT count(*) FROM leo_shops WHERE (work=1) and dep_id NOT IN (190) AND (id_city='53'); # Num rows 1Run time:Time of run:0.00015997886657715

SELECT count(*) FROM leo_shops WHERE (work=0) and (id_city='53'); # Num rows 1Run time:Time of run:0.0001368522644043

SELECT count(*) FROM leo_shops WHERE (work=1) and dep_id NOT IN (190) AND (id_city='74'); # Num rows 1Run time:Time of run:0.00016999244689941

SELECT count(*) FROM leo_shops WHERE (work=0) and (id_city='74'); # Num rows 1Run time:Time of run:0.00016093254089355

SELECT count(*) FROM leo_shops WHERE (work=1) and dep_id NOT IN (190) AND (id_city='75'); # Num rows 1Run time:Time of run:0.00014495849609375

SELECT count(*) FROM leo_shops WHERE (work=0) and (id_city='75'); # Num rows 1Run time:Time of run:0.00013995170593262

SELECT count(*) FROM leo_shops WHERE (work=1) and dep_id NOT IN (190) AND (id_city='22'); # Num rows 1Run time:Time of run:0.00015497207641602

SELECT count(*) FROM leo_shops WHERE (work=0) and (id_city='22'); # Num rows 1Run time:Time of run:0.00014209747314453

SELECT count(*) FROM leo_shops WHERE (work=1) and dep_id NOT IN (190) AND (id_city='19'); # Num rows 1Run time:Time of run:0.00015902519226074

SELECT count(*) FROM leo_shops WHERE (work=0) and (id_city='19'); # Num rows 1Run time:Time of run:0.0001990795135498

SELECT count(*) FROM leo_shops WHERE (work=1) and dep_id NOT IN (190) AND (id_city='13'); # Num rows 1Run time:Time of run:0.00016498565673828

SELECT count(*) FROM leo_shops WHERE (work=0) and (id_city='13'); # Num rows 1Run time:Time of run:0.00013613700866699

SELECT count(*) FROM leo_shops WHERE (work=1) and dep_id NOT IN (190) AND (id_city='4'); # Num rows 1Run time:Time of run:0.00018882751464844

SELECT count(*) FROM leo_shops WHERE (work=0) and (id_city='4'); # Num rows 1Run time:Time of run:0.00014305114746094

SELECT count(*) FROM leo_shops WHERE (work=1) and dep_id NOT IN (190) AND (id_city='32'); # Num rows 1Run time:Time of run:0.00017309188842773

SELECT count(*) FROM leo_shops WHERE (work=0) and (id_city='32'); # Num rows 1Run time:Time of run:0.00017118453979492

SELECT count(*) FROM leo_shops WHERE (work=1) and dep_id NOT IN (190) AND (id_city='76'); # Num rows 1Run time:Time of run:0.00015783309936523

SELECT count(*) FROM leo_shops WHERE (work=0) and (id_city='76'); # Num rows 1Run time:Time of run:0.00014901161193848

SELECT count(*) FROM leo_shops WHERE (work=1) and dep_id NOT IN (190) AND (id_city='77'); # Num rows 1Run time:Time of run:0.00015902519226074

SELECT count(*) FROM leo_shops WHERE (work=0) and (id_city='77'); # Num rows 1Run time:Time of run:0.0001521110534668

SELECT count(*) FROM leo_shops WHERE (work=1) and dep_id NOT IN (190) AND (id_city='44'); # Num rows 1Run time:Time of run:0.00020813941955566

SELECT count(*) FROM leo_shops WHERE (work=0) and (id_city='44'); # Num rows 1Run time:Time of run:0.00013399124145508

SELECT count(*) FROM leo_shops WHERE (work=1) and dep_id NOT IN (190) AND (id_city='62'); # Num rows 1Run time:Time of run:0.00014591217041016

SELECT count(*) FROM leo_shops WHERE (work=0) and (id_city='62'); # Num rows 1Run time:Time of run:0.00013303756713867

SELECT count(*) FROM leo_shops WHERE (work=1) and dep_id NOT IN (190) AND (id_city='90'); # Num rows 1Run time:Time of run:0.00014209747314453

SELECT count(*) FROM leo_shops WHERE (work=0) and (id_city='90'); # Num rows 1Run time:Time of run:0.00013899803161621

SELECT count(*) FROM leo_shops WHERE (work=1) and dep_id NOT IN (190) AND (id_city='29'); # Num rows 1Run time:Time of run:0.00014996528625488

SELECT count(*) FROM leo_shops WHERE (work=0) and (id_city='29'); # Num rows 1Run time:Time of run:0.00014781951904297

SELECT count(*) FROM leo_shops WHERE (work=1) and dep_id NOT IN (190) AND (id_city='14'); # Num rows 1Run time:Time of run:0.00016403198242188

SELECT count(*) FROM leo_shops WHERE (work=0) and (id_city='14'); # Num rows 1Run time:Time of run:0.00016498565673828

SELECT count(*) FROM leo_shops WHERE (work=1) and dep_id NOT IN (190) AND (id_city='26'); # Num rows 1Run time:Time of run:0.00015401840209961

SELECT count(*) FROM leo_shops WHERE (work=0) and (id_city='26'); # Num rows 1Run time:Time of run:0.00013589859008789

SELECT count(*) FROM leo_shops WHERE (work=1) and dep_id NOT IN (190) AND (id_city='57'); # Num rows 1Run time:Time of run:0.00015091896057129

SELECT count(*) FROM leo_shops WHERE (work=0) and (id_city='57'); # Num rows 1Run time:Time of run:0.0001380443572998

SELECT count(*) FROM leo_shops WHERE (work=1) and dep_id NOT IN (190) AND (id_city='6'); # Num rows 1Run time:Time of run:0.00014996528625488

SELECT count(*) FROM leo_shops WHERE (work=0) and (id_city='6'); # Num rows 1Run time:Time of run:0.00013899803161621

SELECT count(*) FROM leo_shops WHERE (work=1) and dep_id NOT IN (190) AND (id_city='82'); # Num rows 1Run time:Time of run:0.00015401840209961

SELECT count(*) FROM leo_shops WHERE (work=0) and (id_city='82'); # Num rows 1Run time:Time of run:0.00013494491577148

SELECT count(*) FROM leo_shops WHERE (work=1) and dep_id NOT IN (190) AND (id_city='34'); # Num rows 1Run time:Time of run:0.00016307830810547

SELECT count(*) FROM leo_shops WHERE (work=0) and (id_city='34'); # Num rows 1Run time:Time of run:0.0001368522644043

SELECT count(*) FROM leo_shops WHERE (work=1) and dep_id NOT IN (190) AND (id_city='23'); # Num rows 1Run time:Time of run:0.00017189979553223

SELECT count(*) FROM leo_shops WHERE (work=0) and (id_city='23'); # Num rows 1Run time:Time of run:0.00012993812561035

SELECT count(*) FROM leo_shops WHERE (work=1) and dep_id NOT IN (190) AND (id_city='48'); # Num rows 1Run time:Time of run:0.00015091896057129

SELECT count(*) FROM leo_shops WHERE (work=0) and (id_city='48'); # Num rows 1Run time:Time of run:0.00014781951904297

SELECT count(*) FROM leo_shops WHERE (work=1) and dep_id NOT IN (190) AND (id_city='35'); # Num rows 1Run time:Time of run:0.00014901161193848

SELECT count(*) FROM leo_shops WHERE (work=0) and (id_city='35'); # Num rows 1Run time:Time of run:0.0001368522644043

SELECT count(*) FROM leo_shops WHERE (work=1) and dep_id NOT IN (190) AND (id_city='15'); # Num rows 1Run time:Time of run:0.0001530647277832

SELECT count(*) FROM leo_shops WHERE (work=0) and (id_city='15'); # Num rows 1Run time:Time of run:0.00013113021850586

SELECT count(*) FROM leo_shops WHERE (work=1) and dep_id NOT IN (190) AND (id_city='40'); # Num rows 1Run time:Time of run:0.00014901161193848

SELECT count(*) FROM leo_shops WHERE (work=0) and (id_city='40'); # Num rows 1Run time:Time of run:0.00013494491577148

SELECT count(*) FROM leo_shops WHERE (work=1) and dep_id NOT IN (190) AND (id_city='54'); # Num rows 1Run time:Time of run:0.00014996528625488

SELECT count(*) FROM leo_shops WHERE (work=0) and (id_city='54'); # Num rows 1Run time:Time of run:0.00013399124145508

SELECT count(*) FROM leo_shops WHERE (work=1) and dep_id NOT IN (190) AND (id_city='33'); # Num rows 1Run time:Time of run:0.00015497207641602

SELECT count(*) FROM leo_shops WHERE (work=0) and (id_city='33'); # Num rows 1Run time:Time of run:0.00013899803161621

SELECT count(*) FROM leo_shops WHERE (work=1) and dep_id NOT IN (190) AND (id_city='85'); # Num rows 1Run time:Time of run:0.00014710426330566

SELECT count(*) FROM leo_shops WHERE (work=0) and (id_city='85'); # Num rows 1Run time:Time of run:0.00013399124145508

SELECT count(*) FROM leo_shops WHERE (work=1) and dep_id NOT IN (190) AND (id_city='86'); # Num rows 1Run time:Time of run:0.00014209747314453

SELECT count(*) FROM leo_shops WHERE (work=0) and (id_city='86'); # Num rows 1Run time:Time of run:0.00013113021850586

SELECT count(*) FROM leo_shops WHERE (work=1) and dep_id NOT IN (190) AND (id_city='21'); # Num rows 1Run time:Time of run:0.00014400482177734

SELECT count(*) FROM leo_shops WHERE (work=0) and (id_city='21'); # Num rows 1Run time:Time of run:0.00013494491577148

SELECT count(*) FROM leo_shops WHERE (work=1); # Num rows 1Run time:Time of run:0.00015592575073242

SELECT count(*) FROM leo_shops WHERE (work=1) and dep_id NOT IN (190) and (id_city='3'); # Num rows 1Run time:Time of run:0.00023913383483887

SELECT count(*) FROM leo_shops WHERE (work=1) and (id_city='4'); # Num rows 1Run time:Time of run:0.00017213821411133

SELECT new_link FROM leo_canonical WHERE old_link = "/shop/geo/astana/" AND active = 1 # Num rows 0Run time:Time of run:0.00017499923706055

SELECT id FROM leo_shops AS t1 LEFT JOIN leo_city AS t2 ON t1.id_city=t2.id_city WHERE work=1 AND t1.dep_id NOT IN (190) ; # Num rows 142Run time:Time of run:0.00041604042053223

SELECT id FROM leo_shops AS t1 LEFT JOIN leo_city AS t2 ON t1.id_city=t2.id_city WHERE work=1 AND t1.dep_id NOT IN (190) AND t2.country_id=1; # Num rows 136Run time:Time of run:0.0005347728729248

SELECT t2.id_city FROM leo_shops AS t1 LEFT JOIN leo_city AS t2 ON t1.id_city=t2.id_city WHERE t1.work=1 AND t2.country_id=1 GROUP BY t2.id_city # Num rows 59Run time:Time of run:0.00049185752868652

SELECT id FROM leo_shops AS t1 LEFT JOIN leo_city AS t2 ON t1.id_city=t2.id_city WHERE work=1 AND t2.country_id=2; # Num rows 3Run time:Time of run:0.0001680850982666

SELECT id FROM leo_shops AS t1 LEFT JOIN leo_city AS t2 ON t1.id_city=t2.id_city WHERE work=1 AND t2.country_id=3; # Num rows 3Run time:Time of run:0.00016593933105469

SELECT personaldata FROM leo_clients_unregistered WHERE client_id = -1 # Num rows 0Run time:Time of run:0.0001518726348877

UPDATE leo_clients_unregistered SET personaldata = '{"exp2":"expS0"}' WHERE client_id = -1 # Num rows 0Run time:Time of run:0.00014996528625488