select * from indexation_server where `id` = "2" limit 1 SELECT `id` FROM `indexation_control` WHERE `type` = "1" and `status` = "1" and `list_id` = "2" LIMIT 1 INSERT INTO `indexation_control` (`type`, `list_id`, `server`, `action`, `status`, `start_time`, `last_action_ad`) VALUES ("1", "2", "index-ad","0", "1", "1500638304", "1500638304") select * from indexation_server where `id` = "2" limit 1 SELECT action FROM indexation_control WHERE id = "63" and status = "1" LIMIT 1 SHOW PROCESSLIST select count(id) from img_download where status = "2" and last_attempt > 1500638304 - 15 and stream_id = "63" SELECT `id`, `url`, `ad`, `source_name`, `crop_img`, `height_img`, `name` FROM `img_download` where (status = "0" or (status = "2" and last_attempt < 1500638304 - 15)) and attempts < "1" and addition_time >= 1500638304 - 86400 and last_attempt <= 1500638304 - 5 order by addition_time DESC, id DESC limit 25 UPDATE img_download SET attempts = attempts + 1, last_attempt = "1500638304", status = "2", stream_id = "63", number_select = "0" WHERE `id` IN(55043,55042,55041,55040,55039,55038,55037,55036,55035,55034,55033,55032,55031,55030,55029,55028,55027,55026,55025,55024,55023,55022,55021,55020,55019) UPDATE `indexation_control` SET `img_check` = img_check + 25, `last_action_ad` = '1500638304' WHERE id = '63' LIMIT 1 SELECT action FROM indexation_control WHERE id = "63" and status = "1" LIMIT 1 SHOW PROCESSLIST SHOW PROCESSLIST SHOW PROCESSLIST SHOW PROCESSLIST select count(id) from img_download where status = "2" and last_attempt > 1500638320 - 15 and stream_id = "63" SELECT `id`, `url`, `ad`, `source_name`, `crop_img`, `height_img`, `name` FROM `img_download` where (status = "0" or (status = "2" and last_attempt < 1500638320 - 15)) and attempts < "1" and addition_time >= 1500638320 - 86400 and last_attempt <= 1500638320 - 5 order by addition_time DESC, id DESC limit 25 UPDATE img_download SET attempts = attempts + 1, last_attempt = "1500638320", status = "2", stream_id = "63", number_select = "1" WHERE `id` IN(55058,55057,55056,55055,55054,55053,55052,55051,55050,55049,55048,55047,55046,55045,55044,55018,55017,55016,55015,55014,55013,55012,55011,55010,55009) UPDATE `indexation_control` SET `img_check` = img_check + 25, `last_action_ad` = '1500638320' WHERE id = '63' LIMIT 1 SELECT action FROM indexation_control WHERE id = "63" and status = "1" LIMIT 1 SHOW PROCESSLIST SHOW PROCESSLIST select count(id) from img_download where status = "2" and last_attempt > 1500638326 - 15 and stream_id = "63" SELECT `id`, `url`, `ad`, `source_name`, `crop_img`, `height_img`, `name` FROM `img_download` where (status = "0" or (status = "2" and last_attempt < 1500638326 - 15)) and attempts < "1" and addition_time >= 1500638326 - 86400 and last_attempt <= 1500638326 - 5 order by addition_time DESC, id DESC limit 25 UPDATE img_download SET attempts = attempts + 1, last_attempt = "1500638326", status = "2", stream_id = "63", number_select = "2" WHERE `id` IN(55091,55090,55089,55088,55087,55086,55085,55084,55083,55082,55081,55080,55079,55078,55077,55076,55075,55074,55073,55072,55071,55070,55069,55068,55067) UPDATE `indexation_control` SET `img_check` = img_check + 25, `last_action_ad` = '1500638326' WHERE id = '63' LIMIT 1 SELECT action FROM indexation_control WHERE id = "63" and status = "1" LIMIT 1 SHOW PROCESSLIST SHOW PROCESSLIST select count(id) from img_download where status = "2" and last_attempt > 1500638332 - 15 and stream_id = "63" SELECT `id`, `url`, `ad`, `source_name`, `crop_img`, `height_img`, `name` FROM `img_download` where (status = "0" or (status = "2" and last_attempt < 1500638332 - 15)) and attempts < "1" and addition_time >= 1500638332 - 86400 and last_attempt <= 1500638332 - 5 order by addition_time DESC, id DESC limit 25 UPDATE img_download SET attempts = attempts + 1, last_attempt = "1500638332", status = "2", stream_id = "63", number_select = "3" WHERE `id` IN(55118,55117,55116,55115,55114,55113,55112,55111,55110,55109,55108,55107,55106,55105,55104,55103,55102,55101,55100,55099,55098,55097,55096,55095,55094) UPDATE `indexation_control` SET `img_check` = img_check + 25, `last_action_ad` = '1500638332' WHERE id = '63' LIMIT 1 SELECT action FROM indexation_control WHERE id = "63" and status = "1" LIMIT 1 SHOW PROCESSLIST SHOW PROCESSLIST select count(id) from img_download where status = "2" and last_attempt > 1500638338 - 15 and stream_id = "63" SELECT `id`, `url`, `ad`, `source_name`, `crop_img`, `height_img`, `name` FROM `img_download` where (status = "0" or (status = "2" and last_attempt < 1500638338 - 15)) and attempts < "1" and addition_time >= 1500638338 - 86400 and last_attempt <= 1500638338 - 5 order by addition_time DESC, id DESC limit 25 UPDATE img_download SET attempts = attempts + 1, last_attempt = "1500638338", status = "2", stream_id = "63", number_select = "4" WHERE `id` IN(55093,55092,55066,55065,55064,55063,55062,55061,55060,55059,55008,55007,55006,55005,55004,55003,55002,55001,55000,54999,54998,54997,54996,54995,54994) UPDATE `indexation_control` SET `img_check` = img_check + 25, `last_action_ad` = '1500638338' WHERE id = '63' LIMIT 1 SELECT action FROM indexation_control WHERE id = "63" and status = "1" LIMIT 1 SHOW PROCESSLIST SHOW PROCESSLIST select count(id) from img_download where status = "2" and last_attempt > 1500638344 - 15 and stream_id = "63" SELECT `id`, `url`, `ad`, `source_name`, `crop_img`, `height_img`, `name` FROM `img_download` where (status = "0" or (status = "2" and last_attempt < 1500638344 - 15)) and attempts < "1" and addition_time >= 1500638344 - 86400 and last_attempt <= 1500638344 - 5 order by addition_time DESC, id DESC limit 25 UPDATE img_download SET attempts = attempts + 1, last_attempt = "1500638344", status = "2", stream_id = "63", number_select = "5" WHERE `id` IN(54993,54992,54991,54990,54989,54988,54987,54986,54985,54984,54983,54982,54981,54980,54979,54978,54977,54976,54975,54974,54973,54972,54971,54970,54969) UPDATE `indexation_control` SET `img_check` = img_check + 25, `last_action_ad` = '1500638344' WHERE id = '63' LIMIT 1 SELECT action FROM indexation_control WHERE id = "63" and status = "1" LIMIT 1 SHOW PROCESSLIST SHOW PROCESSLIST select count(id) from img_download where status = "2" and last_attempt > 1500638350 - 15 and stream_id = "63" SELECT `id`, `url`, `ad`, `source_name`, `crop_img`, `height_img`, `name` FROM `img_download` where (status = "0" or (status = "2" and last_attempt < 1500638350 - 15)) and attempts < "1" and addition_time >= 1500638350 - 86400 and last_attempt <= 1500638350 - 5 order by addition_time DESC, id DESC limit 25 SELECT action FROM indexation_control WHERE id = "63" and status = "1" LIMIT 1 SHOW PROCESSLIST select count(id) from img_download where status = "2" and last_attempt > 1500638355 - 15 and stream_id = "63" SELECT `id`, `url`, `ad`, `source_name`, `crop_img`, `height_img`, `name` FROM `img_download` where (status = "0" or (status = "2" and last_attempt < 1500638355 - 15)) and attempts < "1" and addition_time >= 1500638355 - 86400 and last_attempt <= 1500638355 - 5 order by addition_time DESC, id DESC limit 25 SELECT action FROM indexation_control WHERE id = "63" and status = "1" LIMIT 1 SHOW PROCESSLIST select count(id) from img_download where status = "2" and last_attempt > 1500638360 - 15 and stream_id = "63" SELECT `id`, `url`, `ad`, `source_name`, `crop_img`, `height_img`, `name` FROM `img_download` where (status = "0" or (status = "2" and last_attempt < 1500638360 - 15)) and attempts < "1" and addition_time >= 1500638360 - 86400 and last_attempt <= 1500638360 - 5 order by addition_time DESC, id DESC limit 25 SELECT action FROM indexation_control WHERE id = "63" and status = "1" LIMIT 1 SHOW PROCESSLIST select count(id) from img_download where status = "2" and last_attempt > 1500638365 - 15 and stream_id = "63" SELECT `id`, `url`, `ad`, `source_name`, `crop_img`, `height_img`, `name` FROM `img_download` where (status = "0" or (status = "2" and last_attempt < 1500638365 - 15)) and attempts < "1" and addition_time >= 1500638365 - 86400 and last_attempt <= 1500638365 - 5 order by addition_time DESC, id DESC limit 25 UPDATE img_download SET attempts = attempts + 1, last_attempt = "1500638365", status = "2", stream_id = "63", number_select = "6" WHERE `id` IN(55147,55146,55145,55144,55143,55142,55141,55140,55139,55138,55137,55136,55135,55134,55133,55132,55131,55130,55129,55128,55127,55126,55125,55124,55123) UPDATE `indexation_control` SET `img_check` = img_check + 25, `last_action_ad` = '1500638365' WHERE id = '63' LIMIT 1 SELECT action FROM indexation_control WHERE id = "63" and status = "1" LIMIT 1 SHOW PROCESSLIST SHOW PROCESSLIST SHOW PROCESSLIST select count(id) from img_download where status = "2" and last_attempt > 1500638376 - 15 and stream_id = "63" SELECT `id`, `url`, `ad`, `source_name`, `crop_img`, `height_img`, `name` FROM `img_download` where (status = "0" or (status = "2" and last_attempt < 1500638376 - 15)) and attempts < "1" and addition_time >= 1500638376 - 86400 and last_attempt <= 1500638376 - 5 order by addition_time DESC, id DESC limit 25 UPDATE img_download SET attempts = attempts + 1, last_attempt = "1500638376", status = "2", stream_id = "63", number_select = "7" WHERE `id` IN(55180,55179,55178,55177,55176,55175,55174,55173,55172,55171,55170,55169,55168,55167,55166,55165,55164,55163,55162,55161,55160,55159,55158,55157,55156) UPDATE `indexation_control` SET `img_check` = img_check + 25, `last_action_ad` = '1500638376' WHERE id = '63' LIMIT 1 SELECT action FROM indexation_control WHERE id = "63" and status = "1" LIMIT 1 SHOW PROCESSLIST SHOW PROCESSLIST select count(id) from img_download where status = "2" and last_attempt > 1500638382 - 15 and stream_id = "63" SELECT `id`, `url`, `ad`, `source_name`, `crop_img`, `height_img`, `name` FROM `img_download` where (status = "0" or (status = "2" and last_attempt < 1500638382 - 15)) and attempts < "1" and addition_time >= 1500638382 - 86400 and last_attempt <= 1500638382 - 5 order by addition_time DESC, id DESC limit 25 UPDATE img_download SET attempts = attempts + 1, last_attempt = "1500638382", status = "2", stream_id = "63", number_select = "8" WHERE `id` IN(55212,55211,55210,55209,55208,55207,55206,55205,55204,55203,55202,55201,55200,55199,55198,55197,55196,55195,55194,55193,55192,55191,55190,55189,55188) UPDATE `indexation_control` SET `img_check` = img_check + 25, `last_action_ad` = '1500638382' WHERE id = '63' LIMIT 1 SELECT action FROM indexation_control WHERE id = "63" and status = "1" LIMIT 1 SHOW PROCESSLIST SHOW PROCESSLIST select count(id) from img_download where status = "2" and last_attempt > 1500638388 - 15 and stream_id = "63" SELECT `id`, `url`, `ad`, `source_name`, `crop_img`, `height_img`, `name` FROM `img_download` where (status = "0" or (status = "2" and last_attempt < 1500638388 - 15)) and attempts < "1" and addition_time >= 1500638388 - 86400 and last_attempt <= 1500638388 - 5 order by addition_time DESC, id DESC limit 25 UPDATE img_download SET attempts = attempts + 1, last_attempt = "1500638388", status = "2", stream_id = "63", number_select = "9" WHERE `id` IN(55187,55186,55185,55184,55183,55182,55181,55155,55154,55153,55152,55151,55150,55149,55148,55122,55121,55120,55119) UPDATE `indexation_control` SET `img_check` = img_check + 19, `last_action_ad` = '1500638388' WHERE id = '63' LIMIT 1 SELECT action FROM indexation_control WHERE id = "63" and status = "1" LIMIT 1 SHOW PROCESSLIST SHOW PROCESSLIST select count(id) from img_download where status = "2" and last_attempt > 1500638394 - 15 and stream_id = "63" SELECT `id`, `url`, `ad`, `source_name`, `crop_img`, `height_img`, `name` FROM `img_download` where (status = "0" or (status = "2" and last_attempt < 1500638394 - 15)) and attempts < "1" and addition_time >= 1500638394 - 86400 and last_attempt <= 1500638394 - 5 order by addition_time DESC, id DESC limit 25 SELECT action FROM indexation_control WHERE id = "63" and status = "1" LIMIT 1 SHOW PROCESSLIST select count(id) from img_download where status = "2" and last_attempt > 1500638399 - 15 and stream_id = "63" SELECT `id`, `url`, `ad`, `source_name`, `crop_img`, `height_img`, `name` FROM `img_download` where (status = "0" or (status = "2" and last_attempt < 1500638399 - 15)) and attempts < "1" and addition_time >= 1500638399 - 86400 and last_attempt <= 1500638399 - 5 order by addition_time DESC, id DESC limit 25 SELECT action FROM indexation_control WHERE id = "63" and status = "1" LIMIT 1 SHOW PROCESSLIST select count(id) from img_download where status = "2" and last_attempt > 1500638404 - 15 and stream_id = "63" SELECT `id`, `url`, `ad`, `source_name`, `crop_img`, `height_img`, `name` FROM `img_download` where (status = "0" or (status = "2" and last_attempt < 1500638404 - 15)) and attempts < "1" and addition_time >= 1500638404 - 86400 and last_attempt <= 1500638404 - 5 order by addition_time DESC, id DESC limit 25 SELECT action FROM indexation_control WHERE id = "63" and status = "1" LIMIT 1 SHOW PROCESSLIST select count(id) from img_download where status = "2" and last_attempt > 1500638409 - 15 and stream_id = "63" SELECT `id`, `url`, `ad`, `source_name`, `crop_img`, `height_img`, `name` FROM `img_download` where (status = "0" or (status = "2" and last_attempt < 1500638409 - 15)) and attempts < "1" and addition_time >= 1500638409 - 86400 and last_attempt <= 1500638409 - 5 order by addition_time DESC, id DESC limit 25 SELECT action FROM indexation_control WHERE id = "63" and status = "1" LIMIT 1 SHOW PROCESSLIST select count(id) from img_download where status = "2" and last_attempt > 1500638414 - 15 and stream_id = "63" SELECT `id`, `url`, `ad`, `source_name`, `crop_img`, `height_img`, `name` FROM `img_download` where (status = "0" or (status = "2" and last_attempt < 1500638414 - 15)) and attempts < "1" and addition_time >= 1500638414 - 86400 and last_attempt <= 1500638414 - 5 order by addition_time DESC, id DESC limit 25 UPDATE img_download SET attempts = attempts + 1, last_attempt = "1500638414", status = "2", stream_id = "63", number_select = "10" WHERE `id` IN(55222,55221,55220,55219,55218,55217,55216,55215,55214,55213)