select * from indexation_list where id = "1" limit 1 select * from indexation_list where id = "1" limit 1 select * from indexation_list where id = "1" limit 1 INSERT INTO `indexation_control` (`type`, `server`, `action`, `status`, `start_time`, `ad_object`, `ad_check`, `last_action_ad`, `list_id`) VALUES ("0", "index-ad", "0", "1", "1500656759", "0", "0", "1500656759", "1") INSERT INTO `indexation_control` (`type`, `server`, `action`, `status`, `start_time`, `ad_object`, `ad_check`, `last_action_ad`, `list_id`) VALUES ("0", "index-ad", "0", "1", "1500656759", "0", "0", "1500656759", "1") INSERT INTO `indexation_control` (`type`, `server`, `action`, `status`, `start_time`, `ad_object`, `ad_check`, `last_action_ad`, `list_id`) VALUES ("0", "index-ad", "0", "1", "1500656759", "0", "0", "1500656759", "1") SELECT action FROM indexation_control WHERE id = "71" and status="1" LIMIT 1 SELECT action FROM indexation_control WHERE id = "72" and status="1" LIMIT 1 select count(id) from proxy_list where status = "1" and `key` = "avito.ru" select id from proxy_list where `status` = "1" and `key` = "avito.ru" order by use_time ASC select id, proxy, auth, date_day, error_count from proxy_list where id = "7" select count(id) from proxy_list where status = "1" and `key` = "avito.ru" select id from proxy_list where `status` = "1" and `key` = "avito.ru" order by use_time ASC SELECT action FROM indexation_control WHERE id = "73" and status="1" LIMIT 1 select id, proxy, auth, date_day, error_count from proxy_list where id = "7" select count(id) from proxy_list where status = "1" and `key` = "avito.ru" select id from proxy_list where `status` = "1" and `key` = "avito.ru" order by use_time ASC select id, proxy, auth, date_day, error_count from proxy_list where id = "7" update proxy_list set use_time = "1500656759", error_count = error_count + 1, requests_day = requests_day + 1, requests_all = requests_all + 1 where id = "7" select id, proxy, auth, date_day, error_count from proxy_list where id = "8" update proxy_list set use_time = "1500656759", error_count = error_count + 1, requests_day = requests_day + 1, requests_all = requests_all + 1 where id = "7" select id, proxy, auth, date_day, error_count from proxy_list where id = "8" update proxy_list set use_time = "1500656759", error_count = error_count + 1, requests_day = requests_day + 1, requests_all = requests_all + 1 where id = "7" select id, proxy, auth, date_day, error_count from proxy_list where id = "8" update proxy_list set use_time = "1500656759", error_count = error_count + 1, requests_day = requests_day + 1, requests_all = requests_all + 1 where id = "8" select id, proxy, auth, date_day, error_count from proxy_list where id = "9" update proxy_list set use_time = "1500656759", error_count = error_count + 1, requests_day = requests_day + 1, requests_all = requests_all + 1 where id = "8" select id, proxy, auth, date_day, error_count from proxy_list where id = "9" update proxy_list set use_time = "1500656759", error_count = error_count + 1, requests_day = requests_day + 1, requests_all = requests_all + 1 where id = "9" select id, proxy, auth, date_day, error_count from proxy_list where id = "10" update proxy_list set use_time = "1500656759", error_count = error_count + 1, requests_day = requests_day + 1, requests_all = requests_all + 1 where id = "8" select id, proxy, auth, date_day, error_count from proxy_list where id = "9" update proxy_list set use_time = "1500656759", error_count = error_count + 1, requests_day = requests_day + 1, requests_all = requests_all + 1 where id = "9" select id, proxy, auth, date_day, error_count from proxy_list where id = "10" update proxy_list set use_time = "1500656759", error_count = error_count + 1, requests_day = requests_day + 1, requests_all = requests_all + 1 where id = "10" select id, proxy, auth, date_day, error_count from proxy_list where id = "6" update proxy_list set use_time = "1500656759", error_count = error_count + 1, requests_day = requests_day + 1, requests_all = requests_all + 1 where id = "10" select id, proxy, auth, date_day, error_count from proxy_list where id = "6" update proxy_list set use_time = "1500656759", error_count = error_count + 1, requests_day = requests_day + 1, requests_all = requests_all + 1 where id = "6" UPDATE indexation_control SET action = '2', last_action_ad = '1500656759', type_pause = '1' WHERE id = '71' and status='1' and action <> 1 LIMIT 1 SELECT action FROM indexation_control WHERE id = "71" and status="1" LIMIT 1 update proxy_list set use_time = "1500656759", error_count = error_count + 1, requests_day = requests_day + 1, requests_all = requests_all + 1 where id = "9" select id, proxy, auth, date_day, error_count from proxy_list where id = "10" update proxy_list set use_time = "1500656759", error_count = error_count + 1, requests_day = requests_day + 1, requests_all = requests_all + 1 where id = "6" UPDATE indexation_control SET action = '2', last_action_ad = '1500656759', type_pause = '1' WHERE id = '73' and status='1' and action <> 1 LIMIT 1 SELECT action FROM indexation_control WHERE id = "73" and status="1" LIMIT 1 update proxy_list set use_time = "1500656759", error_count = error_count + 1, requests_day = requests_day + 1, requests_all = requests_all + 1 where id = "10" select id, proxy, auth, date_day, error_count from proxy_list where id = "6" update proxy_list set use_time = "1500656759", error_count = error_count + 1, requests_day = requests_day + 1, requests_all = requests_all + 1 where id = "6" UPDATE indexation_control SET action = '2', last_action_ad = '1500656759', type_pause = '1' WHERE id = '72' and status='1' and action <> 1 LIMIT 1 SELECT action FROM indexation_control WHERE id = "72" and status="1" LIMIT 1 SELECT action FROM indexation_control WHERE id = "71" and status="1" LIMIT 1 SELECT action FROM indexation_control WHERE id = "73" and status="1" LIMIT 1 SELECT action FROM indexation_control WHERE id = "72" and status="1" LIMIT 1 SELECT action FROM indexation_control WHERE id = "71" and status="1" LIMIT 1 UPDATE indexation_control SET count_cycles = (count_cycles + 1) WHERE id = '71' LIMIT 1 UPDATE indexation_control SET status = '0', last_action_ad = '1500656819' WHERE id = '71' and status='1' LIMIT 1 SELECT action FROM indexation_control WHERE id = "73" and status="1" LIMIT 1 UPDATE indexation_control SET count_cycles = (count_cycles + 1) WHERE id = '73' LIMIT 1 UPDATE indexation_control SET status = '0', last_action_ad = '1500656819' WHERE id = '73' and status='1' LIMIT 1 SELECT action FROM indexation_control WHERE id = "72" and status="1" LIMIT 1 UPDATE indexation_control SET count_cycles = (count_cycles + 1) WHERE id = '72' LIMIT 1 UPDATE indexation_control SET status = '0', last_action_ad = '1500656819' WHERE id = '72' and status='1' LIMIT 1