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", "1500654841", "1500654841") select * from indexation_server where `id` = "2" limit 1 SELECT action FROM indexation_control WHERE id = "68" and status = "1" LIMIT 1 SHOW PROCESSLIST select count(id) from img_download where status = "2" and last_attempt > 1500654841 - 60 and stream_id = "68" SELECT `id`, `url`, `ad`, `source_name`, `crop_img`, `height_img`, `name` FROM `img_download` where (status = "0" or (status = "2" and last_attempt < 1500654841 - 60)) and attempts < "1" and addition_time >= 1500654841 - 86400 and last_attempt <= 1500654841 - 5 order by addition_time DESC, id DESC limit 25 UPDATE img_download SET attempts = attempts + 1, last_attempt = "1500654841", status = "2", stream_id = "68", number_select = "0" WHERE `id` IN(56027,56026,56025,56024,56023,56022,56021,56020,56019,56018,56017,56016,56015,56014,56013,56012,56011,56010,56009,56008,56007,56006,56005,56004,56003) UPDATE `indexation_control` SET `img_check` = img_check + 25, `last_action_ad` = '1500654841' WHERE id = '68' LIMIT 1 SELECT action FROM indexation_control WHERE id = "68" and status = "1" LIMIT 1 SHOW PROCESSLIST SHOW PROCESSLIST SHOW PROCESSLIST select count(id) from img_download where status = "2" and last_attempt > 1500654852 - 60 and stream_id = "68" SELECT `id`, `url`, `ad`, `source_name`, `crop_img`, `height_img`, `name` FROM `img_download` where (status = "0" or (status = "2" and last_attempt < 1500654852 - 60)) and attempts < "1" and addition_time >= 1500654852 - 86400 and last_attempt <= 1500654852 - 5 order by addition_time DESC, id DESC limit 25 UPDATE img_download SET attempts = attempts + 1, last_attempt = "1500654852", status = "2", stream_id = "68", number_select = "1" WHERE `id` IN(56002,56001,56000,55999,55998,55997,55996,55995,55994,55968,55967,55966,55965,55964,55963,55962,55961,55960,55959,55958,55957,55956,55955,55954,55953) UPDATE `indexation_control` SET `img_check` = img_check + 25, `last_action_ad` = '1500654852' WHERE id = '68' LIMIT 1 SELECT action FROM indexation_control WHERE id = "68" and status = "1" LIMIT 1 SHOW PROCESSLIST SHOW PROCESSLIST select count(id) from img_download where status = "2" and last_attempt > 1500654858 - 60 and stream_id = "68" SELECT `id`, `url`, `ad`, `source_name`, `crop_img`, `height_img`, `name` FROM `img_download` where (status = "0" or (status = "2" and last_attempt < 1500654858 - 60)) and attempts < "1" and addition_time >= 1500654858 - 86400 and last_attempt <= 1500654858 - 5 order by addition_time DESC, id DESC limit 25 UPDATE img_download SET attempts = attempts + 1, last_attempt = "1500654858", status = "2", stream_id = "68", number_select = "2" WHERE `id` IN(55952,55951,55950,55949,55948,55947,55946,55945,55944,55943,55942,55941,55940,55939,55938,55937,55936,55935,55934,55933,55932,55931,55930,55929,55928) UPDATE `indexation_control` SET `img_check` = img_check + 25, `last_action_ad` = '1500654858' WHERE id = '68' LIMIT 1 SELECT action FROM indexation_control WHERE id = "68" and status = "1" LIMIT 1 SHOW PROCESSLIST SHOW PROCESSLIST select count(id) from img_download where status = "2" and last_attempt > 1500654864 - 60 and stream_id = "68" SELECT `id`, `url`, `ad`, `source_name`, `crop_img`, `height_img`, `name` FROM `img_download` where (status = "0" or (status = "2" and last_attempt < 1500654864 - 60)) and attempts < "1" and addition_time >= 1500654864 - 86400 and last_attempt <= 1500654864 - 5 order by addition_time DESC, id DESC limit 25 UPDATE img_download SET attempts = attempts + 1, last_attempt = "1500654864", status = "2", stream_id = "68", number_select = "3" WHERE `id` IN(55927,55926,55925,55924,55923,55922,55921,55920,55919,55918,55917,55916,55915,55914,55913,55912,55911,55910,55909,55908,55907,55906,55905,55904,55903) UPDATE `indexation_control` SET `img_check` = img_check + 25, `last_action_ad` = '1500654864' WHERE id = '68' LIMIT 1 SELECT action FROM indexation_control WHERE id = "68" and status = "1" LIMIT 1 SHOW PROCESSLIST SHOW PROCESSLIST select count(id) from img_download where status = "2" and last_attempt > 1500654870 - 60 and stream_id = "68" SELECT `id`, `url`, `ad`, `source_name`, `crop_img`, `height_img`, `name` FROM `img_download` where (status = "0" or (status = "2" and last_attempt < 1500654870 - 60)) and attempts < "1" and addition_time >= 1500654870 - 86400 and last_attempt <= 1500654870 - 5 order by addition_time DESC, id DESC limit 25 UPDATE img_download SET attempts = attempts + 1, last_attempt = "1500654870", status = "2", stream_id = "68", number_select = "4" WHERE `id` IN(55902,55901,55900,55899,55898,55897,55896,55895,55894,55893,55892,55891,55890,55889,55888,55887,55886,55885,55884,55883,55882,55881,55880,55879,55878) UPDATE `indexation_control` SET `img_check` = img_check + 25, `last_action_ad` = '1500654870' WHERE id = '68' LIMIT 1 SELECT action FROM indexation_control WHERE id = "68" and status = "1" LIMIT 1 SHOW PROCESSLIST SHOW PROCESSLIST select count(id) from img_download where status = "2" and last_attempt > 1500654876 - 60 and stream_id = "68" SELECT `id`, `url`, `ad`, `source_name`, `crop_img`, `height_img`, `name` FROM `img_download` where (status = "0" or (status = "2" and last_attempt < 1500654876 - 60)) and attempts < "1" and addition_time >= 1500654876 - 86400 and last_attempt <= 1500654876 - 5 order by addition_time DESC, id DESC limit 25 UPDATE img_download SET attempts = attempts + 1, last_attempt = "1500654876", status = "2", stream_id = "68", number_select = "5" WHERE `id` IN(55877,55876,55875,55874,55873,55872,55871,55870,55869,55868,55867,55866,55865,55864,55863,55862,55861,55860,55859,55858,55857,55856,55855,55854,55853) UPDATE `indexation_control` SET `img_check` = img_check + 25, `last_action_ad` = '1500654876' WHERE id = '68' LIMIT 1 SELECT action FROM indexation_control WHERE id = "68" and status = "1" LIMIT 1 SHOW PROCESSLIST SHOW PROCESSLIST select count(id) from img_download where status = "2" and last_attempt > 1500654882 - 60 and stream_id = "68" SELECT `id`, `url`, `ad`, `source_name`, `crop_img`, `height_img`, `name` FROM `img_download` where (status = "0" or (status = "2" and last_attempt < 1500654882 - 60)) and attempts < "1" and addition_time >= 1500654882 - 86400 and last_attempt <= 1500654882 - 5 order by addition_time DESC, id DESC limit 25 UPDATE img_download SET attempts = attempts + 1, last_attempt = "1500654882", status = "2", stream_id = "68", number_select = "6" WHERE `id` IN(55852,55851,55850,55849,55848,55847,55846,55845,55844,55843,55842,55841,55840,55839,55838,55837,55836,55835,55834,55833,55832,55831,55830,55829,55828) UPDATE `indexation_control` SET `img_check` = img_check + 25, `last_action_ad` = '1500654882' WHERE id = '68' LIMIT 1 SELECT action FROM indexation_control WHERE id = "68" and status = "1" LIMIT 1 SHOW PROCESSLIST SHOW PROCESSLIST select count(id) from img_download where status = "2" and last_attempt > 1500654888 - 60 and stream_id = "68" SELECT `id`, `url`, `ad`, `source_name`, `crop_img`, `height_img`, `name` FROM `img_download` where (status = "0" or (status = "2" and last_attempt < 1500654888 - 60)) and attempts < "1" and addition_time >= 1500654888 - 86400 and last_attempt <= 1500654888 - 5 order by addition_time DESC, id DESC limit 25 UPDATE img_download SET attempts = attempts + 1, last_attempt = "1500654888", status = "2", stream_id = "68", number_select = "7" WHERE `id` IN(55827,55826,55825,55824,55823,55822,55821,55820,55819,55818,55817,55816,55815,55814,55813,55812,55811,55810,55809,55808,55807,55806,55805,55804,55803) UPDATE `indexation_control` SET `img_check` = img_check + 25, `last_action_ad` = '1500654888' WHERE id = '68' LIMIT 1 SELECT action FROM indexation_control WHERE id = "68" and status = "1" LIMIT 1 SHOW PROCESSLIST SHOW PROCESSLIST select count(id) from img_download where status = "2" and last_attempt > 1500654894 - 60 and stream_id = "68" SELECT `id`, `url`, `ad`, `source_name`, `crop_img`, `height_img`, `name` FROM `img_download` where (status = "0" or (status = "2" and last_attempt < 1500654894 - 60)) and attempts < "1" and addition_time >= 1500654894 - 86400 and last_attempt <= 1500654894 - 5 order by addition_time DESC, id DESC limit 25 UPDATE img_download SET attempts = attempts + 1, last_attempt = "1500654894", status = "2", stream_id = "68", number_select = "8" WHERE `id` IN(55802,55801,55800,55799,55798,55797,55796,55795,55794,55793,55792,55791,55790,55789,55788,55787,55786,55785,55784,55783,55782,55781,55780,55779,55778) UPDATE `indexation_control` SET `img_check` = img_check + 25, `last_action_ad` = '1500654894' WHERE id = '68' LIMIT 1 SELECT action FROM indexation_control WHERE id = "68" and status = "1" LIMIT 1 SHOW PROCESSLIST SHOW PROCESSLIST select count(id) from img_download where status = "2" and last_attempt > 1500654900 - 60 and stream_id = "68" SELECT `id`, `url`, `ad`, `source_name`, `crop_img`, `height_img`, `name` FROM `img_download` where (status = "0" or (status = "2" and last_attempt < 1500654900 - 60)) and attempts < "1" and addition_time >= 1500654900 - 86400 and last_attempt <= 1500654900 - 5 order by addition_time DESC, id DESC limit 25 UPDATE img_download SET attempts = attempts + 1, last_attempt = "1500654900", status = "2", stream_id = "68", number_select = "9" WHERE `id` IN(55777,55776,55775,55774,55773,55772,55771,55770,55769,55293,55292,55291,55290,55289,55288,55287,55286,55285,55284,55283,55282,55281,55280,55279,55278) UPDATE `indexation_control` SET `img_check` = img_check + 25, `last_action_ad` = '1500654900' WHERE id = '68' LIMIT 1 SELECT action FROM indexation_control WHERE id = "68" and status = "1" LIMIT 1 SHOW PROCESSLIST SHOW PROCESSLIST select count(id) from img_download where status = "2" and last_attempt > 1500654906 - 60 and stream_id = "68" SELECT `id`, `url`, `ad`, `source_name`, `crop_img`, `height_img`, `name` FROM `img_download` where (status = "0" or (status = "2" and last_attempt < 1500654906 - 60)) and attempts < "1" and addition_time >= 1500654906 - 86400 and last_attempt <= 1500654906 - 5 order by addition_time DESC, id DESC limit 25 UPDATE img_download SET attempts = attempts + 1, last_attempt = "1500654906", status = "2", stream_id = "68", number_select = "10" WHERE `id` IN(55277,55276,55275,55274,55273,55272,55271,55270,55269,55268,55267,55266,55265,55264,55263,55262,55261,55260,55259,55258,55257,55256,55255,55254,55253) UPDATE `indexation_control` SET `img_check` = img_check + 25, `last_action_ad` = '1500654906' WHERE id = '68' LIMIT 1 SELECT action FROM indexation_control WHERE id = "68" and status = "1" LIMIT 1 SHOW PROCESSLIST SHOW PROCESSLIST select count(id) from img_download where status = "2" and last_attempt > 1500654912 - 60 and stream_id = "68" SELECT `id`, `url`, `ad`, `source_name`, `crop_img`, `height_img`, `name` FROM `img_download` where (status = "0" or (status = "2" and last_attempt < 1500654912 - 60)) and attempts < "1" and addition_time >= 1500654912 - 86400 and last_attempt <= 1500654912 - 5 order by addition_time DESC, id DESC limit 25 UPDATE img_download SET attempts = attempts + 1, last_attempt = "1500654912", status = "2", stream_id = "68", number_select = "11" WHERE `id` IN(55252,55251,55250,55249,55248,55247,55246,55245,55244,55243,55242,55241,55240,55239,55238,55237,55236,55235,55234,55233,55232,55231,55230,55229,55228) UPDATE `indexation_control` SET `img_check` = img_check + 25, `last_action_ad` = '1500654912' WHERE id = '68' LIMIT 1 SELECT action FROM indexation_control WHERE id = "68" and status = "1" LIMIT 1 SHOW PROCESSLIST SHOW PROCESSLIST select count(id) from img_download where status = "2" and last_attempt > 1500654918 - 60 and stream_id = "68" SELECT `id`, `url`, `ad`, `source_name`, `crop_img`, `height_img`, `name` FROM `img_download` where (status = "0" or (status = "2" and last_attempt < 1500654918 - 60)) and attempts < "1" and addition_time >= 1500654918 - 86400 and last_attempt <= 1500654918 - 5 order by addition_time DESC, id DESC limit 25 UPDATE img_download SET attempts = attempts + 1, last_attempt = "1500654918", status = "2", stream_id = "68", number_select = "12" WHERE `id` IN(55227,55226,55225,55224,55223) UPDATE `indexation_control` SET `img_check` = img_check + 5, `last_action_ad` = '1500654918' WHERE id = '68' LIMIT 1 SELECT action FROM indexation_control WHERE id = "68" and status = "1" LIMIT 1 SHOW PROCESSLIST select count(id) from img_download where status = "2" and last_attempt > 1500654919 - 60 and stream_id = "68" SELECT `id`, `url`, `ad`, `source_name`, `crop_img`, `height_img`, `name` FROM `img_download` where (status = "0" or (status = "2" and last_attempt < 1500654919 - 60)) and attempts < "1" and addition_time >= 1500654919 - 86400 and last_attempt <= 1500654919 - 5 order by addition_time DESC, id DESC limit 25 SELECT action FROM indexation_control WHERE id = "68" and status = "1" LIMIT 1 SHOW PROCESSLIST select count(id) from img_download where status = "2" and last_attempt > 1500654924 - 60 and stream_id = "68" SELECT `id`, `url`, `ad`, `source_name`, `crop_img`, `height_img`, `name` FROM `img_download` where (status = "0" or (status = "2" and last_attempt < 1500654924 - 60)) and attempts < "1" and addition_time >= 1500654924 - 86400 and last_attempt <= 1500654924 - 5 order by addition_time DESC, id DESC limit 25 SELECT action FROM indexation_control WHERE id = "68" and status = "1" LIMIT 1 SHOW PROCESSLIST select count(id) from img_download where status = "2" and last_attempt > 1500654929 - 60 and stream_id = "68" SELECT `id`, `url`, `ad`, `source_name`, `crop_img`, `height_img`, `name` FROM `img_download` where (status = "0" or (status = "2" and last_attempt < 1500654929 - 60)) and attempts < "1" and addition_time >= 1500654929 - 86400 and last_attempt <= 1500654929 - 5 order by addition_time DESC, id DESC limit 25 SELECT action FROM indexation_control WHERE id = "68" and status = "1" LIMIT 1 SHOW PROCESSLIST select count(id) from img_download where status = "2" and last_attempt > 1500654934 - 60 and stream_id = "68" SELECT `id`, `url`, `ad`, `source_name`, `crop_img`, `height_img`, `name` FROM `img_download` where (status = "0" or (status = "2" and last_attempt < 1500654934 - 60)) and attempts < "1" and addition_time >= 1500654934 - 86400 and last_attempt <= 1500654934 - 5 order by addition_time DESC, id DESC limit 25 SELECT action FROM indexation_control WHERE id = "68" and status = "1" LIMIT 1 SHOW PROCESSLIST select count(id) from img_download where status = "2" and last_attempt > 1500654939 - 60 and stream_id = "68" SELECT `id`, `url`, `ad`, `source_name`, `crop_img`, `height_img`, `name` FROM `img_download` where (status = "0" or (status = "2" and last_attempt < 1500654939 - 60)) and attempts < "1" and addition_time >= 1500654939 - 86400 and last_attempt <= 1500654939 - 5 order by addition_time DESC, id DESC limit 25