python /home/admin/mtr/script_for_cron.py -j datou_current3 -m 20 -a ' -a 4742 -v ' -s datou_current_4742 -M 0 -S 0 -U 95,95,120 import MySQLdb succeeded Import error (python version) ['/Users/moilerat/Documents/Fotonower/install/caffe/distribute/python', '/home/admin/workarea/git/Velours/python/prod', '/home/admin/workarea/install/caffe_cuda8_python3/python', '/home/admin/workarea/install/darknet', '/home/admin/workarea/git/Velours/python', '/home/admin/workarea/install/caffe_frcnn_python3/py-faster-rcnn/caffe-fast-rcnn/python', '/home/admin/mtr/.credentials', '/home/admin/workarea/install/caffe/python', '/home/admin/workarea/install/caffe_frcnn/py-faster-rcnn/tools', '/home/admin/workarea/git/fotonowerpip', '/home/admin/workarea/install/segment-anything', '/home/admin/workarea/git/pyfvs', '/usr/lib/python38.zip', '/usr/lib/python3.8', '/usr/lib/python3.8/lib-dynload', '/home/admin/.local/lib/python3.8/site-packages', '/usr/local/lib/python3.8/dist-packages', '/usr/lib/python3/dist-packages'] Namespace(auto=False, cert_args='/home/fotonower/https/cert.pem', contextDataFile='', custom_size=0, database='', datou_id='4742', datou_id_excluded='', fifo=False, host='', is_cpu_mode=False, job='batch_current', json_args='', key_args='/home/fotonower/https/vision.fotonower.com.key', limit=1000, list_photo_ids='', local='', mtr_current_id=0, mtr_portfolio_ids='', nb_thread=1, no_current=False, offset=0, only_client=False, output_file='', password='', port=5100, rand=0, save=2, use_client=False, user_id=440, username='', verbose=True) process id : 3545601 load datou : 4742 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13169 copy_chis is not consistent : 2 used against 1 in the step definition ! WARNING : number of outputs for step 13170 consolidate_hashtags_from_manual_portfolio is not consistent : 2 used against 1 in the step definition ! WARNING : number of inputs for step 13167 rle_unique_nms_with_priority is not consistent : 3 used against 1 in the step definition ! WARNING : number of outputs for step 13167 rle_unique_nms_with_priority is not consistent : 2 used against 1 in the step definition ! WARNING : number of outputs for step 13174 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 13168 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! Step 13171 blur_detection have less inputs used (0) than in the step definition (1) : maybe we manage optionnal inputs ! Step 13172 brightness have less inputs used (0) than in the step definition (1) : maybe we manage optionnal inputs ! Step 13173 send_mail_cod have less inputs used (4) than in the step definition (5) : maybe we manage optionnal inputs ! Step 13175 split_time_score have less inputs used (1) than in the step definition (2) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13169 have datatype=11 whereas input 0 of step 13167 have datatype=2 WARNING : type of output 1 of step 13170 doesn't seem to be define in the database( WARNING : type of input 3 of step 13168 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : type of output 1 of step 13170 doesn't seem to be define in the database( WARNING : type of input 1 of step 13167 doesn't seem to be define in the database( WARNING : output 0 of step 13174 have datatype=10 whereas input 3 of step 13173 have datatype=6 WARNING : type of input 1 of step 13174 doesn't seem to be define in the database( WARNING : output 1 of step 13167 have datatype=7 whereas input 1 of step 13174 have datatype=None WARNING : type of output 1 of step 13174 doesn't seem to be define in the database( WARNING : type of input 4 of step 13168 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : type of output 1 of step 13169 doesn't seem to be define in the database( WARNING : type of input 1 of step 13170 doesn't seem to be define in the database( DataTypes for each output/input checked ! Unexpected type seems boolean for variable list_input_json ERROR or WARNING : can't parse json string Expecting value: line 1 column 1 (char 0) Tried to parse : id de la photo (peut être local ou global) was removed should we ? donnée sous forme de nombre was removed should we ? None was removed should we ? donnée sous forme de texte was removed should we ? chemin de la photo was removed should we ? donnée sous forme de texte was removed should we ? [ (photo_id, photo_id_loc, hashtag_type, x0, x1, y0, y1, score), ...] was removed should we ? None was removed should we ? donnée sous forme de texte was removed should we ? (photo_id, hashtag_id, score_max) was removed should we ? id de la photo (peut être local ou global) was removed should we ? donnée sous forme de texte was removed should we ? donnée sous forme de texte was removed should we ? donnée sous forme de texte was removed should we ? chemin de la photo was removed should we ? (photo_id, hashtag_id, score_max) was removed should we ? chemin de la photo was removed should we ? (photo_id, hashtag_id, score_max) was removed should we ? (photo_id, hashtag_id, score_max) was removed should we ? (photo_id, hashtag_id, score_max) was removed should we ? (photo_id, hashtag_id, score_max) was removed should we ? (photo_id, hashtag_id, score_max) was removed should we ? (photo_id, hashtag_id, score_max) was removed should we ? donnée sous forme de texte was removed should we ? None was removed should we ? donnée sous forme de texte was removed should we ? [ptf_id0,ptf_id1...] was removed should we ? load thcls load pdts Running datou job : batch_current 4742 [] TODO datou_current to load to do maybe to take outside batchDatouExec SELECT * from MTRPhoto.mtr_datou_current where state = 0 AND mtr_portfolio_id is not NULL AND mtd_id = 4742 order by created_at desc LIMIT 1 no input labels no input values UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2544296) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2544296) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20067960 AND hide_status = 0 list_input_json: {} Current got : datou_id : 4742, datou_cur_ids : ['2544296'] with mtr_portfolio_ids : ['20067960'] and first list_photo_ids : [] new path : /proc/3545601/ Name: python3 Umask: 0002 State: R (running) Tgid: 3545601 Ngid: 0 Pid: 3545601 PPid: 3545600 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 3545601 NSpid: 3545601 NSpgid: 3544605 NSsid: 3544605 VmPeak: 1106836 kB VmSize: 1106836 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 99960 kB VmRSS: 99960 kB RssAnon: 59844 kB RssFile: 40116 kB RssShmem: 0 kB VmData: 865588 kB VmStk: 132 kB VmExe: 2640 kB VmLib: 130468 kB VmPTE: 616 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 0/63054 SigPnd: 0000000000000000 ShdPnd: 0000000000000000 SigBlk: 0000000000000000 SigIgn: 0000000001001000 SigCgt: 0000000180000002 CapInh: 0000000000000000 CapPrm: 0000000000000000 CapEff: 0000000000000000 CapBnd: 000001ffffffffff CapAmb: 0000000000000000 NoNewPrivs: 0 Seccomp: 0 Seccomp_filters: 0 Speculation_Store_Bypass: thread vulnerable SpeculationIndirectBranch: conditional enabled Cpus_allowed: ffffffff,ffffffff,ffffffff,ffffffff Cpus_allowed_list: 0-127 Mems_allowed: 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001 Mems_allowed_list: 0 voluntary_ctxt_switches: 81 nonvoluntary_ctxt_switches: 194 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '3545601', 'Ngid': '0', 'Pid': '3545601', 'PPid': '3545600', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '3545601', 'NSpid': '3545601', 'NSpgid': '3544605', 'NSsid': '3544605', 'VmPeak': '1106836 kB', 'VmSize': '1106836 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '99960 kB', 'VmRSS': '99960 kB', 'RssAnon': '59844 kB', 'RssFile': '40116 kB', 'RssShmem': '0 kB', 'VmData': '865588 kB', 'VmStk': '132 kB', 'VmExe': '2640 kB', 'VmLib': '130468 kB', 'VmPTE': '616 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '0/63054', 'SigPnd': '0000000000000000', 'ShdPnd': '0000000000000000', 'SigBlk': '0000000000000000', 'SigIgn': '0000000001001000', 'SigCgt': '0000000180000002', 'CapInh': '0000000000000000', 'CapPrm': '0000000000000000', 'CapEff': '0000000000000000', 'CapBnd': '000001ffffffffff', 'CapAmb': '0000000000000000', 'NoNewPrivs': '0', 'Seccomp': '0', 'Seccomp_filters': '0', 'Speculation_Store_Bypass': 'thread vulnerable', 'SpeculationIndirectBranch': 'conditional enabled', 'Cpus_allowed': 'ffffffff,ffffffff,ffffffff,ffffffff', 'Cpus_allowed_list': '0-127', 'Mems_allowed': '00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001', 'Mems_allowed_list': '0', 'voluntary_ctxt_switches': '81', 'nonvoluntary_ctxt_switches': '194'} ('datou_batch_current', '3545601', '1106836', '0', '1106836', '865588', '99960', b'', 'marlene', '2544296') insert ignore into MTRAdmin.mem_info (script_name, PID, VMpeak,VMswap,VMsize,VMdata,VMrss,GPU_ram, hostname, mtr_current_id) VALUES (%s,%s,%s,%s,%s,%s,%s,%s,%s,%s) Inside batchDatouExec : verbose : True ##### chargement datou SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4742 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4742 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4742 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4742 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13169 copy_chis is not consistent : 2 used against 1 in the step definition ! WARNING : number of outputs for step 13170 consolidate_hashtags_from_manual_portfolio is not consistent : 2 used against 1 in the step definition ! WARNING : number of inputs for step 13167 rle_unique_nms_with_priority is not consistent : 3 used against 1 in the step definition ! WARNING : number of outputs for step 13167 rle_unique_nms_with_priority is not consistent : 2 used against 1 in the step definition ! WARNING : number of outputs for step 13174 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 13168 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! Step 13171 blur_detection have less inputs used (0) than in the step definition (1) : maybe we manage optionnal inputs ! Step 13172 brightness have less inputs used (0) than in the step definition (1) : maybe we manage optionnal inputs ! Step 13173 send_mail_cod have less inputs used (4) than in the step definition (5) : maybe we manage optionnal inputs ! Step 13175 split_time_score have less inputs used (1) than in the step definition (2) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13169 have datatype=11 whereas input 0 of step 13167 have datatype=2 WARNING : type of output 1 of step 13170 doesn't seem to be define in the database( WARNING : type of input 3 of step 13168 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : type of output 1 of step 13170 doesn't seem to be define in the database( WARNING : type of input 1 of step 13167 doesn't seem to be define in the database( WARNING : output 0 of step 13174 have datatype=10 whereas input 3 of step 13173 have datatype=6 WARNING : type of input 1 of step 13174 doesn't seem to be define in the database( WARNING : output 1 of step 13167 have datatype=7 whereas input 1 of step 13174 have datatype=None WARNING : type of output 1 of step 13174 doesn't seem to be define in the database( WARNING : type of input 4 of step 13168 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : type of output 1 of step 13169 doesn't seem to be define in the database( WARNING : type of input 1 of step 13170 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify List Step Type Loaded in datou : copy_chis, consolidate_hashtags_from_manual_portfolio, rle_unique_nms_with_priority, ventilate_hashtags_in_portfolio, final, blur_detection, brightness, send_mail_cod, split_time_score over limit max, limiting to limit_max 100 list_input_json : {} ##### fin chargement datou ##### chargement data ##### Call load_data_input : nb_thread : 1 origin SELECT ph.photo_id, ph.url FROM MTRBack.photos ph WHERE ph.photo_id IN (SELECT mtr_photo_id from MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id in (20067960) and hide_status = 0 ) AND ph.photo_id not in (SELECT mtr_photo_id from MTRPhoto.mtr_datou_result_search where mtr_current_id in (2544296 ) ) ORDER BY ph.photo_id DESC LIMIT 0, 100 We have 1 , {} SELECT mtr_photo_id, mtr_portfolio_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id in (20067960) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 100 list_result: [{'photo_id': 1332932560, 'portfolio_id': 20067960}, {'photo_id': 1332932544, 'portfolio_id': 20067960}, {'photo_id': 1332932511, 'portfolio_id': 20067960}, {'photo_id': 1332932508, 'portfolio_id': 20067960}, {'photo_id': 1332932503, 'portfolio_id': 20067960}, {'photo_id': 1332932498, 'portfolio_id': 20067960}, {'photo_id': 1332932495, 'portfolio_id': 20067960}, {'photo_id': 1332932490, 'portfolio_id': 20067960}] map_portfolio_id_photo_id: {20067960: [1332932560, 1332932544, 1332932511, 1332932508, 1332932503, 1332932498, 1332932495, 1332932490]} ##### Call download_photos : nb_thread : 1 begin to download photo : 1332932560 download finish for photo 1332932560 begin to download photo : 1332932544 download finish for photo 1332932544 begin to download photo : 1332932511 download finish for photo 1332932511 begin to download photo : 1332932508 download finish for photo 1332932508 begin to download photo : 1332932503 download finish for photo 1332932503 begin to download photo : 1332932498 download finish for photo 1332932498 begin to download photo : 1332932495 download finish for photo 1332932495 begin to download photo : 1332932490 download finish for photo 1332932490 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos length of list_filenames : 8 ; length of list_pids : 8 ; length of list_args : 8 ##### After load_data_input time to download the photos : 3.7242231369018555 #### fin chargement data Blocking on flush ? No conitnuing About to test input to load we should then remove the video here, and this would fix the bug of datou_current ! Calling datou_exec Inside datou_exec : verbose : True number of steps : 9 step1:copy_chis Tue Feb 4 10:48:31 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20067960) Here we display some param of map_info ! map_filenames : {'temp/1738662509_3545601_1332932560_f825d98c90562b05a1d90f88c89aab48.jpg': 1332932560, 'temp/1738662509_3545601_1332932544_18f92c466b90686e9886610cb819e00c.jpg': 1332932544, 'temp/1738662509_3545601_1332932511_16c7da5397c785a490147ea41c78994c.jpg': 1332932511, 'temp/1738662509_3545601_1332932508_431fce3a404cfe9f48781244eedecee8.jpg': 1332932508, 'temp/1738662509_3545601_1332932503_e18e192d9a8485075f9df5dfc7878fbc.jpg': 1332932503, 'temp/1738662509_3545601_1332932498_96b62cb3e7176983ef294cbb501ab4eb.jpg': 1332932498, 'temp/1738662509_3545601_1332932495_637bfae6a2f7fcb8fd08da5c18932253.jpg': 1332932495, 'temp/1738662509_3545601_1332932490_87bc005fe949be1b8f9856a0f84c9bca.jpg': 1332932490} map_photo_id_path_extension : {1332932560: {'path': 'temp/1738662509_3545601_1332932560_f825d98c90562b05a1d90f88c89aab48.jpg', 'extension': 'jpg'}, 1332932544: {'path': 'temp/1738662509_3545601_1332932544_18f92c466b90686e9886610cb819e00c.jpg', 'extension': 'jpg'}, 1332932511: {'path': 'temp/1738662509_3545601_1332932511_16c7da5397c785a490147ea41c78994c.jpg', 'extension': 'jpg'}, 1332932508: {'path': 'temp/1738662509_3545601_1332932508_431fce3a404cfe9f48781244eedecee8.jpg', 'extension': 'jpg'}, 1332932503: {'path': 'temp/1738662509_3545601_1332932503_e18e192d9a8485075f9df5dfc7878fbc.jpg', 'extension': 'jpg'}, 1332932498: {'path': 'temp/1738662509_3545601_1332932498_96b62cb3e7176983ef294cbb501ab4eb.jpg', 'extension': 'jpg'}, 1332932495: {'path': 'temp/1738662509_3545601_1332932495_637bfae6a2f7fcb8fd08da5c18932253.jpg', 'extension': 'jpg'}, 1332932490: {'path': 'temp/1738662509_3545601_1332932490_87bc005fe949be1b8f9856a0f84c9bca.jpg', 'extension': 'jpg'}} map_subphoto_mainphoto : {} Begin step datou_step_copy_crop processing picture : temp/1738662509_3545601_1332932560_f825d98c90562b05a1d90f88c89aab48.jpg processing picture : temp/1738662509_3545601_1332932544_18f92c466b90686e9886610cb819e00c.jpg processing picture : temp/1738662509_3545601_1332932511_16c7da5397c785a490147ea41c78994c.jpg processing picture : temp/1738662509_3545601_1332932508_431fce3a404cfe9f48781244eedecee8.jpg processing picture : temp/1738662509_3545601_1332932503_e18e192d9a8485075f9df5dfc7878fbc.jpg processing picture : temp/1738662509_3545601_1332932498_96b62cb3e7176983ef294cbb501ab4eb.jpg processing picture : temp/1738662509_3545601_1332932495_637bfae6a2f7fcb8fd08da5c18932253.jpg processing picture : temp/1738662509_3545601_1332932490_87bc005fe949be1b8f9856a0f84c9bca.jpg batch 1 select photo_id, hashtag_id, `type`, x0, x1, y0, y1, score, id from MTRPhoto.crop_hashtag_ids where photo_id in ( 1332932560,1332932544,1332932511,1332932508,1332932503,1332932498,1332932495,1332932490) and `type` in (4855) and score>0.01and hashtag_id in (493061979,493012381) Loaded 98 chid ids of type : 4855 SELECT crop_hashtag_id, points FROM MTRPhoto.crop_polygon_points WHERE crop_hashtag_id in (3644761647,3644761655,3644761653,3644761654,3644761656,3644761649,3644761652,3644761401,3644761428,3644761409,3644757431,3644757515,3644757460,3644757494,3644757519,3644757525,3644757526,3644757437,3644757452,3644757524,3644757523,3644757522,3644757432,3644757453,3644757500,3644757438,3644757459,3644757504,3644757481,3644757274,3644757291,3644757333,3644757332,3644757307,3644757282,3644757341,3644757340,3644757324,3644757285,3644757342,3644757279,3644757300,3644757339,3644757287,3644757283,3644757328,3644757309,3644754829,3644754830,3644754854,3644754872,3644754903,3644754902,3644754873,3644754904,3644754905,3644754844,3644754856,3644754838,3644754833,3644754884,3644751451,3644751533,3644751531,3644751498,3644751522,3644751532,3644751534,3644751466,3644751495,3644751452,3644751529,3644751488,3644751499,3644751527,3644751464,3644751521,3644742538,3644742623,3644742621,3644742591,3644742615,3644742616,3644742561,3644742626,3644742625,3644742577,3644742581,3644742542,3644742568,3644742550,3644741751,3644741799,3644741830,3644741816,3644741779,3644741829,3644741760) SELECT * FROM MTRPhoto.crop_segments WHERE crop_hashtag_id in (3644761647,3644761655,3644761653,3644761654,3644761656,3644761649,3644761652,3644761401,3644761428,3644761409,3644757431,3644757515,3644757460,3644757494,3644757519,3644757525,3644757526,3644757437,3644757452,3644757524,3644757523,3644757522,3644757432,3644757453,3644757500,3644757438,3644757459,3644757504,3644757481,3644757274,3644757291,3644757333,3644757332,3644757307,3644757282,3644757341,3644757340,3644757324,3644757285,3644757342,3644757279,3644757300,3644757339,3644757287,3644757283,3644757328,3644757309,3644754829,3644754830,3644754854,3644754872,3644754903,3644754902,3644754873,3644754904,3644754905,3644754844,3644754856,3644754838,3644754833,3644754884,3644751451,3644751533,3644751531,3644751498,3644751522,3644751532,3644751534,3644751466,3644751495,3644751452,3644751529,3644751488,3644751499,3644751527,3644751464,3644751521,3644742538,3644742623,3644742621,3644742591,3644742615,3644742616,3644742561,3644742626,3644742625,3644742577,3644742581,3644742542,3644742568,3644742550,3644741751,3644741799,3644741830,3644741816,3644741779,3644741829,3644741760) SELECT * FROM MTRPhoto.crop_sum_segments WHERE crop_hashtag_id in (3644761647,3644761655,3644761653,3644761654,3644761656,3644761649,3644761652,3644761401,3644761428,3644761409,3644757431,3644757515,3644757460,3644757494,3644757519,3644757525,3644757526,3644757437,3644757452,3644757524,3644757523,3644757522,3644757432,3644757453,3644757500,3644757438,3644757459,3644757504,3644757481,3644757274,3644757291,3644757333,3644757332,3644757307,3644757282,3644757341,3644757340,3644757324,3644757285,3644757342,3644757279,3644757300,3644757339,3644757287,3644757283,3644757328,3644757309,3644754829,3644754830,3644754854,3644754872,3644754903,3644754902,3644754873,3644754904,3644754905,3644754844,3644754856,3644754838,3644754833,3644754884,3644751451,3644751533,3644751531,3644751498,3644751522,3644751532,3644751534,3644751466,3644751495,3644751452,3644751529,3644751488,3644751499,3644751527,3644751464,3644751521,3644742538,3644742623,3644742621,3644742591,3644742615,3644742616,3644742561,3644742626,3644742625,3644742577,3644742581,3644742542,3644742568,3644742550,3644741751,3644741799,3644741830,3644741816,3644741779,3644741829,3644741760) insert ignore into MTRPhoto.crop_hashtag_ids (photo_id, hashtag_id, `type`,x0,x1,y0,y1,score) VALUES (%s,%s,%s,%s,%s,%s,%s,%s) batch 1 Loaded 474 chid ids of type : 4857 Number RLEs to save : 0 TO DO : save crop sub photo not yet done ! map_nb_chis : {1332932490: 7, 1332932495: 3, 1332932498: 19, 1332932503: 18, 1332932508: 14, 1332932511: 16, 1332932544: 14, 1332932560: 7} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([20067960]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : copy_chis we use saveGeneral [1332932560, 1332932544, 1332932511, 1332932508, 1332932503, 1332932498, 1332932495, 1332932490] map_info['map_portfolio_photo'] : {20067960: [1332932560, 1332932544, 1332932511, 1332932508, 1332932503, 1332932498, 1332932495, 1332932490]} final : False mtd_id 4742 list_pids : [1332932560, 1332932544, 1332932511, 1332932508, 1332932503, 1332932498, 1332932495, 1332932490] Looping around the photos to save general results len do output : 8 /1332932490Didn't retrieve data . /1332932495Didn't retrieve data . /1332932498Didn't retrieve data . /1332932503Didn't retrieve data . /1332932508Didn't retrieve data . /1332932511Didn't retrieve data . /1332932544Didn't retrieve data . /1332932560Didn't retrieve data . before output type Here is an output not treated by saveGeneral : Managing all output in save final without adding information in the mtr_datou_result ('4742', None, None, None, None, None, None, None, '2544296') ('4742', '20067960', '1332932560', None, None, None, None, None, '2544296') ('4742', None, None, None, None, None, None, None, '2544296') ('4742', '20067960', '1332932544', None, None, None, None, None, '2544296') ('4742', None, None, None, None, None, None, None, '2544296') ('4742', '20067960', '1332932511', None, None, None, None, None, '2544296') ('4742', None, None, None, None, None, None, None, '2544296') ('4742', '20067960', '1332932508', None, None, None, None, None, '2544296') ('4742', None, None, None, None, None, None, None, '2544296') ('4742', '20067960', '1332932503', None, None, None, None, None, '2544296') ('4742', None, None, None, None, None, None, None, '2544296') ('4742', '20067960', '1332932498', None, None, None, None, None, '2544296') ('4742', None, None, None, None, None, None, None, '2544296') ('4742', '20067960', '1332932495', None, None, None, None, None, '2544296') ('4742', None, None, None, None, None, None, None, '2544296') ('4742', '20067960', '1332932490', None, None, None, None, None, '2544296') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 16 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4742', '20067960', '1332932490', 'None', None, None, None, None, '2544296'), ('4742', '20067960', '1332932495', 'None', None, None, None, None, '2544296'), ('4742', '20067960', '1332932498', 'None', None, None, None, None, '2544296'), ('4742', '20067960', '1332932503', 'None', None, None, None, None, '2544296'), ('4742', '20067960', '1332932508', 'None', None, None, None, None, '2544296'), ('4742', '20067960', '1332932511', 'None', None, None, None, None, '2544296'), ('4742', '20067960', '1332932544', 'None', None, None, None, None, '2544296'), ('4742', '20067960', '1332932560', 'None', None, None, None, None, '2544296')] time used for this insertion : 0.01405644416809082 save_final save missing photos in datou_result : time spend for datou_step_exec : 5.195660591125488 time spend to save output : 0.01455378532409668 total time spend for step 1 : 5.210214376449585 step2:consolidate_hashtags_from_manual_portfolio Tue Feb 4 10:48:37 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :0, first value : [] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20067960) Here we display some param of map_info ! map_filenames : {'temp/1738662509_3545601_1332932560_f825d98c90562b05a1d90f88c89aab48.jpg': 1332932560, 'temp/1738662509_3545601_1332932544_18f92c466b90686e9886610cb819e00c.jpg': 1332932544, 'temp/1738662509_3545601_1332932511_16c7da5397c785a490147ea41c78994c.jpg': 1332932511, 'temp/1738662509_3545601_1332932508_431fce3a404cfe9f48781244eedecee8.jpg': 1332932508, 'temp/1738662509_3545601_1332932503_e18e192d9a8485075f9df5dfc7878fbc.jpg': 1332932503, 'temp/1738662509_3545601_1332932498_96b62cb3e7176983ef294cbb501ab4eb.jpg': 1332932498, 'temp/1738662509_3545601_1332932495_637bfae6a2f7fcb8fd08da5c18932253.jpg': 1332932495, 'temp/1738662509_3545601_1332932490_87bc005fe949be1b8f9856a0f84c9bca.jpg': 1332932490} map_photo_id_path_extension : {1332932560: {'path': 'temp/1738662509_3545601_1332932560_f825d98c90562b05a1d90f88c89aab48.jpg', 'extension': 'jpg'}, 1332932544: {'path': 'temp/1738662509_3545601_1332932544_18f92c466b90686e9886610cb819e00c.jpg', 'extension': 'jpg'}, 1332932511: {'path': 'temp/1738662509_3545601_1332932511_16c7da5397c785a490147ea41c78994c.jpg', 'extension': 'jpg'}, 1332932508: {'path': 'temp/1738662509_3545601_1332932508_431fce3a404cfe9f48781244eedecee8.jpg', 'extension': 'jpg'}, 1332932503: {'path': 'temp/1738662509_3545601_1332932503_e18e192d9a8485075f9df5dfc7878fbc.jpg', 'extension': 'jpg'}, 1332932498: {'path': 'temp/1738662509_3545601_1332932498_96b62cb3e7176983ef294cbb501ab4eb.jpg', 'extension': 'jpg'}, 1332932495: {'path': 'temp/1738662509_3545601_1332932495_637bfae6a2f7fcb8fd08da5c18932253.jpg', 'extension': 'jpg'}, 1332932490: {'path': 'temp/1738662509_3545601_1332932490_87bc005fe949be1b8f9856a0f84c9bca.jpg', 'extension': 'jpg'}} map_subphoto_mainphoto : {} beginning of datou step consolidate_hashtags_from_manual_portfolio Iterating over portfolio : 20067960 on est dans le IF portfolio mere 26T SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20067960 AND mptpi.`type`=4856 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('papier','carton','metal','pet_clair','pehd','flux_dev','film_dev_souple','ela','sac_om_plein','textiles','verre','organique','dasri','masque','encombrant','autre_non_emballage','environnement','mal_croppe','flou')) To do SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20067960 AND mptpi.`type`=4857 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('papier','carton','metal','pet_clair','pehd','flux_dev','film_dev_souple','ela','sac_om_plein','textiles','verre','organique','dasri','masque','encombrant','autre_non_emballage','environnement','mal_croppe','flou')) To do SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=9745827 AND mptpi.`type`=4856 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('papier','carton','metal','pet_clair','pehd','flux_dev','film_dev_souple','ela','sac_om_plein','textiles','verre','organique','dasri','masque','encombrant','autre_non_emballage','environnement','mal_croppe','flou')) To do TODO : # On doit donc construire les chi a partir des informations dans les photos filles query : SELECT ph.photo_id FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=20071221 AND mpp.hide_status=0 ORDER BY ph.size desc SELECT distinct chi.photo_id FROM MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids csp WHERE chi.id=csp.crop_hashtag_id AND chi.type=4855 AND csp.sub_photo_id IN (1332950630,1332952835,1332952776,1332952171,1332951846,1332950652,1332950649,1332950646,1332950645,1332950642,1332950637,1332950604,1332950629,1332950628,1332950626,1332950623,1332950617,1332950612,1332950611,1332950610,1332950606) batch 1 select photo_id, hashtag_id, `type`, x0, x1, y0, y1, score, id from MTRPhoto.crop_hashtag_ids where photo_id in ( 1332932560,1332932544,1332932511,1332932508,1332932503,1332932498,1332932495) and `type` in (4855) Loaded 581 chid ids of type : 4855 SELECT crop_hashtag_id, points FROM MTRPhoto.crop_polygon_points WHERE crop_hashtag_id in (3644761417,3644761403,3644761460,3644761429,3644761422,3644761402,3644761420,3644761408,3644761466,3644761473,3644761467,3644761431,3644761430,3644761453,3644761445,3644761472,3644761407,3644761434,3644761442,3644761474,3644761465,3644761423,3644761435,3644761475,3644761421,3644761437,3644761411,3644761427,3644761476,3644761470,3644761415,3644761448,3644761433,3644761436,3644761447,3644761464,3644761459,3644761404,3644761449,3644761456,3644761462,3644761450,3644761454,3644761443,3644761439,3644761441,3644761410,3644761414,3644761440,3644761451,3644761455,3644761446,3644761471,3644761413,3644761406,3644761424,3644761401,3644761428,3644761409,3644761412,3644761405,3644761457,3644761469,3644761461,3644761418,3644761463,3644761477,3644761426,3644761458,3644761425,3644761416,3644761468,3644761419,3644761452,3644761444,3644761432,3644761438,3644757461,3644757470,3644757447,3644757433,3644757496,3644757434,3644757475,3644757472,3644757498,3644757468,3644757456,3644757454,3644757448,3644757463,3644757476,3644757478,3644757487,3644757517,3644757443,3644757477,3644757503,3644757465,3644757457,3644757511,3644757446,3644757442,3644757471,3644757440,3644757473,3644757455,3644757458,3644757502,3644757514,3644757492,3644757495,3644757512,3644757501,3644757509,3644757508,3644757449,3644757467,3644757516,3644757483,3644757506,3644757491,3644757450,3644757479,3644757486,3644757482,3644757445,3644757431,3644757515,3644757460,3644757494,3644757519,3644757525,3644757526,3644757437,3644757452,3644757524,3644757523,3644757522,3644757432,3644757453,3644757500,3644757438,3644757459,3644757504,3644757481,3644757435,3644757469,3644757462,3644757518,3644757444,3644757464,3644757488,3644757485,3644757520,3644757493,3644757507,3644757490,3644757441,3644757510,3644757439,3644757474,3644757436,3644757497,3644757480,3644757489,3644757521,3644757513,3644757451,3644757484,3644757505,3644757499,3644757466,3644757280,3644757315,3644757276,3644757316,3644757290,3644757310,3644757293,3644757303,3644757299,3644757304,3644757314,3644757330,3644757301,3644757321,3644757344,3644757306,3644757294,3644757308,3644757334,3644757312,3644757346,3644757348,3644757288,3644757295,3644757338,3644757325,3644757337,3644757281,3644757336,3644757319,3644757313,3644757298,3644757302,3644757278,3644757274,3644757291,3644757333,3644757332,3644757307,3644757282,3644757341,3644757340,3644757324,3644757285,3644757342,3644757279,3644757300,3644757339,3644757287,3644757283,3644757328,3644757309,3644757335,3644757286,3644757289,3644757277,3644757322,3644757284,3644757327,3644757296,3644757292,3644757343,3644757331,3644757305,3644757345,3644757320,3644757317,3644757323,3644757329,3644757347,3644757311,3644757349,3644757297,3644757326,3644757318,3644757275,3644754874,3644754877,3644754852,3644754845,3644754860,3644754871,3644754882,3644754896,3644754885,3644754892,3644754847,3644754870,3644754841,3644754890,3644754895,3644754831,3644754858,3644754889,3644754887,3644754859,3644754862,3644754867,3644754855,3644754835,3644754876,3644754900,3644754842,3644754869,3644754863,3644754857,3644754878,3644754836,3644754837,3644754850,3644754868,3644754866,3644754849,3644754853,3644754891,3644754897,3644754829,3644754830,3644754854,3644754872,3644754903,3644754902,3644754873,3644754904,3644754905,3644754844,3644754856,3644754838,3644754833,3644754884,3644754832,3644754865,3644754843,3644754898,3644754864,3644754834,3644754888,3644754875,3644754879,3644754893,3644754906,3644754851,3644754907,3644754899,3644754883,3644754848,3644754861,3644754839,3644754894,3644754901,3644754840,3644754880,3644754881,3644754886,3644754846,3644751453,3644751484,3644751516,3644751456,3644751530,3644751468,3644751478,3644751474,3644751467,3644751513,3644751493,3644751500,3644751518,3644751486,3644751523,3644751515,3644751507,3644751489,3644751525,3644751520,3644751475,3644751470,3644751480,3644751528,3644751455,3644751505,3644751461,3644751524,3644751469,3644751471,3644751487,3644751514,3644751501,3644751454,3644751497,3644751458,3644751519,3644751517,3644751477,3644751473,3644751511,3644751476,3644751451,3644751533,3644751531,3644751498,3644751522,3644751532,3644751534,3644751466,3644751495,3644751452,3644751529,3644751488,3644751499,3644751527,3644751464,3644751521,3644751512,3644751526,3644751504,3644751492,3644751457,3644751509,3644751459,3644751502,3644751460,3644751508,3644751479,3644751483,3644751462,3644751506,3644751490,3644751485,3644751465,3644751503,3644751510,3644751463,3644751496,3644751482,3644751494,3644751472,3644751481,3644751491,3644742563,3644742565,3644742596,3644742558,3644742583,3644742540,3644742570,3644742572,3644742587,3644742551,3644742560,3644742548,3644742580,3644742594,3644742586,3644742617,3644742567,3644742602,3644742611,3644742614,3644742624,3644742555,3644742573,3644742564,3644742578,3644742599,3644742546,3644742589,3644742539,3644742604,3644742603,3644742579,3644742622,3644742543,3644742607,3644742605,3644742547,3644742619,3644742569,3644742609,3644742574,3644742588,3644742538,3644742623,3644742621,3644742591,3644742615,3644742616,3644742561,3644742626,3644742625,3644742577,3644742581,3644742542,3644742568,3644742550,3644742592,3644742552,3644742541,3644742608,3644742562,3644742606,3644742549,3644742593,3644742618,3644742576,3644742557,3644742612,3644742566,3644742595,3644742571,3644742584,3644742544,3644742559,3644742590,3644742610,3644742598,3644742545,3644742585,3644742554,3644742613,3644742620,3644742597,3644742601,3644742600,3644742582,3644742553,3644742556,3644742575,3644741820,3644741806,3644741780,3644741798,3644741808,3644741824,3644741789,3644741771,3644741765,3644741828,3644741804,3644741821,3644741758,3644741825,3644741770,3644741776,3644741817,3644741813,3644741782,3644741818,3644741822,3644741787,3644741800,3644741796,3644741775,3644741797,3644741805,3644741781,3644741795,3644741790,3644741786,3644741791,3644741774,3644741755,3644741783,3644741752,3644741812,3644741792,3644741763,3644741811,3644741802,3644741785,3644741788,3644741756,3644741769,3644741794,3644741757,3644741807,3644741762,3644741753,3644741810,3644741761,3644741767,3644741751,3644741799,3644741830,3644741816,3644741779,3644741829,3644741760,3644741759,3644741764,3644741777,3644741768,3644741819,3644741772,3644741754,3644741766,3644741826,3644741823,3644741814,3644741778,3644741809,3644741801,3644741815,3644741827,3644741803,3644741773,3644741784,3644741793) SELECT * FROM MTRPhoto.crop_segments WHERE crop_hashtag_id in (3644761417,3644761403,3644761460,3644761429,3644761422,3644761402,3644761420,3644761408,3644761466,3644761473,3644761467,3644761431,3644761430,3644761453,3644761445,3644761472,3644761407,3644761434,3644761442,3644761474,3644761465,3644761423,3644761435,3644761475,3644761421,3644761437,3644761411,3644761427,3644761476,3644761470,3644761415,3644761448,3644761433,3644761436,3644761447,3644761464,3644761459,3644761404,3644761449,3644761456,3644761462,3644761450,3644761454,3644761443,3644761439,3644761441,3644761410,3644761414,3644761440,3644761451,3644761455,3644761446,3644761471,3644761413,3644761406,3644761424,3644761401,3644761428,3644761409,3644761412,3644761405,3644761457,3644761469,3644761461,3644761418,3644761463,3644761477,3644761426,3644761458,3644761425,3644761416,3644761468,3644761419,3644761452,3644761444,3644761432,3644761438,3644757461,3644757470,3644757447,3644757433,3644757496,3644757434,3644757475,3644757472,3644757498,3644757468,3644757456,3644757454,3644757448,3644757463,3644757476,3644757478,3644757487,3644757517,3644757443,3644757477,3644757503,3644757465,3644757457,3644757511,3644757446,3644757442,3644757471,3644757440,3644757473,3644757455,3644757458,3644757502,3644757514,3644757492,3644757495,3644757512,3644757501,3644757509,3644757508,3644757449,3644757467,3644757516,3644757483,3644757506,3644757491,3644757450,3644757479,3644757486,3644757482,3644757445,3644757431,3644757515,3644757460,3644757494,3644757519,3644757525,3644757526,3644757437,3644757452,3644757524,3644757523,3644757522,3644757432,3644757453,3644757500,3644757438,3644757459,3644757504,3644757481,3644757435,3644757469,3644757462,3644757518,3644757444,3644757464,3644757488,3644757485,3644757520,3644757493,3644757507,3644757490,3644757441,3644757510,3644757439,3644757474,3644757436,3644757497,3644757480,3644757489,3644757521,3644757513,3644757451,3644757484,3644757505,3644757499,3644757466,3644757280,3644757315,3644757276,3644757316,3644757290,3644757310,3644757293,3644757303,3644757299,3644757304,3644757314,3644757330,3644757301,3644757321,3644757344,3644757306,3644757294,3644757308,3644757334,3644757312,3644757346,3644757348,3644757288,3644757295,3644757338,3644757325,3644757337,3644757281,3644757336,3644757319,3644757313,3644757298,3644757302,3644757278,3644757274,3644757291,3644757333,3644757332,3644757307,3644757282,3644757341,3644757340,3644757324,3644757285,3644757342,3644757279,3644757300,3644757339,3644757287,3644757283,3644757328,3644757309,3644757335,3644757286,3644757289,3644757277,3644757322,3644757284,3644757327,3644757296,3644757292,3644757343,3644757331,3644757305,3644757345,3644757320,3644757317,3644757323,3644757329,3644757347,3644757311,3644757349,3644757297,3644757326,3644757318,3644757275,3644754874,3644754877,3644754852,3644754845,3644754860,3644754871,3644754882,3644754896,3644754885,3644754892,3644754847,3644754870,3644754841,3644754890,3644754895,3644754831,3644754858,3644754889,3644754887,3644754859,3644754862,3644754867,3644754855,3644754835,3644754876,3644754900,3644754842,3644754869,3644754863,3644754857,3644754878,3644754836,3644754837,3644754850,3644754868,3644754866,3644754849,3644754853,3644754891,3644754897,3644754829,3644754830,3644754854,3644754872,3644754903,3644754902,3644754873,3644754904,3644754905,3644754844,3644754856,3644754838,3644754833,3644754884,3644754832,3644754865,3644754843,3644754898,3644754864,3644754834,3644754888,3644754875,3644754879,3644754893,3644754906,3644754851,3644754907,3644754899,3644754883,3644754848,3644754861,3644754839,3644754894,3644754901,3644754840,3644754880,3644754881,3644754886,3644754846,3644751453,3644751484,3644751516,3644751456,3644751530,3644751468,3644751478,3644751474,3644751467,3644751513,3644751493,3644751500,3644751518,3644751486,3644751523,3644751515,3644751507,3644751489,3644751525,3644751520,3644751475,3644751470,3644751480,3644751528,3644751455,3644751505,3644751461,3644751524,3644751469,3644751471,3644751487,3644751514,3644751501,3644751454,3644751497,3644751458,3644751519,3644751517,3644751477,3644751473,3644751511,3644751476,3644751451,3644751533,3644751531,3644751498,3644751522,3644751532,3644751534,3644751466,3644751495,3644751452,3644751529,3644751488,3644751499,3644751527,3644751464,3644751521,3644751512,3644751526,3644751504,3644751492,3644751457,3644751509,3644751459,3644751502,3644751460,3644751508,3644751479,3644751483,3644751462,3644751506,3644751490,3644751485,3644751465,3644751503,3644751510,3644751463,3644751496,3644751482,3644751494,3644751472,3644751481,3644751491,3644742563,3644742565,3644742596,3644742558,3644742583,3644742540,3644742570,3644742572,3644742587,3644742551,3644742560,3644742548,3644742580,3644742594,3644742586,3644742617,3644742567,3644742602,3644742611,3644742614,3644742624,3644742555,3644742573,3644742564,3644742578,3644742599,3644742546,3644742589,3644742539,3644742604,3644742603,3644742579,3644742622,3644742543,3644742607,3644742605,3644742547,3644742619,3644742569,3644742609,3644742574,3644742588,3644742538,3644742623,3644742621,3644742591,3644742615,3644742616,3644742561,3644742626,3644742625,3644742577,3644742581,3644742542,3644742568,3644742550,3644742592,3644742552,3644742541,3644742608,3644742562,3644742606,3644742549,3644742593,3644742618,3644742576,3644742557,3644742612,3644742566,3644742595,3644742571,3644742584,3644742544,3644742559,3644742590,3644742610,3644742598,3644742545,3644742585,3644742554,3644742613,3644742620,3644742597,3644742601,3644742600,3644742582,3644742553,3644742556,3644742575,3644741820,3644741806,3644741780,3644741798,3644741808,3644741824,3644741789,3644741771,3644741765,3644741828,3644741804,3644741821,3644741758,3644741825,3644741770,3644741776,3644741817,3644741813,3644741782,3644741818,3644741822,3644741787,3644741800,3644741796,3644741775,3644741797,3644741805,3644741781,3644741795,3644741790,3644741786,3644741791,3644741774,3644741755,3644741783,3644741752,3644741812,3644741792,3644741763,3644741811,3644741802,3644741785,3644741788,3644741756,3644741769,3644741794,3644741757,3644741807,3644741762,3644741753,3644741810,3644741761,3644741767,3644741751,3644741799,3644741830,3644741816,3644741779,3644741829,3644741760,3644741759,3644741764,3644741777,3644741768,3644741819,3644741772,3644741754,3644741766,3644741826,3644741823,3644741814,3644741778,3644741809,3644741801,3644741815,3644741827,3644741803,3644741773,3644741784,3644741793) SELECT * FROM MTRPhoto.crop_sum_segments WHERE crop_hashtag_id in (3644761417,3644761403,3644761460,3644761429,3644761422,3644761402,3644761420,3644761408,3644761466,3644761473,3644761467,3644761431,3644761430,3644761453,3644761445,3644761472,3644761407,3644761434,3644761442,3644761474,3644761465,3644761423,3644761435,3644761475,3644761421,3644761437,3644761411,3644761427,3644761476,3644761470,3644761415,3644761448,3644761433,3644761436,3644761447,3644761464,3644761459,3644761404,3644761449,3644761456,3644761462,3644761450,3644761454,3644761443,3644761439,3644761441,3644761410,3644761414,3644761440,3644761451,3644761455,3644761446,3644761471,3644761413,3644761406,3644761424,3644761401,3644761428,3644761409,3644761412,3644761405,3644761457,3644761469,3644761461,3644761418,3644761463,3644761477,3644761426,3644761458,3644761425,3644761416,3644761468,3644761419,3644761452,3644761444,3644761432,3644761438,3644757461,3644757470,3644757447,3644757433,3644757496,3644757434,3644757475,3644757472,3644757498,3644757468,3644757456,3644757454,3644757448,3644757463,3644757476,3644757478,3644757487,3644757517,3644757443,3644757477,3644757503,3644757465,3644757457,3644757511,3644757446,3644757442,3644757471,3644757440,3644757473,3644757455,3644757458,3644757502,3644757514,3644757492,3644757495,3644757512,3644757501,3644757509,3644757508,3644757449,3644757467,3644757516,3644757483,3644757506,3644757491,3644757450,3644757479,3644757486,3644757482,3644757445,3644757431,3644757515,3644757460,3644757494,3644757519,3644757525,3644757526,3644757437,3644757452,3644757524,3644757523,3644757522,3644757432,3644757453,3644757500,3644757438,3644757459,3644757504,3644757481,3644757435,3644757469,3644757462,3644757518,3644757444,3644757464,3644757488,3644757485,3644757520,3644757493,3644757507,3644757490,3644757441,3644757510,3644757439,3644757474,3644757436,3644757497,3644757480,3644757489,3644757521,3644757513,3644757451,3644757484,3644757505,3644757499,3644757466,3644757280,3644757315,3644757276,3644757316,3644757290,3644757310,3644757293,3644757303,3644757299,3644757304,3644757314,3644757330,3644757301,3644757321,3644757344,3644757306,3644757294,3644757308,3644757334,3644757312,3644757346,3644757348,3644757288,3644757295,3644757338,3644757325,3644757337,3644757281,3644757336,3644757319,3644757313,3644757298,3644757302,3644757278,3644757274,3644757291,3644757333,3644757332,3644757307,3644757282,3644757341,3644757340,3644757324,3644757285,3644757342,3644757279,3644757300,3644757339,3644757287,3644757283,3644757328,3644757309,3644757335,3644757286,3644757289,3644757277,3644757322,3644757284,3644757327,3644757296,3644757292,3644757343,3644757331,3644757305,3644757345,3644757320,3644757317,3644757323,3644757329,3644757347,3644757311,3644757349,3644757297,3644757326,3644757318,3644757275,3644754874,3644754877,3644754852,3644754845,3644754860,3644754871,3644754882,3644754896,3644754885,3644754892,3644754847,3644754870,3644754841,3644754890,3644754895,3644754831,3644754858,3644754889,3644754887,3644754859,3644754862,3644754867,3644754855,3644754835,3644754876,3644754900,3644754842,3644754869,3644754863,3644754857,3644754878,3644754836,3644754837,3644754850,3644754868,3644754866,3644754849,3644754853,3644754891,3644754897,3644754829,3644754830,3644754854,3644754872,3644754903,3644754902,3644754873,3644754904,3644754905,3644754844,3644754856,3644754838,3644754833,3644754884,3644754832,3644754865,3644754843,3644754898,3644754864,3644754834,3644754888,3644754875,3644754879,3644754893,3644754906,3644754851,3644754907,3644754899,3644754883,3644754848,3644754861,3644754839,3644754894,3644754901,3644754840,3644754880,3644754881,3644754886,3644754846,3644751453,3644751484,3644751516,3644751456,3644751530,3644751468,3644751478,3644751474,3644751467,3644751513,3644751493,3644751500,3644751518,3644751486,3644751523,3644751515,3644751507,3644751489,3644751525,3644751520,3644751475,3644751470,3644751480,3644751528,3644751455,3644751505,3644751461,3644751524,3644751469,3644751471,3644751487,3644751514,3644751501,3644751454,3644751497,3644751458,3644751519,3644751517,3644751477,3644751473,3644751511,3644751476,3644751451,3644751533,3644751531,3644751498,3644751522,3644751532,3644751534,3644751466,3644751495,3644751452,3644751529,3644751488,3644751499,3644751527,3644751464,3644751521,3644751512,3644751526,3644751504,3644751492,3644751457,3644751509,3644751459,3644751502,3644751460,3644751508,3644751479,3644751483,3644751462,3644751506,3644751490,3644751485,3644751465,3644751503,3644751510,3644751463,3644751496,3644751482,3644751494,3644751472,3644751481,3644751491,3644742563,3644742565,3644742596,3644742558,3644742583,3644742540,3644742570,3644742572,3644742587,3644742551,3644742560,3644742548,3644742580,3644742594,3644742586,3644742617,3644742567,3644742602,3644742611,3644742614,3644742624,3644742555,3644742573,3644742564,3644742578,3644742599,3644742546,3644742589,3644742539,3644742604,3644742603,3644742579,3644742622,3644742543,3644742607,3644742605,3644742547,3644742619,3644742569,3644742609,3644742574,3644742588,3644742538,3644742623,3644742621,3644742591,3644742615,3644742616,3644742561,3644742626,3644742625,3644742577,3644742581,3644742542,3644742568,3644742550,3644742592,3644742552,3644742541,3644742608,3644742562,3644742606,3644742549,3644742593,3644742618,3644742576,3644742557,3644742612,3644742566,3644742595,3644742571,3644742584,3644742544,3644742559,3644742590,3644742610,3644742598,3644742545,3644742585,3644742554,3644742613,3644742620,3644742597,3644742601,3644742600,3644742582,3644742553,3644742556,3644742575,3644741820,3644741806,3644741780,3644741798,3644741808,3644741824,3644741789,3644741771,3644741765,3644741828,3644741804,3644741821,3644741758,3644741825,3644741770,3644741776,3644741817,3644741813,3644741782,3644741818,3644741822,3644741787,3644741800,3644741796,3644741775,3644741797,3644741805,3644741781,3644741795,3644741790,3644741786,3644741791,3644741774,3644741755,3644741783,3644741752,3644741812,3644741792,3644741763,3644741811,3644741802,3644741785,3644741788,3644741756,3644741769,3644741794,3644741757,3644741807,3644741762,3644741753,3644741810,3644741761,3644741767,3644741751,3644741799,3644741830,3644741816,3644741779,3644741829,3644741760,3644741759,3644741764,3644741777,3644741768,3644741819,3644741772,3644741754,3644741766,3644741826,3644741823,3644741814,3644741778,3644741809,3644741801,3644741815,3644741827,3644741803,3644741773,3644741784,3644741793) begin to find the sub_photo_id : begin to find the sub_photo_id : begin to find the sub_photo_id : begin to find the sub_photo_id : begin to find the sub_photo_id : begin to find the sub_photo_id : begin to find the sub_photo_id : insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id) select 20095193, mtr_photo_id, 0 from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20071221; update MTRUser.mtr_portfolio_photos as a inner join MTRUser.mtr_portfolio_photos as b on a.mtr_photo_id = b.mtr_photo_id set a.hide_status = b.hide_status where a.mtr_portfolio_id =20095193 and b.mtr_portfolio_id = 20071221; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id) select 11609166, mtr_photo_id, 0 from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20071221; update MTRUser.mtr_portfolio_photos as a inner join MTRUser.mtr_portfolio_photos as b on a.mtr_photo_id = b.mtr_photo_id set a.hide_status = b.hide_status where a.mtr_portfolio_id =11609166 and b.mtr_portfolio_id = 20071221; TODO : # On doit donc construire les chi a partir des informations dans les photos filles query : SELECT ph.photo_id FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=20071222 AND mpp.hide_status=0 ORDER BY ph.size desc SELECT distinct chi.photo_id FROM MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids csp WHERE chi.id=csp.crop_hashtag_id AND chi.type=4855 AND csp.sub_photo_id IN (1332950602,1332950607,1332950609,1332950615,1332950618,1332950627,1332950631,1332950632,1332950633,1332950647,1332950648,1332950651,1332950653,1332951778,1332951780,1332951782,1332951784,1332951785,1332951786,1332951787,1332951788,1332951792,1332951793,1332951796,1332951803,1332951804,1332951805,1332951806,1332951807,1332951808,1332951809,1332951811,1332951812,1332951814,1332951815,1332951816,1332951817,1332951818,1332951819,1332951821,1332951822,1332951824,1332951825,1332951826,1332951827,1332951828,1332951829,1332951832,1332951833,1332951835,1332951836,1332951837,1332951838,1332951839,1332951840,1332951841,1332951842,1332951844,1332951845,1332951847,1332951848,1332951849,1332951850,1332951851,1332951852,1332951853,1332951855,1332951856,1332951857,1332951859,1332951860,1332951861,1332951862,1332951864,1332951865,1332951866,1332951869,1332951870,1332951872,1332951873,1332951874,1332951875,1332951876,1332951878,1332951879,1332951880,1332951882,1332951884,1332951885,1332951886,1332951889,1332951890,1332951891,1332951893,1332951895,1332952175,1332952182,1332952193,1332952197,1332952205,1332952209,1332952213,1332952215,1332952223,1332952273,1332952467,1332952468,1332952470,1332952476,1332952479,1332952488,1332952756,1332952758,1332952759,1332952782,1332952803,1332952833,1332952834,1332952837,1332952841,1332953124,1332953126,1332953133,1332953155) batch 1 select photo_id, hashtag_id, `type`, x0, x1, y0, y1, score, id from MTRPhoto.crop_hashtag_ids where photo_id in ( 1332932560,1332932511,1332932508,1332932503,1332932495,1332932544,1332932498) and `type` in (4855) Loaded 581 chid ids of type : 4855 SELECT crop_hashtag_id, points FROM MTRPhoto.crop_polygon_points WHERE crop_hashtag_id in (3644761417,3644761403,3644761460,3644761429,3644761422,3644761402,3644761420,3644761408,3644761466,3644761473,3644761467,3644761431,3644761430,3644761453,3644761445,3644761472,3644761407,3644761434,3644761442,3644761474,3644761465,3644761423,3644761435,3644761475,3644761421,3644761437,3644761411,3644761427,3644761476,3644761470,3644761415,3644761448,3644761433,3644761436,3644761447,3644761464,3644761459,3644761404,3644761449,3644761456,3644761462,3644761450,3644761454,3644761443,3644761439,3644761441,3644761410,3644761414,3644761440,3644761451,3644761455,3644761446,3644761471,3644761413,3644761406,3644761424,3644761401,3644761428,3644761409,3644761412,3644761405,3644761457,3644761469,3644761461,3644761418,3644761463,3644761477,3644761426,3644761458,3644761425,3644761416,3644761468,3644761419,3644761452,3644761444,3644761432,3644761438,3644757461,3644757470,3644757447,3644757433,3644757496,3644757434,3644757475,3644757472,3644757498,3644757468,3644757456,3644757454,3644757448,3644757463,3644757476,3644757478,3644757487,3644757517,3644757443,3644757477,3644757503,3644757465,3644757457,3644757511,3644757446,3644757442,3644757471,3644757440,3644757473,3644757455,3644757458,3644757502,3644757514,3644757492,3644757495,3644757512,3644757501,3644757509,3644757508,3644757449,3644757467,3644757516,3644757483,3644757506,3644757491,3644757450,3644757479,3644757486,3644757482,3644757445,3644757431,3644757515,3644757460,3644757494,3644757519,3644757525,3644757526,3644757437,3644757452,3644757524,3644757523,3644757522,3644757432,3644757453,3644757500,3644757438,3644757459,3644757504,3644757481,3644757435,3644757469,3644757462,3644757518,3644757444,3644757464,3644757488,3644757485,3644757520,3644757493,3644757507,3644757490,3644757441,3644757510,3644757439,3644757474,3644757436,3644757497,3644757480,3644757489,3644757521,3644757513,3644757451,3644757484,3644757505,3644757499,3644757466,3644757280,3644757315,3644757276,3644757316,3644757290,3644757310,3644757293,3644757303,3644757299,3644757304,3644757314,3644757330,3644757301,3644757321,3644757344,3644757306,3644757294,3644757308,3644757334,3644757312,3644757346,3644757348,3644757288,3644757295,3644757338,3644757325,3644757337,3644757281,3644757336,3644757319,3644757313,3644757298,3644757302,3644757278,3644757274,3644757291,3644757333,3644757332,3644757307,3644757282,3644757341,3644757340,3644757324,3644757285,3644757342,3644757279,3644757300,3644757339,3644757287,3644757283,3644757328,3644757309,3644757335,3644757286,3644757289,3644757277,3644757322,3644757284,3644757327,3644757296,3644757292,3644757343,3644757331,3644757305,3644757345,3644757320,3644757317,3644757323,3644757329,3644757347,3644757311,3644757349,3644757297,3644757326,3644757318,3644757275,3644754874,3644754877,3644754852,3644754845,3644754860,3644754871,3644754882,3644754896,3644754885,3644754892,3644754847,3644754870,3644754841,3644754890,3644754895,3644754831,3644754858,3644754889,3644754887,3644754859,3644754862,3644754867,3644754855,3644754835,3644754876,3644754900,3644754842,3644754869,3644754863,3644754857,3644754878,3644754836,3644754837,3644754850,3644754868,3644754866,3644754849,3644754853,3644754891,3644754897,3644754829,3644754830,3644754854,3644754872,3644754903,3644754902,3644754873,3644754904,3644754905,3644754844,3644754856,3644754838,3644754833,3644754884,3644754832,3644754865,3644754843,3644754898,3644754864,3644754834,3644754888,3644754875,3644754879,3644754893,3644754906,3644754851,3644754907,3644754899,3644754883,3644754848,3644754861,3644754839,3644754894,3644754901,3644754840,3644754880,3644754881,3644754886,3644754846,3644751453,3644751484,3644751516,3644751456,3644751530,3644751468,3644751478,3644751474,3644751467,3644751513,3644751493,3644751500,3644751518,3644751486,3644751523,3644751515,3644751507,3644751489,3644751525,3644751520,3644751475,3644751470,3644751480,3644751528,3644751455,3644751505,3644751461,3644751524,3644751469,3644751471,3644751487,3644751514,3644751501,3644751454,3644751497,3644751458,3644751519,3644751517,3644751477,3644751473,3644751511,3644751476,3644751451,3644751533,3644751531,3644751498,3644751522,3644751532,3644751534,3644751466,3644751495,3644751452,3644751529,3644751488,3644751499,3644751527,3644751464,3644751521,3644751512,3644751526,3644751504,3644751492,3644751457,3644751509,3644751459,3644751502,3644751460,3644751508,3644751479,3644751483,3644751462,3644751506,3644751490,3644751485,3644751465,3644751503,3644751510,3644751463,3644751496,3644751482,3644751494,3644751472,3644751481,3644751491,3644742563,3644742565,3644742596,3644742558,3644742583,3644742540,3644742570,3644742572,3644742587,3644742551,3644742560,3644742548,3644742580,3644742594,3644742586,3644742617,3644742567,3644742602,3644742611,3644742614,3644742624,3644742555,3644742573,3644742564,3644742578,3644742599,3644742546,3644742589,3644742539,3644742604,3644742603,3644742579,3644742622,3644742543,3644742607,3644742605,3644742547,3644742619,3644742569,3644742609,3644742574,3644742588,3644742538,3644742623,3644742621,3644742591,3644742615,3644742616,3644742561,3644742626,3644742625,3644742577,3644742581,3644742542,3644742568,3644742550,3644742592,3644742552,3644742541,3644742608,3644742562,3644742606,3644742549,3644742593,3644742618,3644742576,3644742557,3644742612,3644742566,3644742595,3644742571,3644742584,3644742544,3644742559,3644742590,3644742610,3644742598,3644742545,3644742585,3644742554,3644742613,3644742620,3644742597,3644742601,3644742600,3644742582,3644742553,3644742556,3644742575,3644741820,3644741806,3644741780,3644741798,3644741808,3644741824,3644741789,3644741771,3644741765,3644741828,3644741804,3644741821,3644741758,3644741825,3644741770,3644741776,3644741817,3644741813,3644741782,3644741818,3644741822,3644741787,3644741800,3644741796,3644741775,3644741797,3644741805,3644741781,3644741795,3644741790,3644741786,3644741791,3644741774,3644741755,3644741783,3644741752,3644741812,3644741792,3644741763,3644741811,3644741802,3644741785,3644741788,3644741756,3644741769,3644741794,3644741757,3644741807,3644741762,3644741753,3644741810,3644741761,3644741767,3644741751,3644741799,3644741830,3644741816,3644741779,3644741829,3644741760,3644741759,3644741764,3644741777,3644741768,3644741819,3644741772,3644741754,3644741766,3644741826,3644741823,3644741814,3644741778,3644741809,3644741801,3644741815,3644741827,3644741803,3644741773,3644741784,3644741793) SELECT * FROM MTRPhoto.crop_segments WHERE crop_hashtag_id in (3644761417,3644761403,3644761460,3644761429,3644761422,3644761402,3644761420,3644761408,3644761466,3644761473,3644761467,3644761431,3644761430,3644761453,3644761445,3644761472,3644761407,3644761434,3644761442,3644761474,3644761465,3644761423,3644761435,3644761475,3644761421,3644761437,3644761411,3644761427,3644761476,3644761470,3644761415,3644761448,3644761433,3644761436,3644761447,3644761464,3644761459,3644761404,3644761449,3644761456,3644761462,3644761450,3644761454,3644761443,3644761439,3644761441,3644761410,3644761414,3644761440,3644761451,3644761455,3644761446,3644761471,3644761413,3644761406,3644761424,3644761401,3644761428,3644761409,3644761412,3644761405,3644761457,3644761469,3644761461,3644761418,3644761463,3644761477,3644761426,3644761458,3644761425,3644761416,3644761468,3644761419,3644761452,3644761444,3644761432,3644761438,3644757461,3644757470,3644757447,3644757433,3644757496,3644757434,3644757475,3644757472,3644757498,3644757468,3644757456,3644757454,3644757448,3644757463,3644757476,3644757478,3644757487,3644757517,3644757443,3644757477,3644757503,3644757465,3644757457,3644757511,3644757446,3644757442,3644757471,3644757440,3644757473,3644757455,3644757458,3644757502,3644757514,3644757492,3644757495,3644757512,3644757501,3644757509,3644757508,3644757449,3644757467,3644757516,3644757483,3644757506,3644757491,3644757450,3644757479,3644757486,3644757482,3644757445,3644757431,3644757515,3644757460,3644757494,3644757519,3644757525,3644757526,3644757437,3644757452,3644757524,3644757523,3644757522,3644757432,3644757453,3644757500,3644757438,3644757459,3644757504,3644757481,3644757435,3644757469,3644757462,3644757518,3644757444,3644757464,3644757488,3644757485,3644757520,3644757493,3644757507,3644757490,3644757441,3644757510,3644757439,3644757474,3644757436,3644757497,3644757480,3644757489,3644757521,3644757513,3644757451,3644757484,3644757505,3644757499,3644757466,3644757280,3644757315,3644757276,3644757316,3644757290,3644757310,3644757293,3644757303,3644757299,3644757304,3644757314,3644757330,3644757301,3644757321,3644757344,3644757306,3644757294,3644757308,3644757334,3644757312,3644757346,3644757348,3644757288,3644757295,3644757338,3644757325,3644757337,3644757281,3644757336,3644757319,3644757313,3644757298,3644757302,3644757278,3644757274,3644757291,3644757333,3644757332,3644757307,3644757282,3644757341,3644757340,3644757324,3644757285,3644757342,3644757279,3644757300,3644757339,3644757287,3644757283,3644757328,3644757309,3644757335,3644757286,3644757289,3644757277,3644757322,3644757284,3644757327,3644757296,3644757292,3644757343,3644757331,3644757305,3644757345,3644757320,3644757317,3644757323,3644757329,3644757347,3644757311,3644757349,3644757297,3644757326,3644757318,3644757275,3644754874,3644754877,3644754852,3644754845,3644754860,3644754871,3644754882,3644754896,3644754885,3644754892,3644754847,3644754870,3644754841,3644754890,3644754895,3644754831,3644754858,3644754889,3644754887,3644754859,3644754862,3644754867,3644754855,3644754835,3644754876,3644754900,3644754842,3644754869,3644754863,3644754857,3644754878,3644754836,3644754837,3644754850,3644754868,3644754866,3644754849,3644754853,3644754891,3644754897,3644754829,3644754830,3644754854,3644754872,3644754903,3644754902,3644754873,3644754904,3644754905,3644754844,3644754856,3644754838,3644754833,3644754884,3644754832,3644754865,3644754843,3644754898,3644754864,3644754834,3644754888,3644754875,3644754879,3644754893,3644754906,3644754851,3644754907,3644754899,3644754883,3644754848,3644754861,3644754839,3644754894,3644754901,3644754840,3644754880,3644754881,3644754886,3644754846,3644751453,3644751484,3644751516,3644751456,3644751530,3644751468,3644751478,3644751474,3644751467,3644751513,3644751493,3644751500,3644751518,3644751486,3644751523,3644751515,3644751507,3644751489,3644751525,3644751520,3644751475,3644751470,3644751480,3644751528,3644751455,3644751505,3644751461,3644751524,3644751469,3644751471,3644751487,3644751514,3644751501,3644751454,3644751497,3644751458,3644751519,3644751517,3644751477,3644751473,3644751511,3644751476,3644751451,3644751533,3644751531,3644751498,3644751522,3644751532,3644751534,3644751466,3644751495,3644751452,3644751529,3644751488,3644751499,3644751527,3644751464,3644751521,3644751512,3644751526,3644751504,3644751492,3644751457,3644751509,3644751459,3644751502,3644751460,3644751508,3644751479,3644751483,3644751462,3644751506,3644751490,3644751485,3644751465,3644751503,3644751510,3644751463,3644751496,3644751482,3644751494,3644751472,3644751481,3644751491,3644742563,3644742565,3644742596,3644742558,3644742583,3644742540,3644742570,3644742572,3644742587,3644742551,3644742560,3644742548,3644742580,3644742594,3644742586,3644742617,3644742567,3644742602,3644742611,3644742614,3644742624,3644742555,3644742573,3644742564,3644742578,3644742599,3644742546,3644742589,3644742539,3644742604,3644742603,3644742579,3644742622,3644742543,3644742607,3644742605,3644742547,3644742619,3644742569,3644742609,3644742574,3644742588,3644742538,3644742623,3644742621,3644742591,3644742615,3644742616,3644742561,3644742626,3644742625,3644742577,3644742581,3644742542,3644742568,3644742550,3644742592,3644742552,3644742541,3644742608,3644742562,3644742606,3644742549,3644742593,3644742618,3644742576,3644742557,3644742612,3644742566,3644742595,3644742571,3644742584,3644742544,3644742559,3644742590,3644742610,3644742598,3644742545,3644742585,3644742554,3644742613,3644742620,3644742597,3644742601,3644742600,3644742582,3644742553,3644742556,3644742575,3644741820,3644741806,3644741780,3644741798,3644741808,3644741824,3644741789,3644741771,3644741765,3644741828,3644741804,3644741821,3644741758,3644741825,3644741770,3644741776,3644741817,3644741813,3644741782,3644741818,3644741822,3644741787,3644741800,3644741796,3644741775,3644741797,3644741805,3644741781,3644741795,3644741790,3644741786,3644741791,3644741774,3644741755,3644741783,3644741752,3644741812,3644741792,3644741763,3644741811,3644741802,3644741785,3644741788,3644741756,3644741769,3644741794,3644741757,3644741807,3644741762,3644741753,3644741810,3644741761,3644741767,3644741751,3644741799,3644741830,3644741816,3644741779,3644741829,3644741760,3644741759,3644741764,3644741777,3644741768,3644741819,3644741772,3644741754,3644741766,3644741826,3644741823,3644741814,3644741778,3644741809,3644741801,3644741815,3644741827,3644741803,3644741773,3644741784,3644741793) SELECT * FROM MTRPhoto.crop_sum_segments WHERE crop_hashtag_id in (3644761417,3644761403,3644761460,3644761429,3644761422,3644761402,3644761420,3644761408,3644761466,3644761473,3644761467,3644761431,3644761430,3644761453,3644761445,3644761472,3644761407,3644761434,3644761442,3644761474,3644761465,3644761423,3644761435,3644761475,3644761421,3644761437,3644761411,3644761427,3644761476,3644761470,3644761415,3644761448,3644761433,3644761436,3644761447,3644761464,3644761459,3644761404,3644761449,3644761456,3644761462,3644761450,3644761454,3644761443,3644761439,3644761441,3644761410,3644761414,3644761440,3644761451,3644761455,3644761446,3644761471,3644761413,3644761406,3644761424,3644761401,3644761428,3644761409,3644761412,3644761405,3644761457,3644761469,3644761461,3644761418,3644761463,3644761477,3644761426,3644761458,3644761425,3644761416,3644761468,3644761419,3644761452,3644761444,3644761432,3644761438,3644757461,3644757470,3644757447,3644757433,3644757496,3644757434,3644757475,3644757472,3644757498,3644757468,3644757456,3644757454,3644757448,3644757463,3644757476,3644757478,3644757487,3644757517,3644757443,3644757477,3644757503,3644757465,3644757457,3644757511,3644757446,3644757442,3644757471,3644757440,3644757473,3644757455,3644757458,3644757502,3644757514,3644757492,3644757495,3644757512,3644757501,3644757509,3644757508,3644757449,3644757467,3644757516,3644757483,3644757506,3644757491,3644757450,3644757479,3644757486,3644757482,3644757445,3644757431,3644757515,3644757460,3644757494,3644757519,3644757525,3644757526,3644757437,3644757452,3644757524,3644757523,3644757522,3644757432,3644757453,3644757500,3644757438,3644757459,3644757504,3644757481,3644757435,3644757469,3644757462,3644757518,3644757444,3644757464,3644757488,3644757485,3644757520,3644757493,3644757507,3644757490,3644757441,3644757510,3644757439,3644757474,3644757436,3644757497,3644757480,3644757489,3644757521,3644757513,3644757451,3644757484,3644757505,3644757499,3644757466,3644757280,3644757315,3644757276,3644757316,3644757290,3644757310,3644757293,3644757303,3644757299,3644757304,3644757314,3644757330,3644757301,3644757321,3644757344,3644757306,3644757294,3644757308,3644757334,3644757312,3644757346,3644757348,3644757288,3644757295,3644757338,3644757325,3644757337,3644757281,3644757336,3644757319,3644757313,3644757298,3644757302,3644757278,3644757274,3644757291,3644757333,3644757332,3644757307,3644757282,3644757341,3644757340,3644757324,3644757285,3644757342,3644757279,3644757300,3644757339,3644757287,3644757283,3644757328,3644757309,3644757335,3644757286,3644757289,3644757277,3644757322,3644757284,3644757327,3644757296,3644757292,3644757343,3644757331,3644757305,3644757345,3644757320,3644757317,3644757323,3644757329,3644757347,3644757311,3644757349,3644757297,3644757326,3644757318,3644757275,3644754874,3644754877,3644754852,3644754845,3644754860,3644754871,3644754882,3644754896,3644754885,3644754892,3644754847,3644754870,3644754841,3644754890,3644754895,3644754831,3644754858,3644754889,3644754887,3644754859,3644754862,3644754867,3644754855,3644754835,3644754876,3644754900,3644754842,3644754869,3644754863,3644754857,3644754878,3644754836,3644754837,3644754850,3644754868,3644754866,3644754849,3644754853,3644754891,3644754897,3644754829,3644754830,3644754854,3644754872,3644754903,3644754902,3644754873,3644754904,3644754905,3644754844,3644754856,3644754838,3644754833,3644754884,3644754832,3644754865,3644754843,3644754898,3644754864,3644754834,3644754888,3644754875,3644754879,3644754893,3644754906,3644754851,3644754907,3644754899,3644754883,3644754848,3644754861,3644754839,3644754894,3644754901,3644754840,3644754880,3644754881,3644754886,3644754846,3644751453,3644751484,3644751516,3644751456,3644751530,3644751468,3644751478,3644751474,3644751467,3644751513,3644751493,3644751500,3644751518,3644751486,3644751523,3644751515,3644751507,3644751489,3644751525,3644751520,3644751475,3644751470,3644751480,3644751528,3644751455,3644751505,3644751461,3644751524,3644751469,3644751471,3644751487,3644751514,3644751501,3644751454,3644751497,3644751458,3644751519,3644751517,3644751477,3644751473,3644751511,3644751476,3644751451,3644751533,3644751531,3644751498,3644751522,3644751532,3644751534,3644751466,3644751495,3644751452,3644751529,3644751488,3644751499,3644751527,3644751464,3644751521,3644751512,3644751526,3644751504,3644751492,3644751457,3644751509,3644751459,3644751502,3644751460,3644751508,3644751479,3644751483,3644751462,3644751506,3644751490,3644751485,3644751465,3644751503,3644751510,3644751463,3644751496,3644751482,3644751494,3644751472,3644751481,3644751491,3644742563,3644742565,3644742596,3644742558,3644742583,3644742540,3644742570,3644742572,3644742587,3644742551,3644742560,3644742548,3644742580,3644742594,3644742586,3644742617,3644742567,3644742602,3644742611,3644742614,3644742624,3644742555,3644742573,3644742564,3644742578,3644742599,3644742546,3644742589,3644742539,3644742604,3644742603,3644742579,3644742622,3644742543,3644742607,3644742605,3644742547,3644742619,3644742569,3644742609,3644742574,3644742588,3644742538,3644742623,3644742621,3644742591,3644742615,3644742616,3644742561,3644742626,3644742625,3644742577,3644742581,3644742542,3644742568,3644742550,3644742592,3644742552,3644742541,3644742608,3644742562,3644742606,3644742549,3644742593,3644742618,3644742576,3644742557,3644742612,3644742566,3644742595,3644742571,3644742584,3644742544,3644742559,3644742590,3644742610,3644742598,3644742545,3644742585,3644742554,3644742613,3644742620,3644742597,3644742601,3644742600,3644742582,3644742553,3644742556,3644742575,3644741820,3644741806,3644741780,3644741798,3644741808,3644741824,3644741789,3644741771,3644741765,3644741828,3644741804,3644741821,3644741758,3644741825,3644741770,3644741776,3644741817,3644741813,3644741782,3644741818,3644741822,3644741787,3644741800,3644741796,3644741775,3644741797,3644741805,3644741781,3644741795,3644741790,3644741786,3644741791,3644741774,3644741755,3644741783,3644741752,3644741812,3644741792,3644741763,3644741811,3644741802,3644741785,3644741788,3644741756,3644741769,3644741794,3644741757,3644741807,3644741762,3644741753,3644741810,3644741761,3644741767,3644741751,3644741799,3644741830,3644741816,3644741779,3644741829,3644741760,3644741759,3644741764,3644741777,3644741768,3644741819,3644741772,3644741754,3644741766,3644741826,3644741823,3644741814,3644741778,3644741809,3644741801,3644741815,3644741827,3644741803,3644741773,3644741784,3644741793) begin to find the sub_photo_id : begin to find the sub_photo_id : begin to find the sub_photo_id : begin to find the sub_photo_id : begin to find the sub_photo_id : begin to find the sub_photo_id : begin to find the sub_photo_id : insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id) select 20095194, mtr_photo_id, 0 from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20071222; update MTRUser.mtr_portfolio_photos as a inner join MTRUser.mtr_portfolio_photos as b on a.mtr_photo_id = b.mtr_photo_id set a.hide_status = b.hide_status where a.mtr_portfolio_id =20095194 and b.mtr_portfolio_id = 20071222; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id) select 11609167, mtr_photo_id, 0 from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20071222; update MTRUser.mtr_portfolio_photos as a inner join MTRUser.mtr_portfolio_photos as b on a.mtr_photo_id = b.mtr_photo_id set a.hide_status = b.hide_status where a.mtr_portfolio_id =11609167 and b.mtr_portfolio_id = 20071222; TODO : # On doit donc construire les chi a partir des informations dans les photos filles query : SELECT ph.photo_id FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=20071223 AND mpp.hide_status=0 ORDER BY ph.size desc SELECT distinct chi.photo_id FROM MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids csp WHERE chi.id=csp.crop_hashtag_id AND chi.type=4855 AND csp.sub_photo_id IN (1332952207,1332952251,1332952267) batch 1 select photo_id, hashtag_id, `type`, x0, x1, y0, y1, score, id from MTRPhoto.crop_hashtag_ids where photo_id in ( 1332932544,1332932498,1332932495) and `type` in (4855) Loaded 262 chid ids of type : 4855 SELECT crop_hashtag_id, points FROM MTRPhoto.crop_polygon_points WHERE crop_hashtag_id in (3644761417,3644761403,3644761460,3644761429,3644761422,3644761402,3644761420,3644761408,3644761466,3644761473,3644761467,3644761431,3644761430,3644761453,3644761445,3644761472,3644761407,3644761434,3644761442,3644761474,3644761465,3644761423,3644761435,3644761475,3644761421,3644761437,3644761411,3644761427,3644761476,3644761470,3644761415,3644761448,3644761433,3644761436,3644761447,3644761464,3644761459,3644761404,3644761449,3644761456,3644761462,3644761450,3644761454,3644761443,3644761439,3644761441,3644761410,3644761414,3644761440,3644761451,3644761455,3644761446,3644761471,3644761413,3644761406,3644761424,3644761401,3644761428,3644761409,3644761412,3644761405,3644761457,3644761469,3644761461,3644761418,3644761463,3644761477,3644761426,3644761458,3644761425,3644761416,3644761468,3644761419,3644761452,3644761444,3644761432,3644761438,3644757461,3644757470,3644757447,3644757433,3644757496,3644757434,3644757475,3644757472,3644757498,3644757468,3644757456,3644757454,3644757448,3644757463,3644757476,3644757478,3644757487,3644757517,3644757443,3644757477,3644757503,3644757465,3644757457,3644757511,3644757446,3644757442,3644757471,3644757440,3644757473,3644757455,3644757458,3644757502,3644757514,3644757492,3644757495,3644757512,3644757501,3644757509,3644757508,3644757449,3644757467,3644757516,3644757483,3644757506,3644757491,3644757450,3644757479,3644757486,3644757482,3644757445,3644757431,3644757515,3644757460,3644757494,3644757519,3644757525,3644757526,3644757437,3644757452,3644757524,3644757523,3644757522,3644757432,3644757453,3644757500,3644757438,3644757459,3644757504,3644757481,3644757435,3644757469,3644757462,3644757518,3644757444,3644757464,3644757488,3644757485,3644757520,3644757493,3644757507,3644757490,3644757441,3644757510,3644757439,3644757474,3644757436,3644757497,3644757480,3644757489,3644757521,3644757513,3644757451,3644757484,3644757505,3644757499,3644757466,3644742563,3644742565,3644742596,3644742558,3644742583,3644742540,3644742570,3644742572,3644742587,3644742551,3644742560,3644742548,3644742580,3644742594,3644742586,3644742617,3644742567,3644742602,3644742611,3644742614,3644742624,3644742555,3644742573,3644742564,3644742578,3644742599,3644742546,3644742589,3644742539,3644742604,3644742603,3644742579,3644742622,3644742543,3644742607,3644742605,3644742547,3644742619,3644742569,3644742609,3644742574,3644742588,3644742538,3644742623,3644742621,3644742591,3644742615,3644742616,3644742561,3644742626,3644742625,3644742577,3644742581,3644742542,3644742568,3644742550,3644742592,3644742552,3644742541,3644742608,3644742562,3644742606,3644742549,3644742593,3644742618,3644742576,3644742557,3644742612,3644742566,3644742595,3644742571,3644742584,3644742544,3644742559,3644742590,3644742610,3644742598,3644742545,3644742585,3644742554,3644742613,3644742620,3644742597,3644742601,3644742600,3644742582,3644742553,3644742556,3644742575) SELECT * FROM MTRPhoto.crop_segments WHERE crop_hashtag_id in (3644761417,3644761403,3644761460,3644761429,3644761422,3644761402,3644761420,3644761408,3644761466,3644761473,3644761467,3644761431,3644761430,3644761453,3644761445,3644761472,3644761407,3644761434,3644761442,3644761474,3644761465,3644761423,3644761435,3644761475,3644761421,3644761437,3644761411,3644761427,3644761476,3644761470,3644761415,3644761448,3644761433,3644761436,3644761447,3644761464,3644761459,3644761404,3644761449,3644761456,3644761462,3644761450,3644761454,3644761443,3644761439,3644761441,3644761410,3644761414,3644761440,3644761451,3644761455,3644761446,3644761471,3644761413,3644761406,3644761424,3644761401,3644761428,3644761409,3644761412,3644761405,3644761457,3644761469,3644761461,3644761418,3644761463,3644761477,3644761426,3644761458,3644761425,3644761416,3644761468,3644761419,3644761452,3644761444,3644761432,3644761438,3644757461,3644757470,3644757447,3644757433,3644757496,3644757434,3644757475,3644757472,3644757498,3644757468,3644757456,3644757454,3644757448,3644757463,3644757476,3644757478,3644757487,3644757517,3644757443,3644757477,3644757503,3644757465,3644757457,3644757511,3644757446,3644757442,3644757471,3644757440,3644757473,3644757455,3644757458,3644757502,3644757514,3644757492,3644757495,3644757512,3644757501,3644757509,3644757508,3644757449,3644757467,3644757516,3644757483,3644757506,3644757491,3644757450,3644757479,3644757486,3644757482,3644757445,3644757431,3644757515,3644757460,3644757494,3644757519,3644757525,3644757526,3644757437,3644757452,3644757524,3644757523,3644757522,3644757432,3644757453,3644757500,3644757438,3644757459,3644757504,3644757481,3644757435,3644757469,3644757462,3644757518,3644757444,3644757464,3644757488,3644757485,3644757520,3644757493,3644757507,3644757490,3644757441,3644757510,3644757439,3644757474,3644757436,3644757497,3644757480,3644757489,3644757521,3644757513,3644757451,3644757484,3644757505,3644757499,3644757466,3644742563,3644742565,3644742596,3644742558,3644742583,3644742540,3644742570,3644742572,3644742587,3644742551,3644742560,3644742548,3644742580,3644742594,3644742586,3644742617,3644742567,3644742602,3644742611,3644742614,3644742624,3644742555,3644742573,3644742564,3644742578,3644742599,3644742546,3644742589,3644742539,3644742604,3644742603,3644742579,3644742622,3644742543,3644742607,3644742605,3644742547,3644742619,3644742569,3644742609,3644742574,3644742588,3644742538,3644742623,3644742621,3644742591,3644742615,3644742616,3644742561,3644742626,3644742625,3644742577,3644742581,3644742542,3644742568,3644742550,3644742592,3644742552,3644742541,3644742608,3644742562,3644742606,3644742549,3644742593,3644742618,3644742576,3644742557,3644742612,3644742566,3644742595,3644742571,3644742584,3644742544,3644742559,3644742590,3644742610,3644742598,3644742545,3644742585,3644742554,3644742613,3644742620,3644742597,3644742601,3644742600,3644742582,3644742553,3644742556,3644742575) SELECT * FROM MTRPhoto.crop_sum_segments WHERE crop_hashtag_id in (3644761417,3644761403,3644761460,3644761429,3644761422,3644761402,3644761420,3644761408,3644761466,3644761473,3644761467,3644761431,3644761430,3644761453,3644761445,3644761472,3644761407,3644761434,3644761442,3644761474,3644761465,3644761423,3644761435,3644761475,3644761421,3644761437,3644761411,3644761427,3644761476,3644761470,3644761415,3644761448,3644761433,3644761436,3644761447,3644761464,3644761459,3644761404,3644761449,3644761456,3644761462,3644761450,3644761454,3644761443,3644761439,3644761441,3644761410,3644761414,3644761440,3644761451,3644761455,3644761446,3644761471,3644761413,3644761406,3644761424,3644761401,3644761428,3644761409,3644761412,3644761405,3644761457,3644761469,3644761461,3644761418,3644761463,3644761477,3644761426,3644761458,3644761425,3644761416,3644761468,3644761419,3644761452,3644761444,3644761432,3644761438,3644757461,3644757470,3644757447,3644757433,3644757496,3644757434,3644757475,3644757472,3644757498,3644757468,3644757456,3644757454,3644757448,3644757463,3644757476,3644757478,3644757487,3644757517,3644757443,3644757477,3644757503,3644757465,3644757457,3644757511,3644757446,3644757442,3644757471,3644757440,3644757473,3644757455,3644757458,3644757502,3644757514,3644757492,3644757495,3644757512,3644757501,3644757509,3644757508,3644757449,3644757467,3644757516,3644757483,3644757506,3644757491,3644757450,3644757479,3644757486,3644757482,3644757445,3644757431,3644757515,3644757460,3644757494,3644757519,3644757525,3644757526,3644757437,3644757452,3644757524,3644757523,3644757522,3644757432,3644757453,3644757500,3644757438,3644757459,3644757504,3644757481,3644757435,3644757469,3644757462,3644757518,3644757444,3644757464,3644757488,3644757485,3644757520,3644757493,3644757507,3644757490,3644757441,3644757510,3644757439,3644757474,3644757436,3644757497,3644757480,3644757489,3644757521,3644757513,3644757451,3644757484,3644757505,3644757499,3644757466,3644742563,3644742565,3644742596,3644742558,3644742583,3644742540,3644742570,3644742572,3644742587,3644742551,3644742560,3644742548,3644742580,3644742594,3644742586,3644742617,3644742567,3644742602,3644742611,3644742614,3644742624,3644742555,3644742573,3644742564,3644742578,3644742599,3644742546,3644742589,3644742539,3644742604,3644742603,3644742579,3644742622,3644742543,3644742607,3644742605,3644742547,3644742619,3644742569,3644742609,3644742574,3644742588,3644742538,3644742623,3644742621,3644742591,3644742615,3644742616,3644742561,3644742626,3644742625,3644742577,3644742581,3644742542,3644742568,3644742550,3644742592,3644742552,3644742541,3644742608,3644742562,3644742606,3644742549,3644742593,3644742618,3644742576,3644742557,3644742612,3644742566,3644742595,3644742571,3644742584,3644742544,3644742559,3644742590,3644742610,3644742598,3644742545,3644742585,3644742554,3644742613,3644742620,3644742597,3644742601,3644742600,3644742582,3644742553,3644742556,3644742575) begin to find the sub_photo_id : begin to find the sub_photo_id : begin to find the sub_photo_id : insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id) select 20095195, mtr_photo_id, 0 from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20071223; update MTRUser.mtr_portfolio_photos as a inner join MTRUser.mtr_portfolio_photos as b on a.mtr_photo_id = b.mtr_photo_id set a.hide_status = b.hide_status where a.mtr_portfolio_id =20095195 and b.mtr_portfolio_id = 20071223; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id) select 11609168, mtr_photo_id, 0 from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20071223; update MTRUser.mtr_portfolio_photos as a inner join MTRUser.mtr_portfolio_photos as b on a.mtr_photo_id = b.mtr_photo_id set a.hide_status = b.hide_status where a.mtr_portfolio_id =11609168 and b.mtr_portfolio_id = 20071223; TODO : # On doit donc construire les chi a partir des informations dans les photos filles query : SELECT ph.photo_id FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=20071224 AND mpp.hide_status=0 ORDER BY ph.size desc SELECT distinct chi.photo_id FROM MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids csp WHERE chi.id=csp.crop_hashtag_id AND chi.type=4855 AND csp.sub_photo_id IN (1332952237,1332952241,1332952259,1332952271,1332952340,1332952341,1332952347,1332952351,1332952355,1332952356,1332952358,1332952474,1332952749,1332952754,1332952779,1332953154) batch 1 select photo_id, hashtag_id, `type`, x0, x1, y0, y1, score, id from MTRPhoto.crop_hashtag_ids where photo_id in ( 1332932503,1332932498,1332932495,1332932560,1332932511,1332932508,1332932544) and `type` in (4855) Loaded 581 chid ids of type : 4855 SELECT crop_hashtag_id, points FROM MTRPhoto.crop_polygon_points WHERE crop_hashtag_id in (3644761417,3644761403,3644761460,3644761429,3644761422,3644761402,3644761420,3644761408,3644761466,3644761473,3644761467,3644761431,3644761430,3644761453,3644761445,3644761472,3644761407,3644761434,3644761442,3644761474,3644761465,3644761423,3644761435,3644761475,3644761421,3644761437,3644761411,3644761427,3644761476,3644761470,3644761415,3644761448,3644761433,3644761436,3644761447,3644761464,3644761459,3644761404,3644761449,3644761456,3644761462,3644761450,3644761454,3644761443,3644761439,3644761441,3644761410,3644761414,3644761440,3644761451,3644761455,3644761446,3644761471,3644761413,3644761406,3644761424,3644761401,3644761428,3644761409,3644761412,3644761405,3644761457,3644761469,3644761461,3644761418,3644761463,3644761477,3644761426,3644761458,3644761425,3644761416,3644761468,3644761419,3644761452,3644761444,3644761432,3644761438,3644757461,3644757470,3644757447,3644757433,3644757496,3644757434,3644757475,3644757472,3644757498,3644757468,3644757456,3644757454,3644757448,3644757463,3644757476,3644757478,3644757487,3644757517,3644757443,3644757477,3644757503,3644757465,3644757457,3644757511,3644757446,3644757442,3644757471,3644757440,3644757473,3644757455,3644757458,3644757502,3644757514,3644757492,3644757495,3644757512,3644757501,3644757509,3644757508,3644757449,3644757467,3644757516,3644757483,3644757506,3644757491,3644757450,3644757479,3644757486,3644757482,3644757445,3644757431,3644757515,3644757460,3644757494,3644757519,3644757525,3644757526,3644757437,3644757452,3644757524,3644757523,3644757522,3644757432,3644757453,3644757500,3644757438,3644757459,3644757504,3644757481,3644757435,3644757469,3644757462,3644757518,3644757444,3644757464,3644757488,3644757485,3644757520,3644757493,3644757507,3644757490,3644757441,3644757510,3644757439,3644757474,3644757436,3644757497,3644757480,3644757489,3644757521,3644757513,3644757451,3644757484,3644757505,3644757499,3644757466,3644757280,3644757315,3644757276,3644757316,3644757290,3644757310,3644757293,3644757303,3644757299,3644757304,3644757314,3644757330,3644757301,3644757321,3644757344,3644757306,3644757294,3644757308,3644757334,3644757312,3644757346,3644757348,3644757288,3644757295,3644757338,3644757325,3644757337,3644757281,3644757336,3644757319,3644757313,3644757298,3644757302,3644757278,3644757274,3644757291,3644757333,3644757332,3644757307,3644757282,3644757341,3644757340,3644757324,3644757285,3644757342,3644757279,3644757300,3644757339,3644757287,3644757283,3644757328,3644757309,3644757335,3644757286,3644757289,3644757277,3644757322,3644757284,3644757327,3644757296,3644757292,3644757343,3644757331,3644757305,3644757345,3644757320,3644757317,3644757323,3644757329,3644757347,3644757311,3644757349,3644757297,3644757326,3644757318,3644757275,3644754874,3644754877,3644754852,3644754845,3644754860,3644754871,3644754882,3644754896,3644754885,3644754892,3644754847,3644754870,3644754841,3644754890,3644754895,3644754831,3644754858,3644754889,3644754887,3644754859,3644754862,3644754867,3644754855,3644754835,3644754876,3644754900,3644754842,3644754869,3644754863,3644754857,3644754878,3644754836,3644754837,3644754850,3644754868,3644754866,3644754849,3644754853,3644754891,3644754897,3644754829,3644754830,3644754854,3644754872,3644754903,3644754902,3644754873,3644754904,3644754905,3644754844,3644754856,3644754838,3644754833,3644754884,3644754832,3644754865,3644754843,3644754898,3644754864,3644754834,3644754888,3644754875,3644754879,3644754893,3644754906,3644754851,3644754907,3644754899,3644754883,3644754848,3644754861,3644754839,3644754894,3644754901,3644754840,3644754880,3644754881,3644754886,3644754846,3644751453,3644751484,3644751516,3644751456,3644751530,3644751468,3644751478,3644751474,3644751467,3644751513,3644751493,3644751500,3644751518,3644751486,3644751523,3644751515,3644751507,3644751489,3644751525,3644751520,3644751475,3644751470,3644751480,3644751528,3644751455,3644751505,3644751461,3644751524,3644751469,3644751471,3644751487,3644751514,3644751501,3644751454,3644751497,3644751458,3644751519,3644751517,3644751477,3644751473,3644751511,3644751476,3644751451,3644751533,3644751531,3644751498,3644751522,3644751532,3644751534,3644751466,3644751495,3644751452,3644751529,3644751488,3644751499,3644751527,3644751464,3644751521,3644751512,3644751526,3644751504,3644751492,3644751457,3644751509,3644751459,3644751502,3644751460,3644751508,3644751479,3644751483,3644751462,3644751506,3644751490,3644751485,3644751465,3644751503,3644751510,3644751463,3644751496,3644751482,3644751494,3644751472,3644751481,3644751491,3644742563,3644742565,3644742596,3644742558,3644742583,3644742540,3644742570,3644742572,3644742587,3644742551,3644742560,3644742548,3644742580,3644742594,3644742586,3644742617,3644742567,3644742602,3644742611,3644742614,3644742624,3644742555,3644742573,3644742564,3644742578,3644742599,3644742546,3644742589,3644742539,3644742604,3644742603,3644742579,3644742622,3644742543,3644742607,3644742605,3644742547,3644742619,3644742569,3644742609,3644742574,3644742588,3644742538,3644742623,3644742621,3644742591,3644742615,3644742616,3644742561,3644742626,3644742625,3644742577,3644742581,3644742542,3644742568,3644742550,3644742592,3644742552,3644742541,3644742608,3644742562,3644742606,3644742549,3644742593,3644742618,3644742576,3644742557,3644742612,3644742566,3644742595,3644742571,3644742584,3644742544,3644742559,3644742590,3644742610,3644742598,3644742545,3644742585,3644742554,3644742613,3644742620,3644742597,3644742601,3644742600,3644742582,3644742553,3644742556,3644742575,3644741820,3644741806,3644741780,3644741798,3644741808,3644741824,3644741789,3644741771,3644741765,3644741828,3644741804,3644741821,3644741758,3644741825,3644741770,3644741776,3644741817,3644741813,3644741782,3644741818,3644741822,3644741787,3644741800,3644741796,3644741775,3644741797,3644741805,3644741781,3644741795,3644741790,3644741786,3644741791,3644741774,3644741755,3644741783,3644741752,3644741812,3644741792,3644741763,3644741811,3644741802,3644741785,3644741788,3644741756,3644741769,3644741794,3644741757,3644741807,3644741762,3644741753,3644741810,3644741761,3644741767,3644741751,3644741799,3644741830,3644741816,3644741779,3644741829,3644741760,3644741759,3644741764,3644741777,3644741768,3644741819,3644741772,3644741754,3644741766,3644741826,3644741823,3644741814,3644741778,3644741809,3644741801,3644741815,3644741827,3644741803,3644741773,3644741784,3644741793) SELECT * FROM MTRPhoto.crop_segments WHERE crop_hashtag_id in (3644761417,3644761403,3644761460,3644761429,3644761422,3644761402,3644761420,3644761408,3644761466,3644761473,3644761467,3644761431,3644761430,3644761453,3644761445,3644761472,3644761407,3644761434,3644761442,3644761474,3644761465,3644761423,3644761435,3644761475,3644761421,3644761437,3644761411,3644761427,3644761476,3644761470,3644761415,3644761448,3644761433,3644761436,3644761447,3644761464,3644761459,3644761404,3644761449,3644761456,3644761462,3644761450,3644761454,3644761443,3644761439,3644761441,3644761410,3644761414,3644761440,3644761451,3644761455,3644761446,3644761471,3644761413,3644761406,3644761424,3644761401,3644761428,3644761409,3644761412,3644761405,3644761457,3644761469,3644761461,3644761418,3644761463,3644761477,3644761426,3644761458,3644761425,3644761416,3644761468,3644761419,3644761452,3644761444,3644761432,3644761438,3644757461,3644757470,3644757447,3644757433,3644757496,3644757434,3644757475,3644757472,3644757498,3644757468,3644757456,3644757454,3644757448,3644757463,3644757476,3644757478,3644757487,3644757517,3644757443,3644757477,3644757503,3644757465,3644757457,3644757511,3644757446,3644757442,3644757471,3644757440,3644757473,3644757455,3644757458,3644757502,3644757514,3644757492,3644757495,3644757512,3644757501,3644757509,3644757508,3644757449,3644757467,3644757516,3644757483,3644757506,3644757491,3644757450,3644757479,3644757486,3644757482,3644757445,3644757431,3644757515,3644757460,3644757494,3644757519,3644757525,3644757526,3644757437,3644757452,3644757524,3644757523,3644757522,3644757432,3644757453,3644757500,3644757438,3644757459,3644757504,3644757481,3644757435,3644757469,3644757462,3644757518,3644757444,3644757464,3644757488,3644757485,3644757520,3644757493,3644757507,3644757490,3644757441,3644757510,3644757439,3644757474,3644757436,3644757497,3644757480,3644757489,3644757521,3644757513,3644757451,3644757484,3644757505,3644757499,3644757466,3644757280,3644757315,3644757276,3644757316,3644757290,3644757310,3644757293,3644757303,3644757299,3644757304,3644757314,3644757330,3644757301,3644757321,3644757344,3644757306,3644757294,3644757308,3644757334,3644757312,3644757346,3644757348,3644757288,3644757295,3644757338,3644757325,3644757337,3644757281,3644757336,3644757319,3644757313,3644757298,3644757302,3644757278,3644757274,3644757291,3644757333,3644757332,3644757307,3644757282,3644757341,3644757340,3644757324,3644757285,3644757342,3644757279,3644757300,3644757339,3644757287,3644757283,3644757328,3644757309,3644757335,3644757286,3644757289,3644757277,3644757322,3644757284,3644757327,3644757296,3644757292,3644757343,3644757331,3644757305,3644757345,3644757320,3644757317,3644757323,3644757329,3644757347,3644757311,3644757349,3644757297,3644757326,3644757318,3644757275,3644754874,3644754877,3644754852,3644754845,3644754860,3644754871,3644754882,3644754896,3644754885,3644754892,3644754847,3644754870,3644754841,3644754890,3644754895,3644754831,3644754858,3644754889,3644754887,3644754859,3644754862,3644754867,3644754855,3644754835,3644754876,3644754900,3644754842,3644754869,3644754863,3644754857,3644754878,3644754836,3644754837,3644754850,3644754868,3644754866,3644754849,3644754853,3644754891,3644754897,3644754829,3644754830,3644754854,3644754872,3644754903,3644754902,3644754873,3644754904,3644754905,3644754844,3644754856,3644754838,3644754833,3644754884,3644754832,3644754865,3644754843,3644754898,3644754864,3644754834,3644754888,3644754875,3644754879,3644754893,3644754906,3644754851,3644754907,3644754899,3644754883,3644754848,3644754861,3644754839,3644754894,3644754901,3644754840,3644754880,3644754881,3644754886,3644754846,3644751453,3644751484,3644751516,3644751456,3644751530,3644751468,3644751478,3644751474,3644751467,3644751513,3644751493,3644751500,3644751518,3644751486,3644751523,3644751515,3644751507,3644751489,3644751525,3644751520,3644751475,3644751470,3644751480,3644751528,3644751455,3644751505,3644751461,3644751524,3644751469,3644751471,3644751487,3644751514,3644751501,3644751454,3644751497,3644751458,3644751519,3644751517,3644751477,3644751473,3644751511,3644751476,3644751451,3644751533,3644751531,3644751498,3644751522,3644751532,3644751534,3644751466,3644751495,3644751452,3644751529,3644751488,3644751499,3644751527,3644751464,3644751521,3644751512,3644751526,3644751504,3644751492,3644751457,3644751509,3644751459,3644751502,3644751460,3644751508,3644751479,3644751483,3644751462,3644751506,3644751490,3644751485,3644751465,3644751503,3644751510,3644751463,3644751496,3644751482,3644751494,3644751472,3644751481,3644751491,3644742563,3644742565,3644742596,3644742558,3644742583,3644742540,3644742570,3644742572,3644742587,3644742551,3644742560,3644742548,3644742580,3644742594,3644742586,3644742617,3644742567,3644742602,3644742611,3644742614,3644742624,3644742555,3644742573,3644742564,3644742578,3644742599,3644742546,3644742589,3644742539,3644742604,3644742603,3644742579,3644742622,3644742543,3644742607,3644742605,3644742547,3644742619,3644742569,3644742609,3644742574,3644742588,3644742538,3644742623,3644742621,3644742591,3644742615,3644742616,3644742561,3644742626,3644742625,3644742577,3644742581,3644742542,3644742568,3644742550,3644742592,3644742552,3644742541,3644742608,3644742562,3644742606,3644742549,3644742593,3644742618,3644742576,3644742557,3644742612,3644742566,3644742595,3644742571,3644742584,3644742544,3644742559,3644742590,3644742610,3644742598,3644742545,3644742585,3644742554,3644742613,3644742620,3644742597,3644742601,3644742600,3644742582,3644742553,3644742556,3644742575,3644741820,3644741806,3644741780,3644741798,3644741808,3644741824,3644741789,3644741771,3644741765,3644741828,3644741804,3644741821,3644741758,3644741825,3644741770,3644741776,3644741817,3644741813,3644741782,3644741818,3644741822,3644741787,3644741800,3644741796,3644741775,3644741797,3644741805,3644741781,3644741795,3644741790,3644741786,3644741791,3644741774,3644741755,3644741783,3644741752,3644741812,3644741792,3644741763,3644741811,3644741802,3644741785,3644741788,3644741756,3644741769,3644741794,3644741757,3644741807,3644741762,3644741753,3644741810,3644741761,3644741767,3644741751,3644741799,3644741830,3644741816,3644741779,3644741829,3644741760,3644741759,3644741764,3644741777,3644741768,3644741819,3644741772,3644741754,3644741766,3644741826,3644741823,3644741814,3644741778,3644741809,3644741801,3644741815,3644741827,3644741803,3644741773,3644741784,3644741793) SELECT * FROM MTRPhoto.crop_sum_segments WHERE crop_hashtag_id in (3644761417,3644761403,3644761460,3644761429,3644761422,3644761402,3644761420,3644761408,3644761466,3644761473,3644761467,3644761431,3644761430,3644761453,3644761445,3644761472,3644761407,3644761434,3644761442,3644761474,3644761465,3644761423,3644761435,3644761475,3644761421,3644761437,3644761411,3644761427,3644761476,3644761470,3644761415,3644761448,3644761433,3644761436,3644761447,3644761464,3644761459,3644761404,3644761449,3644761456,3644761462,3644761450,3644761454,3644761443,3644761439,3644761441,3644761410,3644761414,3644761440,3644761451,3644761455,3644761446,3644761471,3644761413,3644761406,3644761424,3644761401,3644761428,3644761409,3644761412,3644761405,3644761457,3644761469,3644761461,3644761418,3644761463,3644761477,3644761426,3644761458,3644761425,3644761416,3644761468,3644761419,3644761452,3644761444,3644761432,3644761438,3644757461,3644757470,3644757447,3644757433,3644757496,3644757434,3644757475,3644757472,3644757498,3644757468,3644757456,3644757454,3644757448,3644757463,3644757476,3644757478,3644757487,3644757517,3644757443,3644757477,3644757503,3644757465,3644757457,3644757511,3644757446,3644757442,3644757471,3644757440,3644757473,3644757455,3644757458,3644757502,3644757514,3644757492,3644757495,3644757512,3644757501,3644757509,3644757508,3644757449,3644757467,3644757516,3644757483,3644757506,3644757491,3644757450,3644757479,3644757486,3644757482,3644757445,3644757431,3644757515,3644757460,3644757494,3644757519,3644757525,3644757526,3644757437,3644757452,3644757524,3644757523,3644757522,3644757432,3644757453,3644757500,3644757438,3644757459,3644757504,3644757481,3644757435,3644757469,3644757462,3644757518,3644757444,3644757464,3644757488,3644757485,3644757520,3644757493,3644757507,3644757490,3644757441,3644757510,3644757439,3644757474,3644757436,3644757497,3644757480,3644757489,3644757521,3644757513,3644757451,3644757484,3644757505,3644757499,3644757466,3644757280,3644757315,3644757276,3644757316,3644757290,3644757310,3644757293,3644757303,3644757299,3644757304,3644757314,3644757330,3644757301,3644757321,3644757344,3644757306,3644757294,3644757308,3644757334,3644757312,3644757346,3644757348,3644757288,3644757295,3644757338,3644757325,3644757337,3644757281,3644757336,3644757319,3644757313,3644757298,3644757302,3644757278,3644757274,3644757291,3644757333,3644757332,3644757307,3644757282,3644757341,3644757340,3644757324,3644757285,3644757342,3644757279,3644757300,3644757339,3644757287,3644757283,3644757328,3644757309,3644757335,3644757286,3644757289,3644757277,3644757322,3644757284,3644757327,3644757296,3644757292,3644757343,3644757331,3644757305,3644757345,3644757320,3644757317,3644757323,3644757329,3644757347,3644757311,3644757349,3644757297,3644757326,3644757318,3644757275,3644754874,3644754877,3644754852,3644754845,3644754860,3644754871,3644754882,3644754896,3644754885,3644754892,3644754847,3644754870,3644754841,3644754890,3644754895,3644754831,3644754858,3644754889,3644754887,3644754859,3644754862,3644754867,3644754855,3644754835,3644754876,3644754900,3644754842,3644754869,3644754863,3644754857,3644754878,3644754836,3644754837,3644754850,3644754868,3644754866,3644754849,3644754853,3644754891,3644754897,3644754829,3644754830,3644754854,3644754872,3644754903,3644754902,3644754873,3644754904,3644754905,3644754844,3644754856,3644754838,3644754833,3644754884,3644754832,3644754865,3644754843,3644754898,3644754864,3644754834,3644754888,3644754875,3644754879,3644754893,3644754906,3644754851,3644754907,3644754899,3644754883,3644754848,3644754861,3644754839,3644754894,3644754901,3644754840,3644754880,3644754881,3644754886,3644754846,3644751453,3644751484,3644751516,3644751456,3644751530,3644751468,3644751478,3644751474,3644751467,3644751513,3644751493,3644751500,3644751518,3644751486,3644751523,3644751515,3644751507,3644751489,3644751525,3644751520,3644751475,3644751470,3644751480,3644751528,3644751455,3644751505,3644751461,3644751524,3644751469,3644751471,3644751487,3644751514,3644751501,3644751454,3644751497,3644751458,3644751519,3644751517,3644751477,3644751473,3644751511,3644751476,3644751451,3644751533,3644751531,3644751498,3644751522,3644751532,3644751534,3644751466,3644751495,3644751452,3644751529,3644751488,3644751499,3644751527,3644751464,3644751521,3644751512,3644751526,3644751504,3644751492,3644751457,3644751509,3644751459,3644751502,3644751460,3644751508,3644751479,3644751483,3644751462,3644751506,3644751490,3644751485,3644751465,3644751503,3644751510,3644751463,3644751496,3644751482,3644751494,3644751472,3644751481,3644751491,3644742563,3644742565,3644742596,3644742558,3644742583,3644742540,3644742570,3644742572,3644742587,3644742551,3644742560,3644742548,3644742580,3644742594,3644742586,3644742617,3644742567,3644742602,3644742611,3644742614,3644742624,3644742555,3644742573,3644742564,3644742578,3644742599,3644742546,3644742589,3644742539,3644742604,3644742603,3644742579,3644742622,3644742543,3644742607,3644742605,3644742547,3644742619,3644742569,3644742609,3644742574,3644742588,3644742538,3644742623,3644742621,3644742591,3644742615,3644742616,3644742561,3644742626,3644742625,3644742577,3644742581,3644742542,3644742568,3644742550,3644742592,3644742552,3644742541,3644742608,3644742562,3644742606,3644742549,3644742593,3644742618,3644742576,3644742557,3644742612,3644742566,3644742595,3644742571,3644742584,3644742544,3644742559,3644742590,3644742610,3644742598,3644742545,3644742585,3644742554,3644742613,3644742620,3644742597,3644742601,3644742600,3644742582,3644742553,3644742556,3644742575,3644741820,3644741806,3644741780,3644741798,3644741808,3644741824,3644741789,3644741771,3644741765,3644741828,3644741804,3644741821,3644741758,3644741825,3644741770,3644741776,3644741817,3644741813,3644741782,3644741818,3644741822,3644741787,3644741800,3644741796,3644741775,3644741797,3644741805,3644741781,3644741795,3644741790,3644741786,3644741791,3644741774,3644741755,3644741783,3644741752,3644741812,3644741792,3644741763,3644741811,3644741802,3644741785,3644741788,3644741756,3644741769,3644741794,3644741757,3644741807,3644741762,3644741753,3644741810,3644741761,3644741767,3644741751,3644741799,3644741830,3644741816,3644741779,3644741829,3644741760,3644741759,3644741764,3644741777,3644741768,3644741819,3644741772,3644741754,3644741766,3644741826,3644741823,3644741814,3644741778,3644741809,3644741801,3644741815,3644741827,3644741803,3644741773,3644741784,3644741793) begin to find the sub_photo_id : begin to find the sub_photo_id : begin to find the sub_photo_id : begin to find the sub_photo_id : begin to find the sub_photo_id : begin to find the sub_photo_id : begin to find the sub_photo_id : insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id) select 20095196, mtr_photo_id, 0 from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20071224; update MTRUser.mtr_portfolio_photos as a inner join MTRUser.mtr_portfolio_photos as b on a.mtr_photo_id = b.mtr_photo_id set a.hide_status = b.hide_status where a.mtr_portfolio_id =20095196 and b.mtr_portfolio_id = 20071224; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id) select 11609169, mtr_photo_id, 0 from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20071224; update MTRUser.mtr_portfolio_photos as a inner join MTRUser.mtr_portfolio_photos as b on a.mtr_photo_id = b.mtr_photo_id set a.hide_status = b.hide_status where a.mtr_portfolio_id =11609169 and b.mtr_portfolio_id = 20071224; TODO : # On doit donc construire les chi a partir des informations dans les photos filles query : SELECT ph.photo_id FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=20071225 AND mpp.hide_status=0 ORDER BY ph.size desc SELECT distinct chi.photo_id FROM MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids csp WHERE chi.id=csp.crop_hashtag_id AND chi.type=4855 AND csp.sub_photo_id IN (1332950614,1332950624,1332952163,1332952201,1332952217,1332952245,1332952261,1332952494,1332952843) batch 1 select photo_id, hashtag_id, `type`, x0, x1, y0, y1, score, id from MTRPhoto.crop_hashtag_ids where photo_id in ( 1332932511,1332932508,1332932560,1332932544,1332932498) and `type` in (4855) Loaded 428 chid ids of type : 4855 SELECT crop_hashtag_id, points FROM MTRPhoto.crop_polygon_points WHERE crop_hashtag_id in (3644757461,3644757470,3644757447,3644757433,3644757496,3644757434,3644757475,3644757472,3644757498,3644757468,3644757456,3644757454,3644757448,3644757463,3644757476,3644757478,3644757487,3644757517,3644757443,3644757477,3644757503,3644757465,3644757457,3644757511,3644757446,3644757442,3644757471,3644757440,3644757473,3644757455,3644757458,3644757502,3644757514,3644757492,3644757495,3644757512,3644757501,3644757509,3644757508,3644757449,3644757467,3644757516,3644757483,3644757506,3644757491,3644757450,3644757479,3644757486,3644757482,3644757445,3644757431,3644757515,3644757460,3644757494,3644757519,3644757525,3644757526,3644757437,3644757452,3644757524,3644757523,3644757522,3644757432,3644757453,3644757500,3644757438,3644757459,3644757504,3644757481,3644757435,3644757469,3644757462,3644757518,3644757444,3644757464,3644757488,3644757485,3644757520,3644757493,3644757507,3644757490,3644757441,3644757510,3644757439,3644757474,3644757436,3644757497,3644757480,3644757489,3644757521,3644757513,3644757451,3644757484,3644757505,3644757499,3644757466,3644754874,3644754877,3644754852,3644754845,3644754860,3644754871,3644754882,3644754896,3644754885,3644754892,3644754847,3644754870,3644754841,3644754890,3644754895,3644754831,3644754858,3644754889,3644754887,3644754859,3644754862,3644754867,3644754855,3644754835,3644754876,3644754900,3644754842,3644754869,3644754863,3644754857,3644754878,3644754836,3644754837,3644754850,3644754868,3644754866,3644754849,3644754853,3644754891,3644754897,3644754829,3644754830,3644754854,3644754872,3644754903,3644754902,3644754873,3644754904,3644754905,3644754844,3644754856,3644754838,3644754833,3644754884,3644754832,3644754865,3644754843,3644754898,3644754864,3644754834,3644754888,3644754875,3644754879,3644754893,3644754906,3644754851,3644754907,3644754899,3644754883,3644754848,3644754861,3644754839,3644754894,3644754901,3644754840,3644754880,3644754881,3644754886,3644754846,3644751453,3644751484,3644751516,3644751456,3644751530,3644751468,3644751478,3644751474,3644751467,3644751513,3644751493,3644751500,3644751518,3644751486,3644751523,3644751515,3644751507,3644751489,3644751525,3644751520,3644751475,3644751470,3644751480,3644751528,3644751455,3644751505,3644751461,3644751524,3644751469,3644751471,3644751487,3644751514,3644751501,3644751454,3644751497,3644751458,3644751519,3644751517,3644751477,3644751473,3644751511,3644751476,3644751451,3644751533,3644751531,3644751498,3644751522,3644751532,3644751534,3644751466,3644751495,3644751452,3644751529,3644751488,3644751499,3644751527,3644751464,3644751521,3644751512,3644751526,3644751504,3644751492,3644751457,3644751509,3644751459,3644751502,3644751460,3644751508,3644751479,3644751483,3644751462,3644751506,3644751490,3644751485,3644751465,3644751503,3644751510,3644751463,3644751496,3644751482,3644751494,3644751472,3644751481,3644751491,3644742563,3644742565,3644742596,3644742558,3644742583,3644742540,3644742570,3644742572,3644742587,3644742551,3644742560,3644742548,3644742580,3644742594,3644742586,3644742617,3644742567,3644742602,3644742611,3644742614,3644742624,3644742555,3644742573,3644742564,3644742578,3644742599,3644742546,3644742589,3644742539,3644742604,3644742603,3644742579,3644742622,3644742543,3644742607,3644742605,3644742547,3644742619,3644742569,3644742609,3644742574,3644742588,3644742538,3644742623,3644742621,3644742591,3644742615,3644742616,3644742561,3644742626,3644742625,3644742577,3644742581,3644742542,3644742568,3644742550,3644742592,3644742552,3644742541,3644742608,3644742562,3644742606,3644742549,3644742593,3644742618,3644742576,3644742557,3644742612,3644742566,3644742595,3644742571,3644742584,3644742544,3644742559,3644742590,3644742610,3644742598,3644742545,3644742585,3644742554,3644742613,3644742620,3644742597,3644742601,3644742600,3644742582,3644742553,3644742556,3644742575,3644741820,3644741806,3644741780,3644741798,3644741808,3644741824,3644741789,3644741771,3644741765,3644741828,3644741804,3644741821,3644741758,3644741825,3644741770,3644741776,3644741817,3644741813,3644741782,3644741818,3644741822,3644741787,3644741800,3644741796,3644741775,3644741797,3644741805,3644741781,3644741795,3644741790,3644741786,3644741791,3644741774,3644741755,3644741783,3644741752,3644741812,3644741792,3644741763,3644741811,3644741802,3644741785,3644741788,3644741756,3644741769,3644741794,3644741757,3644741807,3644741762,3644741753,3644741810,3644741761,3644741767,3644741751,3644741799,3644741830,3644741816,3644741779,3644741829,3644741760,3644741759,3644741764,3644741777,3644741768,3644741819,3644741772,3644741754,3644741766,3644741826,3644741823,3644741814,3644741778,3644741809,3644741801,3644741815,3644741827,3644741803,3644741773,3644741784,3644741793) SELECT * FROM MTRPhoto.crop_segments WHERE crop_hashtag_id in (3644757461,3644757470,3644757447,3644757433,3644757496,3644757434,3644757475,3644757472,3644757498,3644757468,3644757456,3644757454,3644757448,3644757463,3644757476,3644757478,3644757487,3644757517,3644757443,3644757477,3644757503,3644757465,3644757457,3644757511,3644757446,3644757442,3644757471,3644757440,3644757473,3644757455,3644757458,3644757502,3644757514,3644757492,3644757495,3644757512,3644757501,3644757509,3644757508,3644757449,3644757467,3644757516,3644757483,3644757506,3644757491,3644757450,3644757479,3644757486,3644757482,3644757445,3644757431,3644757515,3644757460,3644757494,3644757519,3644757525,3644757526,3644757437,3644757452,3644757524,3644757523,3644757522,3644757432,3644757453,3644757500,3644757438,3644757459,3644757504,3644757481,3644757435,3644757469,3644757462,3644757518,3644757444,3644757464,3644757488,3644757485,3644757520,3644757493,3644757507,3644757490,3644757441,3644757510,3644757439,3644757474,3644757436,3644757497,3644757480,3644757489,3644757521,3644757513,3644757451,3644757484,3644757505,3644757499,3644757466,3644754874,3644754877,3644754852,3644754845,3644754860,3644754871,3644754882,3644754896,3644754885,3644754892,3644754847,3644754870,3644754841,3644754890,3644754895,3644754831,3644754858,3644754889,3644754887,3644754859,3644754862,3644754867,3644754855,3644754835,3644754876,3644754900,3644754842,3644754869,3644754863,3644754857,3644754878,3644754836,3644754837,3644754850,3644754868,3644754866,3644754849,3644754853,3644754891,3644754897,3644754829,3644754830,3644754854,3644754872,3644754903,3644754902,3644754873,3644754904,3644754905,3644754844,3644754856,3644754838,3644754833,3644754884,3644754832,3644754865,3644754843,3644754898,3644754864,3644754834,3644754888,3644754875,3644754879,3644754893,3644754906,3644754851,3644754907,3644754899,3644754883,3644754848,3644754861,3644754839,3644754894,3644754901,3644754840,3644754880,3644754881,3644754886,3644754846,3644751453,3644751484,3644751516,3644751456,3644751530,3644751468,3644751478,3644751474,3644751467,3644751513,3644751493,3644751500,3644751518,3644751486,3644751523,3644751515,3644751507,3644751489,3644751525,3644751520,3644751475,3644751470,3644751480,3644751528,3644751455,3644751505,3644751461,3644751524,3644751469,3644751471,3644751487,3644751514,3644751501,3644751454,3644751497,3644751458,3644751519,3644751517,3644751477,3644751473,3644751511,3644751476,3644751451,3644751533,3644751531,3644751498,3644751522,3644751532,3644751534,3644751466,3644751495,3644751452,3644751529,3644751488,3644751499,3644751527,3644751464,3644751521,3644751512,3644751526,3644751504,3644751492,3644751457,3644751509,3644751459,3644751502,3644751460,3644751508,3644751479,3644751483,3644751462,3644751506,3644751490,3644751485,3644751465,3644751503,3644751510,3644751463,3644751496,3644751482,3644751494,3644751472,3644751481,3644751491,3644742563,3644742565,3644742596,3644742558,3644742583,3644742540,3644742570,3644742572,3644742587,3644742551,3644742560,3644742548,3644742580,3644742594,3644742586,3644742617,3644742567,3644742602,3644742611,3644742614,3644742624,3644742555,3644742573,3644742564,3644742578,3644742599,3644742546,3644742589,3644742539,3644742604,3644742603,3644742579,3644742622,3644742543,3644742607,3644742605,3644742547,3644742619,3644742569,3644742609,3644742574,3644742588,3644742538,3644742623,3644742621,3644742591,3644742615,3644742616,3644742561,3644742626,3644742625,3644742577,3644742581,3644742542,3644742568,3644742550,3644742592,3644742552,3644742541,3644742608,3644742562,3644742606,3644742549,3644742593,3644742618,3644742576,3644742557,3644742612,3644742566,3644742595,3644742571,3644742584,3644742544,3644742559,3644742590,3644742610,3644742598,3644742545,3644742585,3644742554,3644742613,3644742620,3644742597,3644742601,3644742600,3644742582,3644742553,3644742556,3644742575,3644741820,3644741806,3644741780,3644741798,3644741808,3644741824,3644741789,3644741771,3644741765,3644741828,3644741804,3644741821,3644741758,3644741825,3644741770,3644741776,3644741817,3644741813,3644741782,3644741818,3644741822,3644741787,3644741800,3644741796,3644741775,3644741797,3644741805,3644741781,3644741795,3644741790,3644741786,3644741791,3644741774,3644741755,3644741783,3644741752,3644741812,3644741792,3644741763,3644741811,3644741802,3644741785,3644741788,3644741756,3644741769,3644741794,3644741757,3644741807,3644741762,3644741753,3644741810,3644741761,3644741767,3644741751,3644741799,3644741830,3644741816,3644741779,3644741829,3644741760,3644741759,3644741764,3644741777,3644741768,3644741819,3644741772,3644741754,3644741766,3644741826,3644741823,3644741814,3644741778,3644741809,3644741801,3644741815,3644741827,3644741803,3644741773,3644741784,3644741793) SELECT * FROM MTRPhoto.crop_sum_segments WHERE crop_hashtag_id in (3644757461,3644757470,3644757447,3644757433,3644757496,3644757434,3644757475,3644757472,3644757498,3644757468,3644757456,3644757454,3644757448,3644757463,3644757476,3644757478,3644757487,3644757517,3644757443,3644757477,3644757503,3644757465,3644757457,3644757511,3644757446,3644757442,3644757471,3644757440,3644757473,3644757455,3644757458,3644757502,3644757514,3644757492,3644757495,3644757512,3644757501,3644757509,3644757508,3644757449,3644757467,3644757516,3644757483,3644757506,3644757491,3644757450,3644757479,3644757486,3644757482,3644757445,3644757431,3644757515,3644757460,3644757494,3644757519,3644757525,3644757526,3644757437,3644757452,3644757524,3644757523,3644757522,3644757432,3644757453,3644757500,3644757438,3644757459,3644757504,3644757481,3644757435,3644757469,3644757462,3644757518,3644757444,3644757464,3644757488,3644757485,3644757520,3644757493,3644757507,3644757490,3644757441,3644757510,3644757439,3644757474,3644757436,3644757497,3644757480,3644757489,3644757521,3644757513,3644757451,3644757484,3644757505,3644757499,3644757466,3644754874,3644754877,3644754852,3644754845,3644754860,3644754871,3644754882,3644754896,3644754885,3644754892,3644754847,3644754870,3644754841,3644754890,3644754895,3644754831,3644754858,3644754889,3644754887,3644754859,3644754862,3644754867,3644754855,3644754835,3644754876,3644754900,3644754842,3644754869,3644754863,3644754857,3644754878,3644754836,3644754837,3644754850,3644754868,3644754866,3644754849,3644754853,3644754891,3644754897,3644754829,3644754830,3644754854,3644754872,3644754903,3644754902,3644754873,3644754904,3644754905,3644754844,3644754856,3644754838,3644754833,3644754884,3644754832,3644754865,3644754843,3644754898,3644754864,3644754834,3644754888,3644754875,3644754879,3644754893,3644754906,3644754851,3644754907,3644754899,3644754883,3644754848,3644754861,3644754839,3644754894,3644754901,3644754840,3644754880,3644754881,3644754886,3644754846,3644751453,3644751484,3644751516,3644751456,3644751530,3644751468,3644751478,3644751474,3644751467,3644751513,3644751493,3644751500,3644751518,3644751486,3644751523,3644751515,3644751507,3644751489,3644751525,3644751520,3644751475,3644751470,3644751480,3644751528,3644751455,3644751505,3644751461,3644751524,3644751469,3644751471,3644751487,3644751514,3644751501,3644751454,3644751497,3644751458,3644751519,3644751517,3644751477,3644751473,3644751511,3644751476,3644751451,3644751533,3644751531,3644751498,3644751522,3644751532,3644751534,3644751466,3644751495,3644751452,3644751529,3644751488,3644751499,3644751527,3644751464,3644751521,3644751512,3644751526,3644751504,3644751492,3644751457,3644751509,3644751459,3644751502,3644751460,3644751508,3644751479,3644751483,3644751462,3644751506,3644751490,3644751485,3644751465,3644751503,3644751510,3644751463,3644751496,3644751482,3644751494,3644751472,3644751481,3644751491,3644742563,3644742565,3644742596,3644742558,3644742583,3644742540,3644742570,3644742572,3644742587,3644742551,3644742560,3644742548,3644742580,3644742594,3644742586,3644742617,3644742567,3644742602,3644742611,3644742614,3644742624,3644742555,3644742573,3644742564,3644742578,3644742599,3644742546,3644742589,3644742539,3644742604,3644742603,3644742579,3644742622,3644742543,3644742607,3644742605,3644742547,3644742619,3644742569,3644742609,3644742574,3644742588,3644742538,3644742623,3644742621,3644742591,3644742615,3644742616,3644742561,3644742626,3644742625,3644742577,3644742581,3644742542,3644742568,3644742550,3644742592,3644742552,3644742541,3644742608,3644742562,3644742606,3644742549,3644742593,3644742618,3644742576,3644742557,3644742612,3644742566,3644742595,3644742571,3644742584,3644742544,3644742559,3644742590,3644742610,3644742598,3644742545,3644742585,3644742554,3644742613,3644742620,3644742597,3644742601,3644742600,3644742582,3644742553,3644742556,3644742575,3644741820,3644741806,3644741780,3644741798,3644741808,3644741824,3644741789,3644741771,3644741765,3644741828,3644741804,3644741821,3644741758,3644741825,3644741770,3644741776,3644741817,3644741813,3644741782,3644741818,3644741822,3644741787,3644741800,3644741796,3644741775,3644741797,3644741805,3644741781,3644741795,3644741790,3644741786,3644741791,3644741774,3644741755,3644741783,3644741752,3644741812,3644741792,3644741763,3644741811,3644741802,3644741785,3644741788,3644741756,3644741769,3644741794,3644741757,3644741807,3644741762,3644741753,3644741810,3644741761,3644741767,3644741751,3644741799,3644741830,3644741816,3644741779,3644741829,3644741760,3644741759,3644741764,3644741777,3644741768,3644741819,3644741772,3644741754,3644741766,3644741826,3644741823,3644741814,3644741778,3644741809,3644741801,3644741815,3644741827,3644741803,3644741773,3644741784,3644741793) begin to find the sub_photo_id : begin to find the sub_photo_id : begin to find the sub_photo_id : begin to find the sub_photo_id : begin to find the sub_photo_id : insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id) select 20095197, mtr_photo_id, 0 from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20071225; update MTRUser.mtr_portfolio_photos as a inner join MTRUser.mtr_portfolio_photos as b on a.mtr_photo_id = b.mtr_photo_id set a.hide_status = b.hide_status where a.mtr_portfolio_id =20095197 and b.mtr_portfolio_id = 20071225; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id) select 11609170, mtr_photo_id, 0 from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20071225; update MTRUser.mtr_portfolio_photos as a inner join MTRUser.mtr_portfolio_photos as b on a.mtr_photo_id = b.mtr_photo_id set a.hide_status = b.hide_status where a.mtr_portfolio_id =11609170 and b.mtr_portfolio_id = 20071225; TODO : # On doit donc construire les chi a partir des informations dans les photos filles query : SELECT ph.photo_id FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=20071230 AND mpp.hide_status=0 ORDER BY ph.size desc SELECT distinct chi.photo_id FROM MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids csp WHERE chi.id=csp.crop_hashtag_id AND chi.type=4855 AND csp.sub_photo_id IN (1332950616,1332952842) batch 1 select photo_id, hashtag_id, `type`, x0, x1, y0, y1, score, id from MTRPhoto.crop_hashtag_ids where photo_id in ( 1332932511,1332932498) and `type` in (4855) Loaded 180 chid ids of type : 4855 SELECT crop_hashtag_id, points FROM MTRPhoto.crop_polygon_points WHERE crop_hashtag_id in (3644757461,3644757470,3644757447,3644757433,3644757496,3644757434,3644757475,3644757472,3644757498,3644757468,3644757456,3644757454,3644757448,3644757463,3644757476,3644757478,3644757487,3644757517,3644757443,3644757477,3644757503,3644757465,3644757457,3644757511,3644757446,3644757442,3644757471,3644757440,3644757473,3644757455,3644757458,3644757502,3644757514,3644757492,3644757495,3644757512,3644757501,3644757509,3644757508,3644757449,3644757467,3644757516,3644757483,3644757506,3644757491,3644757450,3644757479,3644757486,3644757482,3644757445,3644757431,3644757515,3644757460,3644757494,3644757519,3644757525,3644757526,3644757437,3644757452,3644757524,3644757523,3644757522,3644757432,3644757453,3644757500,3644757438,3644757459,3644757504,3644757481,3644757435,3644757469,3644757462,3644757518,3644757444,3644757464,3644757488,3644757485,3644757520,3644757493,3644757507,3644757490,3644757441,3644757510,3644757439,3644757474,3644757436,3644757497,3644757480,3644757489,3644757521,3644757513,3644757451,3644757484,3644757505,3644757499,3644757466,3644751453,3644751484,3644751516,3644751456,3644751530,3644751468,3644751478,3644751474,3644751467,3644751513,3644751493,3644751500,3644751518,3644751486,3644751523,3644751515,3644751507,3644751489,3644751525,3644751520,3644751475,3644751470,3644751480,3644751528,3644751455,3644751505,3644751461,3644751524,3644751469,3644751471,3644751487,3644751514,3644751501,3644751454,3644751497,3644751458,3644751519,3644751517,3644751477,3644751473,3644751511,3644751476,3644751451,3644751533,3644751531,3644751498,3644751522,3644751532,3644751534,3644751466,3644751495,3644751452,3644751529,3644751488,3644751499,3644751527,3644751464,3644751521,3644751512,3644751526,3644751504,3644751492,3644751457,3644751509,3644751459,3644751502,3644751460,3644751508,3644751479,3644751483,3644751462,3644751506,3644751490,3644751485,3644751465,3644751503,3644751510,3644751463,3644751496,3644751482,3644751494,3644751472,3644751481,3644751491) SELECT * FROM MTRPhoto.crop_segments WHERE crop_hashtag_id in (3644757461,3644757470,3644757447,3644757433,3644757496,3644757434,3644757475,3644757472,3644757498,3644757468,3644757456,3644757454,3644757448,3644757463,3644757476,3644757478,3644757487,3644757517,3644757443,3644757477,3644757503,3644757465,3644757457,3644757511,3644757446,3644757442,3644757471,3644757440,3644757473,3644757455,3644757458,3644757502,3644757514,3644757492,3644757495,3644757512,3644757501,3644757509,3644757508,3644757449,3644757467,3644757516,3644757483,3644757506,3644757491,3644757450,3644757479,3644757486,3644757482,3644757445,3644757431,3644757515,3644757460,3644757494,3644757519,3644757525,3644757526,3644757437,3644757452,3644757524,3644757523,3644757522,3644757432,3644757453,3644757500,3644757438,3644757459,3644757504,3644757481,3644757435,3644757469,3644757462,3644757518,3644757444,3644757464,3644757488,3644757485,3644757520,3644757493,3644757507,3644757490,3644757441,3644757510,3644757439,3644757474,3644757436,3644757497,3644757480,3644757489,3644757521,3644757513,3644757451,3644757484,3644757505,3644757499,3644757466,3644751453,3644751484,3644751516,3644751456,3644751530,3644751468,3644751478,3644751474,3644751467,3644751513,3644751493,3644751500,3644751518,3644751486,3644751523,3644751515,3644751507,3644751489,3644751525,3644751520,3644751475,3644751470,3644751480,3644751528,3644751455,3644751505,3644751461,3644751524,3644751469,3644751471,3644751487,3644751514,3644751501,3644751454,3644751497,3644751458,3644751519,3644751517,3644751477,3644751473,3644751511,3644751476,3644751451,3644751533,3644751531,3644751498,3644751522,3644751532,3644751534,3644751466,3644751495,3644751452,3644751529,3644751488,3644751499,3644751527,3644751464,3644751521,3644751512,3644751526,3644751504,3644751492,3644751457,3644751509,3644751459,3644751502,3644751460,3644751508,3644751479,3644751483,3644751462,3644751506,3644751490,3644751485,3644751465,3644751503,3644751510,3644751463,3644751496,3644751482,3644751494,3644751472,3644751481,3644751491) SELECT * FROM MTRPhoto.crop_sum_segments WHERE crop_hashtag_id in (3644757461,3644757470,3644757447,3644757433,3644757496,3644757434,3644757475,3644757472,3644757498,3644757468,3644757456,3644757454,3644757448,3644757463,3644757476,3644757478,3644757487,3644757517,3644757443,3644757477,3644757503,3644757465,3644757457,3644757511,3644757446,3644757442,3644757471,3644757440,3644757473,3644757455,3644757458,3644757502,3644757514,3644757492,3644757495,3644757512,3644757501,3644757509,3644757508,3644757449,3644757467,3644757516,3644757483,3644757506,3644757491,3644757450,3644757479,3644757486,3644757482,3644757445,3644757431,3644757515,3644757460,3644757494,3644757519,3644757525,3644757526,3644757437,3644757452,3644757524,3644757523,3644757522,3644757432,3644757453,3644757500,3644757438,3644757459,3644757504,3644757481,3644757435,3644757469,3644757462,3644757518,3644757444,3644757464,3644757488,3644757485,3644757520,3644757493,3644757507,3644757490,3644757441,3644757510,3644757439,3644757474,3644757436,3644757497,3644757480,3644757489,3644757521,3644757513,3644757451,3644757484,3644757505,3644757499,3644757466,3644751453,3644751484,3644751516,3644751456,3644751530,3644751468,3644751478,3644751474,3644751467,3644751513,3644751493,3644751500,3644751518,3644751486,3644751523,3644751515,3644751507,3644751489,3644751525,3644751520,3644751475,3644751470,3644751480,3644751528,3644751455,3644751505,3644751461,3644751524,3644751469,3644751471,3644751487,3644751514,3644751501,3644751454,3644751497,3644751458,3644751519,3644751517,3644751477,3644751473,3644751511,3644751476,3644751451,3644751533,3644751531,3644751498,3644751522,3644751532,3644751534,3644751466,3644751495,3644751452,3644751529,3644751488,3644751499,3644751527,3644751464,3644751521,3644751512,3644751526,3644751504,3644751492,3644751457,3644751509,3644751459,3644751502,3644751460,3644751508,3644751479,3644751483,3644751462,3644751506,3644751490,3644751485,3644751465,3644751503,3644751510,3644751463,3644751496,3644751482,3644751494,3644751472,3644751481,3644751491) begin to find the sub_photo_id : begin to find the sub_photo_id : insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id) select 20095200, mtr_photo_id, 0 from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20071230; update MTRUser.mtr_portfolio_photos as a inner join MTRUser.mtr_portfolio_photos as b on a.mtr_photo_id = b.mtr_photo_id set a.hide_status = b.hide_status where a.mtr_portfolio_id =20095200 and b.mtr_portfolio_id = 20071230; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id) select 11609173, mtr_photo_id, 0 from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20071230; update MTRUser.mtr_portfolio_photos as a inner join MTRUser.mtr_portfolio_photos as b on a.mtr_photo_id = b.mtr_photo_id set a.hide_status = b.hide_status where a.mtr_portfolio_id =11609173 and b.mtr_portfolio_id = 20071230; TODO : # On doit donc construire les chi a partir des informations dans les photos filles query : SELECT ph.photo_id FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=20071232 AND mpp.hide_status=0 ORDER BY ph.size desc SELECT distinct chi.photo_id FROM MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids csp WHERE chi.id=csp.crop_hashtag_id AND chi.type=4855 AND csp.sub_photo_id IN (1332952778) batch 1 select photo_id, hashtag_id, `type`, x0, x1, y0, y1, score, id from MTRPhoto.crop_hashtag_ids where photo_id in ( 1332932511) and `type` in (4855) Loaded 84 chid ids of type : 4855 SELECT crop_hashtag_id, points FROM MTRPhoto.crop_polygon_points WHERE crop_hashtag_id in (3644751453,3644751484,3644751516,3644751456,3644751530,3644751468,3644751478,3644751474,3644751467,3644751513,3644751493,3644751500,3644751518,3644751486,3644751523,3644751515,3644751507,3644751489,3644751525,3644751520,3644751475,3644751470,3644751480,3644751528,3644751455,3644751505,3644751461,3644751524,3644751469,3644751471,3644751487,3644751514,3644751501,3644751454,3644751497,3644751458,3644751519,3644751517,3644751477,3644751473,3644751511,3644751476,3644751451,3644751533,3644751531,3644751498,3644751522,3644751532,3644751534,3644751466,3644751495,3644751452,3644751529,3644751488,3644751499,3644751527,3644751464,3644751521,3644751512,3644751526,3644751504,3644751492,3644751457,3644751509,3644751459,3644751502,3644751460,3644751508,3644751479,3644751483,3644751462,3644751506,3644751490,3644751485,3644751465,3644751503,3644751510,3644751463,3644751496,3644751482,3644751494,3644751472,3644751481,3644751491) SELECT * FROM MTRPhoto.crop_segments WHERE crop_hashtag_id in (3644751453,3644751484,3644751516,3644751456,3644751530,3644751468,3644751478,3644751474,3644751467,3644751513,3644751493,3644751500,3644751518,3644751486,3644751523,3644751515,3644751507,3644751489,3644751525,3644751520,3644751475,3644751470,3644751480,3644751528,3644751455,3644751505,3644751461,3644751524,3644751469,3644751471,3644751487,3644751514,3644751501,3644751454,3644751497,3644751458,3644751519,3644751517,3644751477,3644751473,3644751511,3644751476,3644751451,3644751533,3644751531,3644751498,3644751522,3644751532,3644751534,3644751466,3644751495,3644751452,3644751529,3644751488,3644751499,3644751527,3644751464,3644751521,3644751512,3644751526,3644751504,3644751492,3644751457,3644751509,3644751459,3644751502,3644751460,3644751508,3644751479,3644751483,3644751462,3644751506,3644751490,3644751485,3644751465,3644751503,3644751510,3644751463,3644751496,3644751482,3644751494,3644751472,3644751481,3644751491) SELECT * FROM MTRPhoto.crop_sum_segments WHERE crop_hashtag_id in (3644751453,3644751484,3644751516,3644751456,3644751530,3644751468,3644751478,3644751474,3644751467,3644751513,3644751493,3644751500,3644751518,3644751486,3644751523,3644751515,3644751507,3644751489,3644751525,3644751520,3644751475,3644751470,3644751480,3644751528,3644751455,3644751505,3644751461,3644751524,3644751469,3644751471,3644751487,3644751514,3644751501,3644751454,3644751497,3644751458,3644751519,3644751517,3644751477,3644751473,3644751511,3644751476,3644751451,3644751533,3644751531,3644751498,3644751522,3644751532,3644751534,3644751466,3644751495,3644751452,3644751529,3644751488,3644751499,3644751527,3644751464,3644751521,3644751512,3644751526,3644751504,3644751492,3644751457,3644751509,3644751459,3644751502,3644751460,3644751508,3644751479,3644751483,3644751462,3644751506,3644751490,3644751485,3644751465,3644751503,3644751510,3644751463,3644751496,3644751482,3644751494,3644751472,3644751481,3644751491) begin to find the sub_photo_id : insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id) select 20095202, mtr_photo_id, 0 from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20071232; update MTRUser.mtr_portfolio_photos as a inner join MTRUser.mtr_portfolio_photos as b on a.mtr_photo_id = b.mtr_photo_id set a.hide_status = b.hide_status where a.mtr_portfolio_id =20095202 and b.mtr_portfolio_id = 20071232; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id) select 11609175, mtr_photo_id, 0 from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20071232; update MTRUser.mtr_portfolio_photos as a inner join MTRUser.mtr_portfolio_photos as b on a.mtr_photo_id = b.mtr_photo_id set a.hide_status = b.hide_status where a.mtr_portfolio_id =11609175 and b.mtr_portfolio_id = 20071232; TODO : # On doit donc construire les chi a partir des informations dans les photos filles query : SELECT ph.photo_id FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=20071233 AND mpp.hide_status=0 ORDER BY ph.size desc SELECT distinct chi.photo_id FROM MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids csp WHERE chi.id=csp.crop_hashtag_id AND chi.type=4855 AND csp.sub_photo_id IN (1332952225) batch 1 select photo_id, hashtag_id, `type`, x0, x1, y0, y1, score, id from MTRPhoto.crop_hashtag_ids where photo_id in ( 1332932508) and `type` in (4855) Loaded 79 chid ids of type : 4855 SELECT crop_hashtag_id, points FROM MTRPhoto.crop_polygon_points WHERE crop_hashtag_id in (3644754874,3644754877,3644754852,3644754845,3644754860,3644754871,3644754882,3644754896,3644754885,3644754892,3644754847,3644754870,3644754841,3644754890,3644754895,3644754831,3644754858,3644754889,3644754887,3644754859,3644754862,3644754867,3644754855,3644754835,3644754876,3644754900,3644754842,3644754869,3644754863,3644754857,3644754878,3644754836,3644754837,3644754850,3644754868,3644754866,3644754849,3644754853,3644754891,3644754897,3644754829,3644754830,3644754854,3644754872,3644754903,3644754902,3644754873,3644754904,3644754905,3644754844,3644754856,3644754838,3644754833,3644754884,3644754832,3644754865,3644754843,3644754898,3644754864,3644754834,3644754888,3644754875,3644754879,3644754893,3644754906,3644754851,3644754907,3644754899,3644754883,3644754848,3644754861,3644754839,3644754894,3644754901,3644754840,3644754880,3644754881,3644754886,3644754846) SELECT * FROM MTRPhoto.crop_segments WHERE crop_hashtag_id in (3644754874,3644754877,3644754852,3644754845,3644754860,3644754871,3644754882,3644754896,3644754885,3644754892,3644754847,3644754870,3644754841,3644754890,3644754895,3644754831,3644754858,3644754889,3644754887,3644754859,3644754862,3644754867,3644754855,3644754835,3644754876,3644754900,3644754842,3644754869,3644754863,3644754857,3644754878,3644754836,3644754837,3644754850,3644754868,3644754866,3644754849,3644754853,3644754891,3644754897,3644754829,3644754830,3644754854,3644754872,3644754903,3644754902,3644754873,3644754904,3644754905,3644754844,3644754856,3644754838,3644754833,3644754884,3644754832,3644754865,3644754843,3644754898,3644754864,3644754834,3644754888,3644754875,3644754879,3644754893,3644754906,3644754851,3644754907,3644754899,3644754883,3644754848,3644754861,3644754839,3644754894,3644754901,3644754840,3644754880,3644754881,3644754886,3644754846) SELECT * FROM MTRPhoto.crop_sum_segments WHERE crop_hashtag_id in (3644754874,3644754877,3644754852,3644754845,3644754860,3644754871,3644754882,3644754896,3644754885,3644754892,3644754847,3644754870,3644754841,3644754890,3644754895,3644754831,3644754858,3644754889,3644754887,3644754859,3644754862,3644754867,3644754855,3644754835,3644754876,3644754900,3644754842,3644754869,3644754863,3644754857,3644754878,3644754836,3644754837,3644754850,3644754868,3644754866,3644754849,3644754853,3644754891,3644754897,3644754829,3644754830,3644754854,3644754872,3644754903,3644754902,3644754873,3644754904,3644754905,3644754844,3644754856,3644754838,3644754833,3644754884,3644754832,3644754865,3644754843,3644754898,3644754864,3644754834,3644754888,3644754875,3644754879,3644754893,3644754906,3644754851,3644754907,3644754899,3644754883,3644754848,3644754861,3644754839,3644754894,3644754901,3644754840,3644754880,3644754881,3644754886,3644754846) begin to find the sub_photo_id : insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id) select 20095203, mtr_photo_id, 0 from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20071233; update MTRUser.mtr_portfolio_photos as a inner join MTRUser.mtr_portfolio_photos as b on a.mtr_photo_id = b.mtr_photo_id set a.hide_status = b.hide_status where a.mtr_portfolio_id =20095203 and b.mtr_portfolio_id = 20071233; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id) select 11609176, mtr_photo_id, 0 from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20071233; update MTRUser.mtr_portfolio_photos as a inner join MTRUser.mtr_portfolio_photos as b on a.mtr_photo_id = b.mtr_photo_id set a.hide_status = b.hide_status where a.mtr_portfolio_id =11609176 and b.mtr_portfolio_id = 20071233; TODO : # On doit donc construire les chi a partir des informations dans les photos filles query : SELECT ph.photo_id FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=20071234 AND mpp.hide_status=0 ORDER BY ph.size desc insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id) select 20095204, mtr_photo_id, 0 from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20071234; update MTRUser.mtr_portfolio_photos as a inner join MTRUser.mtr_portfolio_photos as b on a.mtr_photo_id = b.mtr_photo_id set a.hide_status = b.hide_status where a.mtr_portfolio_id =20095204 and b.mtr_portfolio_id = 20071234; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id) select 11609177, mtr_photo_id, 0 from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20071234; update MTRUser.mtr_portfolio_photos as a inner join MTRUser.mtr_portfolio_photos as b on a.mtr_photo_id = b.mtr_photo_id set a.hide_status = b.hide_status where a.mtr_portfolio_id =11609177 and b.mtr_portfolio_id = 20071234; TODO : # On doit donc construire les chi a partir des informations dans les photos filles query : SELECT ph.photo_id FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=20071235 AND mpp.hide_status=0 ORDER BY ph.size desc insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id) select 20095205, mtr_photo_id, 0 from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20071235; update MTRUser.mtr_portfolio_photos as a inner join MTRUser.mtr_portfolio_photos as b on a.mtr_photo_id = b.mtr_photo_id set a.hide_status = b.hide_status where a.mtr_portfolio_id =20095205 and b.mtr_portfolio_id = 20071235; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id) select 11609178, mtr_photo_id, 0 from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20071235; update MTRUser.mtr_portfolio_photos as a inner join MTRUser.mtr_portfolio_photos as b on a.mtr_photo_id = b.mtr_photo_id set a.hide_status = b.hide_status where a.mtr_portfolio_id =11609178 and b.mtr_portfolio_id = 20071235; TODO : # On doit donc construire les chi a partir des informations dans les photos filles query : SELECT ph.photo_id FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=20071236 AND mpp.hide_status=0 ORDER BY ph.size desc insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id) select 20095206, mtr_photo_id, 0 from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20071236; update MTRUser.mtr_portfolio_photos as a inner join MTRUser.mtr_portfolio_photos as b on a.mtr_photo_id = b.mtr_photo_id set a.hide_status = b.hide_status where a.mtr_portfolio_id =20095206 and b.mtr_portfolio_id = 20071236; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id) select 11609179, mtr_photo_id, 0 from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20071236; update MTRUser.mtr_portfolio_photos as a inner join MTRUser.mtr_portfolio_photos as b on a.mtr_photo_id = b.mtr_photo_id set a.hide_status = b.hide_status where a.mtr_portfolio_id =11609179 and b.mtr_portfolio_id = 20071236; TODO : # On doit donc construire les chi a partir des informations dans les photos filles query : SELECT ph.photo_id FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=20071237 AND mpp.hide_status=0 ORDER BY ph.size desc SELECT distinct chi.photo_id FROM MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids csp WHERE chi.id=csp.crop_hashtag_id AND chi.type=4855 AND csp.sub_photo_id IN (1332951888) batch 1 select photo_id, hashtag_id, `type`, x0, x1, y0, y1, score, id from MTRPhoto.crop_hashtag_ids where photo_id in ( 1332932495) and `type` in (4855) Loaded 77 chid ids of type : 4855 SELECT crop_hashtag_id, points FROM MTRPhoto.crop_polygon_points WHERE crop_hashtag_id in (3644761417,3644761403,3644761460,3644761429,3644761422,3644761402,3644761420,3644761408,3644761466,3644761473,3644761467,3644761431,3644761430,3644761453,3644761445,3644761472,3644761407,3644761434,3644761442,3644761474,3644761465,3644761423,3644761435,3644761475,3644761421,3644761437,3644761411,3644761427,3644761476,3644761470,3644761415,3644761448,3644761433,3644761436,3644761447,3644761464,3644761459,3644761404,3644761449,3644761456,3644761462,3644761450,3644761454,3644761443,3644761439,3644761441,3644761410,3644761414,3644761440,3644761451,3644761455,3644761446,3644761471,3644761413,3644761406,3644761424,3644761401,3644761428,3644761409,3644761412,3644761405,3644761457,3644761469,3644761461,3644761418,3644761463,3644761477,3644761426,3644761458,3644761425,3644761416,3644761468,3644761419,3644761452,3644761444,3644761432,3644761438) SELECT * FROM MTRPhoto.crop_segments WHERE crop_hashtag_id in (3644761417,3644761403,3644761460,3644761429,3644761422,3644761402,3644761420,3644761408,3644761466,3644761473,3644761467,3644761431,3644761430,3644761453,3644761445,3644761472,3644761407,3644761434,3644761442,3644761474,3644761465,3644761423,3644761435,3644761475,3644761421,3644761437,3644761411,3644761427,3644761476,3644761470,3644761415,3644761448,3644761433,3644761436,3644761447,3644761464,3644761459,3644761404,3644761449,3644761456,3644761462,3644761450,3644761454,3644761443,3644761439,3644761441,3644761410,3644761414,3644761440,3644761451,3644761455,3644761446,3644761471,3644761413,3644761406,3644761424,3644761401,3644761428,3644761409,3644761412,3644761405,3644761457,3644761469,3644761461,3644761418,3644761463,3644761477,3644761426,3644761458,3644761425,3644761416,3644761468,3644761419,3644761452,3644761444,3644761432,3644761438) SELECT * FROM MTRPhoto.crop_sum_segments WHERE crop_hashtag_id in (3644761417,3644761403,3644761460,3644761429,3644761422,3644761402,3644761420,3644761408,3644761466,3644761473,3644761467,3644761431,3644761430,3644761453,3644761445,3644761472,3644761407,3644761434,3644761442,3644761474,3644761465,3644761423,3644761435,3644761475,3644761421,3644761437,3644761411,3644761427,3644761476,3644761470,3644761415,3644761448,3644761433,3644761436,3644761447,3644761464,3644761459,3644761404,3644761449,3644761456,3644761462,3644761450,3644761454,3644761443,3644761439,3644761441,3644761410,3644761414,3644761440,3644761451,3644761455,3644761446,3644761471,3644761413,3644761406,3644761424,3644761401,3644761428,3644761409,3644761412,3644761405,3644761457,3644761469,3644761461,3644761418,3644761463,3644761477,3644761426,3644761458,3644761425,3644761416,3644761468,3644761419,3644761452,3644761444,3644761432,3644761438) begin to find the sub_photo_id : insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id) select 20095207, mtr_photo_id, 0 from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20071237; update MTRUser.mtr_portfolio_photos as a inner join MTRUser.mtr_portfolio_photos as b on a.mtr_photo_id = b.mtr_photo_id set a.hide_status = b.hide_status where a.mtr_portfolio_id =20095207 and b.mtr_portfolio_id = 20071237; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id) select 11609180, mtr_photo_id, 0 from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20071237; update MTRUser.mtr_portfolio_photos as a inner join MTRUser.mtr_portfolio_photos as b on a.mtr_photo_id = b.mtr_photo_id set a.hide_status = b.hide_status where a.mtr_portfolio_id =11609180 and b.mtr_portfolio_id = 20071237; TODO : # On doit donc construire les chi a partir des informations dans les photos filles query : SELECT ph.photo_id FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=20071239 AND mpp.hide_status=0 ORDER BY ph.size desc SELECT distinct chi.photo_id FROM MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids csp WHERE chi.id=csp.crop_hashtag_id AND chi.type=4855 AND csp.sub_photo_id IN (1332951820,1332952227,1332952366,1332952490,1332952811) batch 1 select photo_id, hashtag_id, `type`, x0, x1, y0, y1, score, id from MTRPhoto.crop_hashtag_ids where photo_id in ( 1332932511,1332932508,1332932544,1332932503) and `type` in (4855) Loaded 328 chid ids of type : 4855 SELECT crop_hashtag_id, points FROM MTRPhoto.crop_polygon_points WHERE crop_hashtag_id in (3644757280,3644757315,3644757276,3644757316,3644757290,3644757310,3644757293,3644757303,3644757299,3644757304,3644757314,3644757330,3644757301,3644757321,3644757344,3644757306,3644757294,3644757308,3644757334,3644757312,3644757346,3644757348,3644757288,3644757295,3644757338,3644757325,3644757337,3644757281,3644757336,3644757319,3644757313,3644757298,3644757302,3644757278,3644757274,3644757291,3644757333,3644757332,3644757307,3644757282,3644757341,3644757340,3644757324,3644757285,3644757342,3644757279,3644757300,3644757339,3644757287,3644757283,3644757328,3644757309,3644757335,3644757286,3644757289,3644757277,3644757322,3644757284,3644757327,3644757296,3644757292,3644757343,3644757331,3644757305,3644757345,3644757320,3644757317,3644757323,3644757329,3644757347,3644757311,3644757349,3644757297,3644757326,3644757318,3644757275,3644754874,3644754877,3644754852,3644754845,3644754860,3644754871,3644754882,3644754896,3644754885,3644754892,3644754847,3644754870,3644754841,3644754890,3644754895,3644754831,3644754858,3644754889,3644754887,3644754859,3644754862,3644754867,3644754855,3644754835,3644754876,3644754900,3644754842,3644754869,3644754863,3644754857,3644754878,3644754836,3644754837,3644754850,3644754868,3644754866,3644754849,3644754853,3644754891,3644754897,3644754829,3644754830,3644754854,3644754872,3644754903,3644754902,3644754873,3644754904,3644754905,3644754844,3644754856,3644754838,3644754833,3644754884,3644754832,3644754865,3644754843,3644754898,3644754864,3644754834,3644754888,3644754875,3644754879,3644754893,3644754906,3644754851,3644754907,3644754899,3644754883,3644754848,3644754861,3644754839,3644754894,3644754901,3644754840,3644754880,3644754881,3644754886,3644754846,3644751453,3644751484,3644751516,3644751456,3644751530,3644751468,3644751478,3644751474,3644751467,3644751513,3644751493,3644751500,3644751518,3644751486,3644751523,3644751515,3644751507,3644751489,3644751525,3644751520,3644751475,3644751470,3644751480,3644751528,3644751455,3644751505,3644751461,3644751524,3644751469,3644751471,3644751487,3644751514,3644751501,3644751454,3644751497,3644751458,3644751519,3644751517,3644751477,3644751473,3644751511,3644751476,3644751451,3644751533,3644751531,3644751498,3644751522,3644751532,3644751534,3644751466,3644751495,3644751452,3644751529,3644751488,3644751499,3644751527,3644751464,3644751521,3644751512,3644751526,3644751504,3644751492,3644751457,3644751509,3644751459,3644751502,3644751460,3644751508,3644751479,3644751483,3644751462,3644751506,3644751490,3644751485,3644751465,3644751503,3644751510,3644751463,3644751496,3644751482,3644751494,3644751472,3644751481,3644751491,3644742563,3644742565,3644742596,3644742558,3644742583,3644742540,3644742570,3644742572,3644742587,3644742551,3644742560,3644742548,3644742580,3644742594,3644742586,3644742617,3644742567,3644742602,3644742611,3644742614,3644742624,3644742555,3644742573,3644742564,3644742578,3644742599,3644742546,3644742589,3644742539,3644742604,3644742603,3644742579,3644742622,3644742543,3644742607,3644742605,3644742547,3644742619,3644742569,3644742609,3644742574,3644742588,3644742538,3644742623,3644742621,3644742591,3644742615,3644742616,3644742561,3644742626,3644742625,3644742577,3644742581,3644742542,3644742568,3644742550,3644742592,3644742552,3644742541,3644742608,3644742562,3644742606,3644742549,3644742593,3644742618,3644742576,3644742557,3644742612,3644742566,3644742595,3644742571,3644742584,3644742544,3644742559,3644742590,3644742610,3644742598,3644742545,3644742585,3644742554,3644742613,3644742620,3644742597,3644742601,3644742600,3644742582,3644742553,3644742556,3644742575) SELECT * FROM MTRPhoto.crop_segments WHERE crop_hashtag_id in (3644757280,3644757315,3644757276,3644757316,3644757290,3644757310,3644757293,3644757303,3644757299,3644757304,3644757314,3644757330,3644757301,3644757321,3644757344,3644757306,3644757294,3644757308,3644757334,3644757312,3644757346,3644757348,3644757288,3644757295,3644757338,3644757325,3644757337,3644757281,3644757336,3644757319,3644757313,3644757298,3644757302,3644757278,3644757274,3644757291,3644757333,3644757332,3644757307,3644757282,3644757341,3644757340,3644757324,3644757285,3644757342,3644757279,3644757300,3644757339,3644757287,3644757283,3644757328,3644757309,3644757335,3644757286,3644757289,3644757277,3644757322,3644757284,3644757327,3644757296,3644757292,3644757343,3644757331,3644757305,3644757345,3644757320,3644757317,3644757323,3644757329,3644757347,3644757311,3644757349,3644757297,3644757326,3644757318,3644757275,3644754874,3644754877,3644754852,3644754845,3644754860,3644754871,3644754882,3644754896,3644754885,3644754892,3644754847,3644754870,3644754841,3644754890,3644754895,3644754831,3644754858,3644754889,3644754887,3644754859,3644754862,3644754867,3644754855,3644754835,3644754876,3644754900,3644754842,3644754869,3644754863,3644754857,3644754878,3644754836,3644754837,3644754850,3644754868,3644754866,3644754849,3644754853,3644754891,3644754897,3644754829,3644754830,3644754854,3644754872,3644754903,3644754902,3644754873,3644754904,3644754905,3644754844,3644754856,3644754838,3644754833,3644754884,3644754832,3644754865,3644754843,3644754898,3644754864,3644754834,3644754888,3644754875,3644754879,3644754893,3644754906,3644754851,3644754907,3644754899,3644754883,3644754848,3644754861,3644754839,3644754894,3644754901,3644754840,3644754880,3644754881,3644754886,3644754846,3644751453,3644751484,3644751516,3644751456,3644751530,3644751468,3644751478,3644751474,3644751467,3644751513,3644751493,3644751500,3644751518,3644751486,3644751523,3644751515,3644751507,3644751489,3644751525,3644751520,3644751475,3644751470,3644751480,3644751528,3644751455,3644751505,3644751461,3644751524,3644751469,3644751471,3644751487,3644751514,3644751501,3644751454,3644751497,3644751458,3644751519,3644751517,3644751477,3644751473,3644751511,3644751476,3644751451,3644751533,3644751531,3644751498,3644751522,3644751532,3644751534,3644751466,3644751495,3644751452,3644751529,3644751488,3644751499,3644751527,3644751464,3644751521,3644751512,3644751526,3644751504,3644751492,3644751457,3644751509,3644751459,3644751502,3644751460,3644751508,3644751479,3644751483,3644751462,3644751506,3644751490,3644751485,3644751465,3644751503,3644751510,3644751463,3644751496,3644751482,3644751494,3644751472,3644751481,3644751491,3644742563,3644742565,3644742596,3644742558,3644742583,3644742540,3644742570,3644742572,3644742587,3644742551,3644742560,3644742548,3644742580,3644742594,3644742586,3644742617,3644742567,3644742602,3644742611,3644742614,3644742624,3644742555,3644742573,3644742564,3644742578,3644742599,3644742546,3644742589,3644742539,3644742604,3644742603,3644742579,3644742622,3644742543,3644742607,3644742605,3644742547,3644742619,3644742569,3644742609,3644742574,3644742588,3644742538,3644742623,3644742621,3644742591,3644742615,3644742616,3644742561,3644742626,3644742625,3644742577,3644742581,3644742542,3644742568,3644742550,3644742592,3644742552,3644742541,3644742608,3644742562,3644742606,3644742549,3644742593,3644742618,3644742576,3644742557,3644742612,3644742566,3644742595,3644742571,3644742584,3644742544,3644742559,3644742590,3644742610,3644742598,3644742545,3644742585,3644742554,3644742613,3644742620,3644742597,3644742601,3644742600,3644742582,3644742553,3644742556,3644742575) SELECT * FROM MTRPhoto.crop_sum_segments WHERE crop_hashtag_id in (3644757280,3644757315,3644757276,3644757316,3644757290,3644757310,3644757293,3644757303,3644757299,3644757304,3644757314,3644757330,3644757301,3644757321,3644757344,3644757306,3644757294,3644757308,3644757334,3644757312,3644757346,3644757348,3644757288,3644757295,3644757338,3644757325,3644757337,3644757281,3644757336,3644757319,3644757313,3644757298,3644757302,3644757278,3644757274,3644757291,3644757333,3644757332,3644757307,3644757282,3644757341,3644757340,3644757324,3644757285,3644757342,3644757279,3644757300,3644757339,3644757287,3644757283,3644757328,3644757309,3644757335,3644757286,3644757289,3644757277,3644757322,3644757284,3644757327,3644757296,3644757292,3644757343,3644757331,3644757305,3644757345,3644757320,3644757317,3644757323,3644757329,3644757347,3644757311,3644757349,3644757297,3644757326,3644757318,3644757275,3644754874,3644754877,3644754852,3644754845,3644754860,3644754871,3644754882,3644754896,3644754885,3644754892,3644754847,3644754870,3644754841,3644754890,3644754895,3644754831,3644754858,3644754889,3644754887,3644754859,3644754862,3644754867,3644754855,3644754835,3644754876,3644754900,3644754842,3644754869,3644754863,3644754857,3644754878,3644754836,3644754837,3644754850,3644754868,3644754866,3644754849,3644754853,3644754891,3644754897,3644754829,3644754830,3644754854,3644754872,3644754903,3644754902,3644754873,3644754904,3644754905,3644754844,3644754856,3644754838,3644754833,3644754884,3644754832,3644754865,3644754843,3644754898,3644754864,3644754834,3644754888,3644754875,3644754879,3644754893,3644754906,3644754851,3644754907,3644754899,3644754883,3644754848,3644754861,3644754839,3644754894,3644754901,3644754840,3644754880,3644754881,3644754886,3644754846,3644751453,3644751484,3644751516,3644751456,3644751530,3644751468,3644751478,3644751474,3644751467,3644751513,3644751493,3644751500,3644751518,3644751486,3644751523,3644751515,3644751507,3644751489,3644751525,3644751520,3644751475,3644751470,3644751480,3644751528,3644751455,3644751505,3644751461,3644751524,3644751469,3644751471,3644751487,3644751514,3644751501,3644751454,3644751497,3644751458,3644751519,3644751517,3644751477,3644751473,3644751511,3644751476,3644751451,3644751533,3644751531,3644751498,3644751522,3644751532,3644751534,3644751466,3644751495,3644751452,3644751529,3644751488,3644751499,3644751527,3644751464,3644751521,3644751512,3644751526,3644751504,3644751492,3644751457,3644751509,3644751459,3644751502,3644751460,3644751508,3644751479,3644751483,3644751462,3644751506,3644751490,3644751485,3644751465,3644751503,3644751510,3644751463,3644751496,3644751482,3644751494,3644751472,3644751481,3644751491,3644742563,3644742565,3644742596,3644742558,3644742583,3644742540,3644742570,3644742572,3644742587,3644742551,3644742560,3644742548,3644742580,3644742594,3644742586,3644742617,3644742567,3644742602,3644742611,3644742614,3644742624,3644742555,3644742573,3644742564,3644742578,3644742599,3644742546,3644742589,3644742539,3644742604,3644742603,3644742579,3644742622,3644742543,3644742607,3644742605,3644742547,3644742619,3644742569,3644742609,3644742574,3644742588,3644742538,3644742623,3644742621,3644742591,3644742615,3644742616,3644742561,3644742626,3644742625,3644742577,3644742581,3644742542,3644742568,3644742550,3644742592,3644742552,3644742541,3644742608,3644742562,3644742606,3644742549,3644742593,3644742618,3644742576,3644742557,3644742612,3644742566,3644742595,3644742571,3644742584,3644742544,3644742559,3644742590,3644742610,3644742598,3644742545,3644742585,3644742554,3644742613,3644742620,3644742597,3644742601,3644742600,3644742582,3644742553,3644742556,3644742575) begin to find the sub_photo_id : begin to find the sub_photo_id : begin to find the sub_photo_id : begin to find the sub_photo_id : insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id) select 20095208, mtr_photo_id, 0 from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20071239; update MTRUser.mtr_portfolio_photos as a inner join MTRUser.mtr_portfolio_photos as b on a.mtr_photo_id = b.mtr_photo_id set a.hide_status = b.hide_status where a.mtr_portfolio_id =20095208 and b.mtr_portfolio_id = 20071239; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id) select 11609181, mtr_photo_id, 0 from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20071239; update MTRUser.mtr_portfolio_photos as a inner join MTRUser.mtr_portfolio_photos as b on a.mtr_photo_id = b.mtr_photo_id set a.hide_status = b.hide_status where a.mtr_portfolio_id =11609181 and b.mtr_portfolio_id = 20071239; TODO : # On doit donc construire les chi a partir des informations dans les photos filles query : SELECT ph.photo_id FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=20071240 AND mpp.hide_status=0 ORDER BY ph.size desc SELECT distinct chi.photo_id FROM MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids csp WHERE chi.id=csp.crop_hashtag_id AND chi.type=4855 AND csp.sub_photo_id IN (1332953159,1332953135,1332953138,1332953139,1332953143,1332953144,1332953145,1332953146,1332953147,1332953148,1332953149,1332953150,1332953152,1332953157,1332953158,1332953134,1332953160,1332953161,1332953162,1332953163,1332953164,1332953165,1332953166,1332953167,1332953169,1332953170,1332953171,1332953172,1332953173,1332953114,1332952469,1332952480,1332952481,1332952485,1332952492,1332952805,1332953102,1332953105,1332953106,1332953109,1332953110,1332953111,1332953112,1332953113,1332952460,1332953115,1332953116,1332953117,1332953118,1332953119,1332953122,1332953123,1332953125,1332953128,1332953129,1332953130,1332953131,1332953132) batch 1 select photo_id, hashtag_id, `type`, x0, x1, y0, y1, score, id from MTRPhoto.crop_hashtag_ids where photo_id in ( 1332932544,1332932498,1332932495,1332932560,1332932503,1332932490,1332932511,1332932508) and `type` in (4855) Loaded 591 chid ids of type : 4855 SELECT crop_hashtag_id, points FROM MTRPhoto.crop_polygon_points WHERE crop_hashtag_id in (3644761651,3644761648,3644761647,3644761655,3644761653,3644761654,3644761656,3644761649,3644761652,3644761650,3644761417,3644761403,3644761460,3644761429,3644761422,3644761402,3644761420,3644761408,3644761466,3644761473,3644761467,3644761431,3644761430,3644761453,3644761445,3644761472,3644761407,3644761434,3644761442,3644761474,3644761465,3644761423,3644761435,3644761475,3644761421,3644761437,3644761411,3644761427,3644761476,3644761470,3644761415,3644761448,3644761433,3644761436,3644761447,3644761464,3644761459,3644761404,3644761449,3644761456,3644761462,3644761450,3644761454,3644761443,3644761439,3644761441,3644761410,3644761414,3644761440,3644761451,3644761455,3644761446,3644761471,3644761413,3644761406,3644761424,3644761401,3644761428,3644761409,3644761412,3644761405,3644761457,3644761469,3644761461,3644761418,3644761463,3644761477,3644761426,3644761458,3644761425,3644761416,3644761468,3644761419,3644761452,3644761444,3644761432,3644761438,3644757461,3644757470,3644757447,3644757433,3644757496,3644757434,3644757475,3644757472,3644757498,3644757468,3644757456,3644757454,3644757448,3644757463,3644757476,3644757478,3644757487,3644757517,3644757443,3644757477,3644757503,3644757465,3644757457,3644757511,3644757446,3644757442,3644757471,3644757440,3644757473,3644757455,3644757458,3644757502,3644757514,3644757492,3644757495,3644757512,3644757501,3644757509,3644757508,3644757449,3644757467,3644757516,3644757483,3644757506,3644757491,3644757450,3644757479,3644757486,3644757482,3644757445,3644757431,3644757515,3644757460,3644757494,3644757519,3644757525,3644757526,3644757437,3644757452,3644757524,3644757523,3644757522,3644757432,3644757453,3644757500,3644757438,3644757459,3644757504,3644757481,3644757435,3644757469,3644757462,3644757518,3644757444,3644757464,3644757488,3644757485,3644757520,3644757493,3644757507,3644757490,3644757441,3644757510,3644757439,3644757474,3644757436,3644757497,3644757480,3644757489,3644757521,3644757513,3644757451,3644757484,3644757505,3644757499,3644757466,3644757280,3644757315,3644757276,3644757316,3644757290,3644757310,3644757293,3644757303,3644757299,3644757304,3644757314,3644757330,3644757301,3644757321,3644757344,3644757306,3644757294,3644757308,3644757334,3644757312,3644757346,3644757348,3644757288,3644757295,3644757338,3644757325,3644757337,3644757281,3644757336,3644757319,3644757313,3644757298,3644757302,3644757278,3644757274,3644757291,3644757333,3644757332,3644757307,3644757282,3644757341,3644757340,3644757324,3644757285,3644757342,3644757279,3644757300,3644757339,3644757287,3644757283,3644757328,3644757309,3644757335,3644757286,3644757289,3644757277,3644757322,3644757284,3644757327,3644757296,3644757292,3644757343,3644757331,3644757305,3644757345,3644757320,3644757317,3644757323,3644757329,3644757347,3644757311,3644757349,3644757297,3644757326,3644757318,3644757275,3644754874,3644754877,3644754852,3644754845,3644754860,3644754871,3644754882,3644754896,3644754885,3644754892,3644754847,3644754870,3644754841,3644754890,3644754895,3644754831,3644754858,3644754889,3644754887,3644754859,3644754862,3644754867,3644754855,3644754835,3644754876,3644754900,3644754842,3644754869,3644754863,3644754857,3644754878,3644754836,3644754837,3644754850,3644754868,3644754866,3644754849,3644754853,3644754891,3644754897,3644754829,3644754830,3644754854,3644754872,3644754903,3644754902,3644754873,3644754904,3644754905,3644754844,3644754856,3644754838,3644754833,3644754884,3644754832,3644754865,3644754843,3644754898,3644754864,3644754834,3644754888,3644754875,3644754879,3644754893,3644754906,3644754851,3644754907,3644754899,3644754883,3644754848,3644754861,3644754839,3644754894,3644754901,3644754840,3644754880,3644754881,3644754886,3644754846,3644751453,3644751484,3644751516,3644751456,3644751530,3644751468,3644751478,3644751474,3644751467,3644751513,3644751493,3644751500,3644751518,3644751486,3644751523,3644751515,3644751507,3644751489,3644751525,3644751520,3644751475,3644751470,3644751480,3644751528,3644751455,3644751505,3644751461,3644751524,3644751469,3644751471,3644751487,3644751514,3644751501,3644751454,3644751497,3644751458,3644751519,3644751517,3644751477,3644751473,3644751511,3644751476,3644751451,3644751533,3644751531,3644751498,3644751522,3644751532,3644751534,3644751466,3644751495,3644751452,3644751529,3644751488,3644751499,3644751527,3644751464,3644751521,3644751512,3644751526,3644751504,3644751492,3644751457,3644751509,3644751459,3644751502,3644751460,3644751508,3644751479,3644751483,3644751462,3644751506,3644751490,3644751485,3644751465,3644751503,3644751510,3644751463,3644751496,3644751482,3644751494,3644751472,3644751481,3644751491,3644742563,3644742565,3644742596,3644742558,3644742583,3644742540,3644742570,3644742572,3644742587,3644742551,3644742560,3644742548,3644742580,3644742594,3644742586,3644742617,3644742567,3644742602,3644742611,3644742614,3644742624,3644742555,3644742573,3644742564,3644742578,3644742599,3644742546,3644742589,3644742539,3644742604,3644742603,3644742579,3644742622,3644742543,3644742607,3644742605,3644742547,3644742619,3644742569,3644742609,3644742574,3644742588,3644742538,3644742623,3644742621,3644742591,3644742615,3644742616,3644742561,3644742626,3644742625,3644742577,3644742581,3644742542,3644742568,3644742550,3644742592,3644742552,3644742541,3644742608,3644742562,3644742606,3644742549,3644742593,3644742618,3644742576,3644742557,3644742612,3644742566,3644742595,3644742571,3644742584,3644742544,3644742559,3644742590,3644742610,3644742598,3644742545,3644742585,3644742554,3644742613,3644742620,3644742597,3644742601,3644742600,3644742582,3644742553,3644742556,3644742575,3644741820,3644741806,3644741780,3644741798,3644741808,3644741824,3644741789,3644741771,3644741765,3644741828,3644741804,3644741821,3644741758,3644741825,3644741770,3644741776,3644741817,3644741813,3644741782,3644741818,3644741822,3644741787,3644741800,3644741796,3644741775,3644741797,3644741805,3644741781,3644741795,3644741790,3644741786,3644741791,3644741774,3644741755,3644741783,3644741752,3644741812,3644741792,3644741763,3644741811,3644741802,3644741785,3644741788,3644741756,3644741769,3644741794,3644741757,3644741807,3644741762,3644741753,3644741810,3644741761,3644741767,3644741751,3644741799,3644741830,3644741816,3644741779,3644741829,3644741760,3644741759,3644741764,3644741777,3644741768,3644741819,3644741772,3644741754,3644741766,3644741826,3644741823,3644741814,3644741778,3644741809,3644741801,3644741815,3644741827,3644741803,3644741773,3644741784,3644741793) SELECT * FROM MTRPhoto.crop_segments WHERE crop_hashtag_id in (3644761651,3644761648,3644761647,3644761655,3644761653,3644761654,3644761656,3644761649,3644761652,3644761650,3644761417,3644761403,3644761460,3644761429,3644761422,3644761402,3644761420,3644761408,3644761466,3644761473,3644761467,3644761431,3644761430,3644761453,3644761445,3644761472,3644761407,3644761434,3644761442,3644761474,3644761465,3644761423,3644761435,3644761475,3644761421,3644761437,3644761411,3644761427,3644761476,3644761470,3644761415,3644761448,3644761433,3644761436,3644761447,3644761464,3644761459,3644761404,3644761449,3644761456,3644761462,3644761450,3644761454,3644761443,3644761439,3644761441,3644761410,3644761414,3644761440,3644761451,3644761455,3644761446,3644761471,3644761413,3644761406,3644761424,3644761401,3644761428,3644761409,3644761412,3644761405,3644761457,3644761469,3644761461,3644761418,3644761463,3644761477,3644761426,3644761458,3644761425,3644761416,3644761468,3644761419,3644761452,3644761444,3644761432,3644761438,3644757461,3644757470,3644757447,3644757433,3644757496,3644757434,3644757475,3644757472,3644757498,3644757468,3644757456,3644757454,3644757448,3644757463,3644757476,3644757478,3644757487,3644757517,3644757443,3644757477,3644757503,3644757465,3644757457,3644757511,3644757446,3644757442,3644757471,3644757440,3644757473,3644757455,3644757458,3644757502,3644757514,3644757492,3644757495,3644757512,3644757501,3644757509,3644757508,3644757449,3644757467,3644757516,3644757483,3644757506,3644757491,3644757450,3644757479,3644757486,3644757482,3644757445,3644757431,3644757515,3644757460,3644757494,3644757519,3644757525,3644757526,3644757437,3644757452,3644757524,3644757523,3644757522,3644757432,3644757453,3644757500,3644757438,3644757459,3644757504,3644757481,3644757435,3644757469,3644757462,3644757518,3644757444,3644757464,3644757488,3644757485,3644757520,3644757493,3644757507,3644757490,3644757441,3644757510,3644757439,3644757474,3644757436,3644757497,3644757480,3644757489,3644757521,3644757513,3644757451,3644757484,3644757505,3644757499,3644757466,3644757280,3644757315,3644757276,3644757316,3644757290,3644757310,3644757293,3644757303,3644757299,3644757304,3644757314,3644757330,3644757301,3644757321,3644757344,3644757306,3644757294,3644757308,3644757334,3644757312,3644757346,3644757348,3644757288,3644757295,3644757338,3644757325,3644757337,3644757281,3644757336,3644757319,3644757313,3644757298,3644757302,3644757278,3644757274,3644757291,3644757333,3644757332,3644757307,3644757282,3644757341,3644757340,3644757324,3644757285,3644757342,3644757279,3644757300,3644757339,3644757287,3644757283,3644757328,3644757309,3644757335,3644757286,3644757289,3644757277,3644757322,3644757284,3644757327,3644757296,3644757292,3644757343,3644757331,3644757305,3644757345,3644757320,3644757317,3644757323,3644757329,3644757347,3644757311,3644757349,3644757297,3644757326,3644757318,3644757275,3644754874,3644754877,3644754852,3644754845,3644754860,3644754871,3644754882,3644754896,3644754885,3644754892,3644754847,3644754870,3644754841,3644754890,3644754895,3644754831,3644754858,3644754889,3644754887,3644754859,3644754862,3644754867,3644754855,3644754835,3644754876,3644754900,3644754842,3644754869,3644754863,3644754857,3644754878,3644754836,3644754837,3644754850,3644754868,3644754866,3644754849,3644754853,3644754891,3644754897,3644754829,3644754830,3644754854,3644754872,3644754903,3644754902,3644754873,3644754904,3644754905,3644754844,3644754856,3644754838,3644754833,3644754884,3644754832,3644754865,3644754843,3644754898,3644754864,3644754834,3644754888,3644754875,3644754879,3644754893,3644754906,3644754851,3644754907,3644754899,3644754883,3644754848,3644754861,3644754839,3644754894,3644754901,3644754840,3644754880,3644754881,3644754886,3644754846,3644751453,3644751484,3644751516,3644751456,3644751530,3644751468,3644751478,3644751474,3644751467,3644751513,3644751493,3644751500,3644751518,3644751486,3644751523,3644751515,3644751507,3644751489,3644751525,3644751520,3644751475,3644751470,3644751480,3644751528,3644751455,3644751505,3644751461,3644751524,3644751469,3644751471,3644751487,3644751514,3644751501,3644751454,3644751497,3644751458,3644751519,3644751517,3644751477,3644751473,3644751511,3644751476,3644751451,3644751533,3644751531,3644751498,3644751522,3644751532,3644751534,3644751466,3644751495,3644751452,3644751529,3644751488,3644751499,3644751527,3644751464,3644751521,3644751512,3644751526,3644751504,3644751492,3644751457,3644751509,3644751459,3644751502,3644751460,3644751508,3644751479,3644751483,3644751462,3644751506,3644751490,3644751485,3644751465,3644751503,3644751510,3644751463,3644751496,3644751482,3644751494,3644751472,3644751481,3644751491,3644742563,3644742565,3644742596,3644742558,3644742583,3644742540,3644742570,3644742572,3644742587,3644742551,3644742560,3644742548,3644742580,3644742594,3644742586,3644742617,3644742567,3644742602,3644742611,3644742614,3644742624,3644742555,3644742573,3644742564,3644742578,3644742599,3644742546,3644742589,3644742539,3644742604,3644742603,3644742579,3644742622,3644742543,3644742607,3644742605,3644742547,3644742619,3644742569,3644742609,3644742574,3644742588,3644742538,3644742623,3644742621,3644742591,3644742615,3644742616,3644742561,3644742626,3644742625,3644742577,3644742581,3644742542,3644742568,3644742550,3644742592,3644742552,3644742541,3644742608,3644742562,3644742606,3644742549,3644742593,3644742618,3644742576,3644742557,3644742612,3644742566,3644742595,3644742571,3644742584,3644742544,3644742559,3644742590,3644742610,3644742598,3644742545,3644742585,3644742554,3644742613,3644742620,3644742597,3644742601,3644742600,3644742582,3644742553,3644742556,3644742575,3644741820,3644741806,3644741780,3644741798,3644741808,3644741824,3644741789,3644741771,3644741765,3644741828,3644741804,3644741821,3644741758,3644741825,3644741770,3644741776,3644741817,3644741813,3644741782,3644741818,3644741822,3644741787,3644741800,3644741796,3644741775,3644741797,3644741805,3644741781,3644741795,3644741790,3644741786,3644741791,3644741774,3644741755,3644741783,3644741752,3644741812,3644741792,3644741763,3644741811,3644741802,3644741785,3644741788,3644741756,3644741769,3644741794,3644741757,3644741807,3644741762,3644741753,3644741810,3644741761,3644741767,3644741751,3644741799,3644741830,3644741816,3644741779,3644741829,3644741760,3644741759,3644741764,3644741777,3644741768,3644741819,3644741772,3644741754,3644741766,3644741826,3644741823,3644741814,3644741778,3644741809,3644741801,3644741815,3644741827,3644741803,3644741773,3644741784,3644741793) SELECT * FROM MTRPhoto.crop_sum_segments WHERE crop_hashtag_id in (3644761651,3644761648,3644761647,3644761655,3644761653,3644761654,3644761656,3644761649,3644761652,3644761650,3644761417,3644761403,3644761460,3644761429,3644761422,3644761402,3644761420,3644761408,3644761466,3644761473,3644761467,3644761431,3644761430,3644761453,3644761445,3644761472,3644761407,3644761434,3644761442,3644761474,3644761465,3644761423,3644761435,3644761475,3644761421,3644761437,3644761411,3644761427,3644761476,3644761470,3644761415,3644761448,3644761433,3644761436,3644761447,3644761464,3644761459,3644761404,3644761449,3644761456,3644761462,3644761450,3644761454,3644761443,3644761439,3644761441,3644761410,3644761414,3644761440,3644761451,3644761455,3644761446,3644761471,3644761413,3644761406,3644761424,3644761401,3644761428,3644761409,3644761412,3644761405,3644761457,3644761469,3644761461,3644761418,3644761463,3644761477,3644761426,3644761458,3644761425,3644761416,3644761468,3644761419,3644761452,3644761444,3644761432,3644761438,3644757461,3644757470,3644757447,3644757433,3644757496,3644757434,3644757475,3644757472,3644757498,3644757468,3644757456,3644757454,3644757448,3644757463,3644757476,3644757478,3644757487,3644757517,3644757443,3644757477,3644757503,3644757465,3644757457,3644757511,3644757446,3644757442,3644757471,3644757440,3644757473,3644757455,3644757458,3644757502,3644757514,3644757492,3644757495,3644757512,3644757501,3644757509,3644757508,3644757449,3644757467,3644757516,3644757483,3644757506,3644757491,3644757450,3644757479,3644757486,3644757482,3644757445,3644757431,3644757515,3644757460,3644757494,3644757519,3644757525,3644757526,3644757437,3644757452,3644757524,3644757523,3644757522,3644757432,3644757453,3644757500,3644757438,3644757459,3644757504,3644757481,3644757435,3644757469,3644757462,3644757518,3644757444,3644757464,3644757488,3644757485,3644757520,3644757493,3644757507,3644757490,3644757441,3644757510,3644757439,3644757474,3644757436,3644757497,3644757480,3644757489,3644757521,3644757513,3644757451,3644757484,3644757505,3644757499,3644757466,3644757280,3644757315,3644757276,3644757316,3644757290,3644757310,3644757293,3644757303,3644757299,3644757304,3644757314,3644757330,3644757301,3644757321,3644757344,3644757306,3644757294,3644757308,3644757334,3644757312,3644757346,3644757348,3644757288,3644757295,3644757338,3644757325,3644757337,3644757281,3644757336,3644757319,3644757313,3644757298,3644757302,3644757278,3644757274,3644757291,3644757333,3644757332,3644757307,3644757282,3644757341,3644757340,3644757324,3644757285,3644757342,3644757279,3644757300,3644757339,3644757287,3644757283,3644757328,3644757309,3644757335,3644757286,3644757289,3644757277,3644757322,3644757284,3644757327,3644757296,3644757292,3644757343,3644757331,3644757305,3644757345,3644757320,3644757317,3644757323,3644757329,3644757347,3644757311,3644757349,3644757297,3644757326,3644757318,3644757275,3644754874,3644754877,3644754852,3644754845,3644754860,3644754871,3644754882,3644754896,3644754885,3644754892,3644754847,3644754870,3644754841,3644754890,3644754895,3644754831,3644754858,3644754889,3644754887,3644754859,3644754862,3644754867,3644754855,3644754835,3644754876,3644754900,3644754842,3644754869,3644754863,3644754857,3644754878,3644754836,3644754837,3644754850,3644754868,3644754866,3644754849,3644754853,3644754891,3644754897,3644754829,3644754830,3644754854,3644754872,3644754903,3644754902,3644754873,3644754904,3644754905,3644754844,3644754856,3644754838,3644754833,3644754884,3644754832,3644754865,3644754843,3644754898,3644754864,3644754834,3644754888,3644754875,3644754879,3644754893,3644754906,3644754851,3644754907,3644754899,3644754883,3644754848,3644754861,3644754839,3644754894,3644754901,3644754840,3644754880,3644754881,3644754886,3644754846,3644751453,3644751484,3644751516,3644751456,3644751530,3644751468,3644751478,3644751474,3644751467,3644751513,3644751493,3644751500,3644751518,3644751486,3644751523,3644751515,3644751507,3644751489,3644751525,3644751520,3644751475,3644751470,3644751480,3644751528,3644751455,3644751505,3644751461,3644751524,3644751469,3644751471,3644751487,3644751514,3644751501,3644751454,3644751497,3644751458,3644751519,3644751517,3644751477,3644751473,3644751511,3644751476,3644751451,3644751533,3644751531,3644751498,3644751522,3644751532,3644751534,3644751466,3644751495,3644751452,3644751529,3644751488,3644751499,3644751527,3644751464,3644751521,3644751512,3644751526,3644751504,3644751492,3644751457,3644751509,3644751459,3644751502,3644751460,3644751508,3644751479,3644751483,3644751462,3644751506,3644751490,3644751485,3644751465,3644751503,3644751510,3644751463,3644751496,3644751482,3644751494,3644751472,3644751481,3644751491,3644742563,3644742565,3644742596,3644742558,3644742583,3644742540,3644742570,3644742572,3644742587,3644742551,3644742560,3644742548,3644742580,3644742594,3644742586,3644742617,3644742567,3644742602,3644742611,3644742614,3644742624,3644742555,3644742573,3644742564,3644742578,3644742599,3644742546,3644742589,3644742539,3644742604,3644742603,3644742579,3644742622,3644742543,3644742607,3644742605,3644742547,3644742619,3644742569,3644742609,3644742574,3644742588,3644742538,3644742623,3644742621,3644742591,3644742615,3644742616,3644742561,3644742626,3644742625,3644742577,3644742581,3644742542,3644742568,3644742550,3644742592,3644742552,3644742541,3644742608,3644742562,3644742606,3644742549,3644742593,3644742618,3644742576,3644742557,3644742612,3644742566,3644742595,3644742571,3644742584,3644742544,3644742559,3644742590,3644742610,3644742598,3644742545,3644742585,3644742554,3644742613,3644742620,3644742597,3644742601,3644742600,3644742582,3644742553,3644742556,3644742575,3644741820,3644741806,3644741780,3644741798,3644741808,3644741824,3644741789,3644741771,3644741765,3644741828,3644741804,3644741821,3644741758,3644741825,3644741770,3644741776,3644741817,3644741813,3644741782,3644741818,3644741822,3644741787,3644741800,3644741796,3644741775,3644741797,3644741805,3644741781,3644741795,3644741790,3644741786,3644741791,3644741774,3644741755,3644741783,3644741752,3644741812,3644741792,3644741763,3644741811,3644741802,3644741785,3644741788,3644741756,3644741769,3644741794,3644741757,3644741807,3644741762,3644741753,3644741810,3644741761,3644741767,3644741751,3644741799,3644741830,3644741816,3644741779,3644741829,3644741760,3644741759,3644741764,3644741777,3644741768,3644741819,3644741772,3644741754,3644741766,3644741826,3644741823,3644741814,3644741778,3644741809,3644741801,3644741815,3644741827,3644741803,3644741773,3644741784,3644741793) begin to find the sub_photo_id : begin to find the sub_photo_id : begin to find the sub_photo_id : begin to find the sub_photo_id : begin to find the sub_photo_id : begin to find the sub_photo_id : begin to find the sub_photo_id : begin to find the sub_photo_id : insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id) select 20095209, mtr_photo_id, 0 from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20071240; update MTRUser.mtr_portfolio_photos as a inner join MTRUser.mtr_portfolio_photos as b on a.mtr_photo_id = b.mtr_photo_id set a.hide_status = b.hide_status where a.mtr_portfolio_id =20095209 and b.mtr_portfolio_id = 20071240; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id) select 11609182, mtr_photo_id, 0 from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20071240; update MTRUser.mtr_portfolio_photos as a inner join MTRUser.mtr_portfolio_photos as b on a.mtr_photo_id = b.mtr_photo_id set a.hide_status = b.hide_status where a.mtr_portfolio_id =11609182 and b.mtr_portfolio_id = 20071240; TODO : # On doit donc construire les chi a partir des informations dans les photos filles query : SELECT ph.photo_id FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=20071242 AND mpp.hide_status=0 ORDER BY ph.size desc SELECT distinct chi.photo_id FROM MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids csp WHERE chi.id=csp.crop_hashtag_id AND chi.type=4855 AND csp.sub_photo_id IN (1332952342,1332952839,1332952838,1332952784,1332952760,1332952752,1332952459,1332952368,1332952352,1332952350,1332952348,1332952343,1332950613,1332952211,1332952190,1332952177,1332952169,1332951881,1332951830,1332951794,1332950644,1332950634,1332950619) batch 1 select photo_id, hashtag_id, `type`, x0, x1, y0, y1, score, id from MTRPhoto.crop_hashtag_ids where photo_id in ( 1332932544,1332932511,1332932503,1332932498,1332932560,1332932495,1332932508) and `type` in (4855) Loaded 581 chid ids of type : 4855 SELECT crop_hashtag_id, points FROM MTRPhoto.crop_polygon_points WHERE crop_hashtag_id in (3644761417,3644761403,3644761460,3644761429,3644761422,3644761402,3644761420,3644761408,3644761466,3644761473,3644761467,3644761431,3644761430,3644761453,3644761445,3644761472,3644761407,3644761434,3644761442,3644761474,3644761465,3644761423,3644761435,3644761475,3644761421,3644761437,3644761411,3644761427,3644761476,3644761470,3644761415,3644761448,3644761433,3644761436,3644761447,3644761464,3644761459,3644761404,3644761449,3644761456,3644761462,3644761450,3644761454,3644761443,3644761439,3644761441,3644761410,3644761414,3644761440,3644761451,3644761455,3644761446,3644761471,3644761413,3644761406,3644761424,3644761401,3644761428,3644761409,3644761412,3644761405,3644761457,3644761469,3644761461,3644761418,3644761463,3644761477,3644761426,3644761458,3644761425,3644761416,3644761468,3644761419,3644761452,3644761444,3644761432,3644761438,3644757461,3644757470,3644757447,3644757433,3644757496,3644757434,3644757475,3644757472,3644757498,3644757468,3644757456,3644757454,3644757448,3644757463,3644757476,3644757478,3644757487,3644757517,3644757443,3644757477,3644757503,3644757465,3644757457,3644757511,3644757446,3644757442,3644757471,3644757440,3644757473,3644757455,3644757458,3644757502,3644757514,3644757492,3644757495,3644757512,3644757501,3644757509,3644757508,3644757449,3644757467,3644757516,3644757483,3644757506,3644757491,3644757450,3644757479,3644757486,3644757482,3644757445,3644757431,3644757515,3644757460,3644757494,3644757519,3644757525,3644757526,3644757437,3644757452,3644757524,3644757523,3644757522,3644757432,3644757453,3644757500,3644757438,3644757459,3644757504,3644757481,3644757435,3644757469,3644757462,3644757518,3644757444,3644757464,3644757488,3644757485,3644757520,3644757493,3644757507,3644757490,3644757441,3644757510,3644757439,3644757474,3644757436,3644757497,3644757480,3644757489,3644757521,3644757513,3644757451,3644757484,3644757505,3644757499,3644757466,3644757280,3644757315,3644757276,3644757316,3644757290,3644757310,3644757293,3644757303,3644757299,3644757304,3644757314,3644757330,3644757301,3644757321,3644757344,3644757306,3644757294,3644757308,3644757334,3644757312,3644757346,3644757348,3644757288,3644757295,3644757338,3644757325,3644757337,3644757281,3644757336,3644757319,3644757313,3644757298,3644757302,3644757278,3644757274,3644757291,3644757333,3644757332,3644757307,3644757282,3644757341,3644757340,3644757324,3644757285,3644757342,3644757279,3644757300,3644757339,3644757287,3644757283,3644757328,3644757309,3644757335,3644757286,3644757289,3644757277,3644757322,3644757284,3644757327,3644757296,3644757292,3644757343,3644757331,3644757305,3644757345,3644757320,3644757317,3644757323,3644757329,3644757347,3644757311,3644757349,3644757297,3644757326,3644757318,3644757275,3644754874,3644754877,3644754852,3644754845,3644754860,3644754871,3644754882,3644754896,3644754885,3644754892,3644754847,3644754870,3644754841,3644754890,3644754895,3644754831,3644754858,3644754889,3644754887,3644754859,3644754862,3644754867,3644754855,3644754835,3644754876,3644754900,3644754842,3644754869,3644754863,3644754857,3644754878,3644754836,3644754837,3644754850,3644754868,3644754866,3644754849,3644754853,3644754891,3644754897,3644754829,3644754830,3644754854,3644754872,3644754903,3644754902,3644754873,3644754904,3644754905,3644754844,3644754856,3644754838,3644754833,3644754884,3644754832,3644754865,3644754843,3644754898,3644754864,3644754834,3644754888,3644754875,3644754879,3644754893,3644754906,3644754851,3644754907,3644754899,3644754883,3644754848,3644754861,3644754839,3644754894,3644754901,3644754840,3644754880,3644754881,3644754886,3644754846,3644751453,3644751484,3644751516,3644751456,3644751530,3644751468,3644751478,3644751474,3644751467,3644751513,3644751493,3644751500,3644751518,3644751486,3644751523,3644751515,3644751507,3644751489,3644751525,3644751520,3644751475,3644751470,3644751480,3644751528,3644751455,3644751505,3644751461,3644751524,3644751469,3644751471,3644751487,3644751514,3644751501,3644751454,3644751497,3644751458,3644751519,3644751517,3644751477,3644751473,3644751511,3644751476,3644751451,3644751533,3644751531,3644751498,3644751522,3644751532,3644751534,3644751466,3644751495,3644751452,3644751529,3644751488,3644751499,3644751527,3644751464,3644751521,3644751512,3644751526,3644751504,3644751492,3644751457,3644751509,3644751459,3644751502,3644751460,3644751508,3644751479,3644751483,3644751462,3644751506,3644751490,3644751485,3644751465,3644751503,3644751510,3644751463,3644751496,3644751482,3644751494,3644751472,3644751481,3644751491,3644742563,3644742565,3644742596,3644742558,3644742583,3644742540,3644742570,3644742572,3644742587,3644742551,3644742560,3644742548,3644742580,3644742594,3644742586,3644742617,3644742567,3644742602,3644742611,3644742614,3644742624,3644742555,3644742573,3644742564,3644742578,3644742599,3644742546,3644742589,3644742539,3644742604,3644742603,3644742579,3644742622,3644742543,3644742607,3644742605,3644742547,3644742619,3644742569,3644742609,3644742574,3644742588,3644742538,3644742623,3644742621,3644742591,3644742615,3644742616,3644742561,3644742626,3644742625,3644742577,3644742581,3644742542,3644742568,3644742550,3644742592,3644742552,3644742541,3644742608,3644742562,3644742606,3644742549,3644742593,3644742618,3644742576,3644742557,3644742612,3644742566,3644742595,3644742571,3644742584,3644742544,3644742559,3644742590,3644742610,3644742598,3644742545,3644742585,3644742554,3644742613,3644742620,3644742597,3644742601,3644742600,3644742582,3644742553,3644742556,3644742575,3644741820,3644741806,3644741780,3644741798,3644741808,3644741824,3644741789,3644741771,3644741765,3644741828,3644741804,3644741821,3644741758,3644741825,3644741770,3644741776,3644741817,3644741813,3644741782,3644741818,3644741822,3644741787,3644741800,3644741796,3644741775,3644741797,3644741805,3644741781,3644741795,3644741790,3644741786,3644741791,3644741774,3644741755,3644741783,3644741752,3644741812,3644741792,3644741763,3644741811,3644741802,3644741785,3644741788,3644741756,3644741769,3644741794,3644741757,3644741807,3644741762,3644741753,3644741810,3644741761,3644741767,3644741751,3644741799,3644741830,3644741816,3644741779,3644741829,3644741760,3644741759,3644741764,3644741777,3644741768,3644741819,3644741772,3644741754,3644741766,3644741826,3644741823,3644741814,3644741778,3644741809,3644741801,3644741815,3644741827,3644741803,3644741773,3644741784,3644741793) SELECT * FROM MTRPhoto.crop_segments WHERE crop_hashtag_id in (3644761417,3644761403,3644761460,3644761429,3644761422,3644761402,3644761420,3644761408,3644761466,3644761473,3644761467,3644761431,3644761430,3644761453,3644761445,3644761472,3644761407,3644761434,3644761442,3644761474,3644761465,3644761423,3644761435,3644761475,3644761421,3644761437,3644761411,3644761427,3644761476,3644761470,3644761415,3644761448,3644761433,3644761436,3644761447,3644761464,3644761459,3644761404,3644761449,3644761456,3644761462,3644761450,3644761454,3644761443,3644761439,3644761441,3644761410,3644761414,3644761440,3644761451,3644761455,3644761446,3644761471,3644761413,3644761406,3644761424,3644761401,3644761428,3644761409,3644761412,3644761405,3644761457,3644761469,3644761461,3644761418,3644761463,3644761477,3644761426,3644761458,3644761425,3644761416,3644761468,3644761419,3644761452,3644761444,3644761432,3644761438,3644757461,3644757470,3644757447,3644757433,3644757496,3644757434,3644757475,3644757472,3644757498,3644757468,3644757456,3644757454,3644757448,3644757463,3644757476,3644757478,3644757487,3644757517,3644757443,3644757477,3644757503,3644757465,3644757457,3644757511,3644757446,3644757442,3644757471,3644757440,3644757473,3644757455,3644757458,3644757502,3644757514,3644757492,3644757495,3644757512,3644757501,3644757509,3644757508,3644757449,3644757467,3644757516,3644757483,3644757506,3644757491,3644757450,3644757479,3644757486,3644757482,3644757445,3644757431,3644757515,3644757460,3644757494,3644757519,3644757525,3644757526,3644757437,3644757452,3644757524,3644757523,3644757522,3644757432,3644757453,3644757500,3644757438,3644757459,3644757504,3644757481,3644757435,3644757469,3644757462,3644757518,3644757444,3644757464,3644757488,3644757485,3644757520,3644757493,3644757507,3644757490,3644757441,3644757510,3644757439,3644757474,3644757436,3644757497,3644757480,3644757489,3644757521,3644757513,3644757451,3644757484,3644757505,3644757499,3644757466,3644757280,3644757315,3644757276,3644757316,3644757290,3644757310,3644757293,3644757303,3644757299,3644757304,3644757314,3644757330,3644757301,3644757321,3644757344,3644757306,3644757294,3644757308,3644757334,3644757312,3644757346,3644757348,3644757288,3644757295,3644757338,3644757325,3644757337,3644757281,3644757336,3644757319,3644757313,3644757298,3644757302,3644757278,3644757274,3644757291,3644757333,3644757332,3644757307,3644757282,3644757341,3644757340,3644757324,3644757285,3644757342,3644757279,3644757300,3644757339,3644757287,3644757283,3644757328,3644757309,3644757335,3644757286,3644757289,3644757277,3644757322,3644757284,3644757327,3644757296,3644757292,3644757343,3644757331,3644757305,3644757345,3644757320,3644757317,3644757323,3644757329,3644757347,3644757311,3644757349,3644757297,3644757326,3644757318,3644757275,3644754874,3644754877,3644754852,3644754845,3644754860,3644754871,3644754882,3644754896,3644754885,3644754892,3644754847,3644754870,3644754841,3644754890,3644754895,3644754831,3644754858,3644754889,3644754887,3644754859,3644754862,3644754867,3644754855,3644754835,3644754876,3644754900,3644754842,3644754869,3644754863,3644754857,3644754878,3644754836,3644754837,3644754850,3644754868,3644754866,3644754849,3644754853,3644754891,3644754897,3644754829,3644754830,3644754854,3644754872,3644754903,3644754902,3644754873,3644754904,3644754905,3644754844,3644754856,3644754838,3644754833,3644754884,3644754832,3644754865,3644754843,3644754898,3644754864,3644754834,3644754888,3644754875,3644754879,3644754893,3644754906,3644754851,3644754907,3644754899,3644754883,3644754848,3644754861,3644754839,3644754894,3644754901,3644754840,3644754880,3644754881,3644754886,3644754846,3644751453,3644751484,3644751516,3644751456,3644751530,3644751468,3644751478,3644751474,3644751467,3644751513,3644751493,3644751500,3644751518,3644751486,3644751523,3644751515,3644751507,3644751489,3644751525,3644751520,3644751475,3644751470,3644751480,3644751528,3644751455,3644751505,3644751461,3644751524,3644751469,3644751471,3644751487,3644751514,3644751501,3644751454,3644751497,3644751458,3644751519,3644751517,3644751477,3644751473,3644751511,3644751476,3644751451,3644751533,3644751531,3644751498,3644751522,3644751532,3644751534,3644751466,3644751495,3644751452,3644751529,3644751488,3644751499,3644751527,3644751464,3644751521,3644751512,3644751526,3644751504,3644751492,3644751457,3644751509,3644751459,3644751502,3644751460,3644751508,3644751479,3644751483,3644751462,3644751506,3644751490,3644751485,3644751465,3644751503,3644751510,3644751463,3644751496,3644751482,3644751494,3644751472,3644751481,3644751491,3644742563,3644742565,3644742596,3644742558,3644742583,3644742540,3644742570,3644742572,3644742587,3644742551,3644742560,3644742548,3644742580,3644742594,3644742586,3644742617,3644742567,3644742602,3644742611,3644742614,3644742624,3644742555,3644742573,3644742564,3644742578,3644742599,3644742546,3644742589,3644742539,3644742604,3644742603,3644742579,3644742622,3644742543,3644742607,3644742605,3644742547,3644742619,3644742569,3644742609,3644742574,3644742588,3644742538,3644742623,3644742621,3644742591,3644742615,3644742616,3644742561,3644742626,3644742625,3644742577,3644742581,3644742542,3644742568,3644742550,3644742592,3644742552,3644742541,3644742608,3644742562,3644742606,3644742549,3644742593,3644742618,3644742576,3644742557,3644742612,3644742566,3644742595,3644742571,3644742584,3644742544,3644742559,3644742590,3644742610,3644742598,3644742545,3644742585,3644742554,3644742613,3644742620,3644742597,3644742601,3644742600,3644742582,3644742553,3644742556,3644742575,3644741820,3644741806,3644741780,3644741798,3644741808,3644741824,3644741789,3644741771,3644741765,3644741828,3644741804,3644741821,3644741758,3644741825,3644741770,3644741776,3644741817,3644741813,3644741782,3644741818,3644741822,3644741787,3644741800,3644741796,3644741775,3644741797,3644741805,3644741781,3644741795,3644741790,3644741786,3644741791,3644741774,3644741755,3644741783,3644741752,3644741812,3644741792,3644741763,3644741811,3644741802,3644741785,3644741788,3644741756,3644741769,3644741794,3644741757,3644741807,3644741762,3644741753,3644741810,3644741761,3644741767,3644741751,3644741799,3644741830,3644741816,3644741779,3644741829,3644741760,3644741759,3644741764,3644741777,3644741768,3644741819,3644741772,3644741754,3644741766,3644741826,3644741823,3644741814,3644741778,3644741809,3644741801,3644741815,3644741827,3644741803,3644741773,3644741784,3644741793) SELECT * FROM MTRPhoto.crop_sum_segments WHERE crop_hashtag_id in (3644761417,3644761403,3644761460,3644761429,3644761422,3644761402,3644761420,3644761408,3644761466,3644761473,3644761467,3644761431,3644761430,3644761453,3644761445,3644761472,3644761407,3644761434,3644761442,3644761474,3644761465,3644761423,3644761435,3644761475,3644761421,3644761437,3644761411,3644761427,3644761476,3644761470,3644761415,3644761448,3644761433,3644761436,3644761447,3644761464,3644761459,3644761404,3644761449,3644761456,3644761462,3644761450,3644761454,3644761443,3644761439,3644761441,3644761410,3644761414,3644761440,3644761451,3644761455,3644761446,3644761471,3644761413,3644761406,3644761424,3644761401,3644761428,3644761409,3644761412,3644761405,3644761457,3644761469,3644761461,3644761418,3644761463,3644761477,3644761426,3644761458,3644761425,3644761416,3644761468,3644761419,3644761452,3644761444,3644761432,3644761438,3644757461,3644757470,3644757447,3644757433,3644757496,3644757434,3644757475,3644757472,3644757498,3644757468,3644757456,3644757454,3644757448,3644757463,3644757476,3644757478,3644757487,3644757517,3644757443,3644757477,3644757503,3644757465,3644757457,3644757511,3644757446,3644757442,3644757471,3644757440,3644757473,3644757455,3644757458,3644757502,3644757514,3644757492,3644757495,3644757512,3644757501,3644757509,3644757508,3644757449,3644757467,3644757516,3644757483,3644757506,3644757491,3644757450,3644757479,3644757486,3644757482,3644757445,3644757431,3644757515,3644757460,3644757494,3644757519,3644757525,3644757526,3644757437,3644757452,3644757524,3644757523,3644757522,3644757432,3644757453,3644757500,3644757438,3644757459,3644757504,3644757481,3644757435,3644757469,3644757462,3644757518,3644757444,3644757464,3644757488,3644757485,3644757520,3644757493,3644757507,3644757490,3644757441,3644757510,3644757439,3644757474,3644757436,3644757497,3644757480,3644757489,3644757521,3644757513,3644757451,3644757484,3644757505,3644757499,3644757466,3644757280,3644757315,3644757276,3644757316,3644757290,3644757310,3644757293,3644757303,3644757299,3644757304,3644757314,3644757330,3644757301,3644757321,3644757344,3644757306,3644757294,3644757308,3644757334,3644757312,3644757346,3644757348,3644757288,3644757295,3644757338,3644757325,3644757337,3644757281,3644757336,3644757319,3644757313,3644757298,3644757302,3644757278,3644757274,3644757291,3644757333,3644757332,3644757307,3644757282,3644757341,3644757340,3644757324,3644757285,3644757342,3644757279,3644757300,3644757339,3644757287,3644757283,3644757328,3644757309,3644757335,3644757286,3644757289,3644757277,3644757322,3644757284,3644757327,3644757296,3644757292,3644757343,3644757331,3644757305,3644757345,3644757320,3644757317,3644757323,3644757329,3644757347,3644757311,3644757349,3644757297,3644757326,3644757318,3644757275,3644754874,3644754877,3644754852,3644754845,3644754860,3644754871,3644754882,3644754896,3644754885,3644754892,3644754847,3644754870,3644754841,3644754890,3644754895,3644754831,3644754858,3644754889,3644754887,3644754859,3644754862,3644754867,3644754855,3644754835,3644754876,3644754900,3644754842,3644754869,3644754863,3644754857,3644754878,3644754836,3644754837,3644754850,3644754868,3644754866,3644754849,3644754853,3644754891,3644754897,3644754829,3644754830,3644754854,3644754872,3644754903,3644754902,3644754873,3644754904,3644754905,3644754844,3644754856,3644754838,3644754833,3644754884,3644754832,3644754865,3644754843,3644754898,3644754864,3644754834,3644754888,3644754875,3644754879,3644754893,3644754906,3644754851,3644754907,3644754899,3644754883,3644754848,3644754861,3644754839,3644754894,3644754901,3644754840,3644754880,3644754881,3644754886,3644754846,3644751453,3644751484,3644751516,3644751456,3644751530,3644751468,3644751478,3644751474,3644751467,3644751513,3644751493,3644751500,3644751518,3644751486,3644751523,3644751515,3644751507,3644751489,3644751525,3644751520,3644751475,3644751470,3644751480,3644751528,3644751455,3644751505,3644751461,3644751524,3644751469,3644751471,3644751487,3644751514,3644751501,3644751454,3644751497,3644751458,3644751519,3644751517,3644751477,3644751473,3644751511,3644751476,3644751451,3644751533,3644751531,3644751498,3644751522,3644751532,3644751534,3644751466,3644751495,3644751452,3644751529,3644751488,3644751499,3644751527,3644751464,3644751521,3644751512,3644751526,3644751504,3644751492,3644751457,3644751509,3644751459,3644751502,3644751460,3644751508,3644751479,3644751483,3644751462,3644751506,3644751490,3644751485,3644751465,3644751503,3644751510,3644751463,3644751496,3644751482,3644751494,3644751472,3644751481,3644751491,3644742563,3644742565,3644742596,3644742558,3644742583,3644742540,3644742570,3644742572,3644742587,3644742551,3644742560,3644742548,3644742580,3644742594,3644742586,3644742617,3644742567,3644742602,3644742611,3644742614,3644742624,3644742555,3644742573,3644742564,3644742578,3644742599,3644742546,3644742589,3644742539,3644742604,3644742603,3644742579,3644742622,3644742543,3644742607,3644742605,3644742547,3644742619,3644742569,3644742609,3644742574,3644742588,3644742538,3644742623,3644742621,3644742591,3644742615,3644742616,3644742561,3644742626,3644742625,3644742577,3644742581,3644742542,3644742568,3644742550,3644742592,3644742552,3644742541,3644742608,3644742562,3644742606,3644742549,3644742593,3644742618,3644742576,3644742557,3644742612,3644742566,3644742595,3644742571,3644742584,3644742544,3644742559,3644742590,3644742610,3644742598,3644742545,3644742585,3644742554,3644742613,3644742620,3644742597,3644742601,3644742600,3644742582,3644742553,3644742556,3644742575,3644741820,3644741806,3644741780,3644741798,3644741808,3644741824,3644741789,3644741771,3644741765,3644741828,3644741804,3644741821,3644741758,3644741825,3644741770,3644741776,3644741817,3644741813,3644741782,3644741818,3644741822,3644741787,3644741800,3644741796,3644741775,3644741797,3644741805,3644741781,3644741795,3644741790,3644741786,3644741791,3644741774,3644741755,3644741783,3644741752,3644741812,3644741792,3644741763,3644741811,3644741802,3644741785,3644741788,3644741756,3644741769,3644741794,3644741757,3644741807,3644741762,3644741753,3644741810,3644741761,3644741767,3644741751,3644741799,3644741830,3644741816,3644741779,3644741829,3644741760,3644741759,3644741764,3644741777,3644741768,3644741819,3644741772,3644741754,3644741766,3644741826,3644741823,3644741814,3644741778,3644741809,3644741801,3644741815,3644741827,3644741803,3644741773,3644741784,3644741793) begin to find the sub_photo_id : begin to find the sub_photo_id : begin to find the sub_photo_id : begin to find the sub_photo_id : begin to find the sub_photo_id : begin to find the sub_photo_id : begin to find the sub_photo_id : insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id) select 20095198, mtr_photo_id, 0 from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20071242; update MTRUser.mtr_portfolio_photos as a inner join MTRUser.mtr_portfolio_photos as b on a.mtr_photo_id = b.mtr_photo_id set a.hide_status = b.hide_status where a.mtr_portfolio_id =20095198 and b.mtr_portfolio_id = 20071242; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id) select 11609171, mtr_photo_id, 0 from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20071242; update MTRUser.mtr_portfolio_photos as a inner join MTRUser.mtr_portfolio_photos as b on a.mtr_photo_id = b.mtr_photo_id set a.hide_status = b.hide_status where a.mtr_portfolio_id =11609171 and b.mtr_portfolio_id = 20071242; TODO : # On doit donc construire les chi a partir des informations dans les photos filles query : SELECT ph.photo_id FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=20071243 AND mpp.hide_status=0 ORDER BY ph.size desc SELECT distinct chi.photo_id FROM MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids csp WHERE chi.id=csp.crop_hashtag_id AND chi.type=4855 AND csp.sub_photo_id IN (1332950600,1332950601,1332950603,1332950605,1332950608,1332950620,1332950622,1332950635,1332950636,1332950638,1332950639,1332950640,1332950641,1332950643,1332950650,1332951777,1332951779,1332951781,1332951783,1332951789,1332951790,1332951791,1332951795,1332951797,1332951798,1332951799,1332951810,1332951823,1332951831,1332951834,1332951858,1332951863,1332951867,1332951868,1332951871,1332951877,1332951883,1332952161,1332952165,1332952167,1332952173,1332952179,1332952184,1332952188,1332952195,1332952199,1332952203,1332952219,1332952221,1332952231,1332952233,1332952235,1332952247,1332952249,1332952255,1332952274,1332952345,1332952354,1332952359,1332952367,1332952375,1332952376,1332952456,1332952457,1332952458,1332952471,1332952482,1332952746,1332952748,1332952750,1332952751,1332952753,1332952755,1332952757,1332952761,1332952762,1332952763,1332952764,1332952765,1332952766,1332952767,1332952768,1332952769,1332952771,1332952772,1332952773,1332952774,1332952780,1332952781,1332952783,1332952786,1332952788,1332952789,1332952790,1332952791,1332952792,1332952794,1332952795,1332952796,1332952797,1332952798,1332952799,1332952801,1332952804,1332952836,1332953101,1332953103,1332953104,1332953107,1332953121,1332953127,1332953140,1332953141,1332953142,1332953153,1332953156,1332953168) batch 1 select photo_id, hashtag_id, `type`, x0, x1, y0, y1, score, id from MTRPhoto.crop_hashtag_ids where photo_id in ( 1332932560,1332932511,1332932508,1332932503,1332932498,1332932495,1332932544,1332932490) and `type` in (4855) Loaded 591 chid ids of type : 4855 SELECT crop_hashtag_id, points FROM MTRPhoto.crop_polygon_points WHERE crop_hashtag_id in (3644761651,3644761648,3644761647,3644761655,3644761653,3644761654,3644761656,3644761649,3644761652,3644761650,3644761417,3644761403,3644761460,3644761429,3644761422,3644761402,3644761420,3644761408,3644761466,3644761473,3644761467,3644761431,3644761430,3644761453,3644761445,3644761472,3644761407,3644761434,3644761442,3644761474,3644761465,3644761423,3644761435,3644761475,3644761421,3644761437,3644761411,3644761427,3644761476,3644761470,3644761415,3644761448,3644761433,3644761436,3644761447,3644761464,3644761459,3644761404,3644761449,3644761456,3644761462,3644761450,3644761454,3644761443,3644761439,3644761441,3644761410,3644761414,3644761440,3644761451,3644761455,3644761446,3644761471,3644761413,3644761406,3644761424,3644761401,3644761428,3644761409,3644761412,3644761405,3644761457,3644761469,3644761461,3644761418,3644761463,3644761477,3644761426,3644761458,3644761425,3644761416,3644761468,3644761419,3644761452,3644761444,3644761432,3644761438,3644757461,3644757470,3644757447,3644757433,3644757496,3644757434,3644757475,3644757472,3644757498,3644757468,3644757456,3644757454,3644757448,3644757463,3644757476,3644757478,3644757487,3644757517,3644757443,3644757477,3644757503,3644757465,3644757457,3644757511,3644757446,3644757442,3644757471,3644757440,3644757473,3644757455,3644757458,3644757502,3644757514,3644757492,3644757495,3644757512,3644757501,3644757509,3644757508,3644757449,3644757467,3644757516,3644757483,3644757506,3644757491,3644757450,3644757479,3644757486,3644757482,3644757445,3644757431,3644757515,3644757460,3644757494,3644757519,3644757525,3644757526,3644757437,3644757452,3644757524,3644757523,3644757522,3644757432,3644757453,3644757500,3644757438,3644757459,3644757504,3644757481,3644757435,3644757469,3644757462,3644757518,3644757444,3644757464,3644757488,3644757485,3644757520,3644757493,3644757507,3644757490,3644757441,3644757510,3644757439,3644757474,3644757436,3644757497,3644757480,3644757489,3644757521,3644757513,3644757451,3644757484,3644757505,3644757499,3644757466,3644757280,3644757315,3644757276,3644757316,3644757290,3644757310,3644757293,3644757303,3644757299,3644757304,3644757314,3644757330,3644757301,3644757321,3644757344,3644757306,3644757294,3644757308,3644757334,3644757312,3644757346,3644757348,3644757288,3644757295,3644757338,3644757325,3644757337,3644757281,3644757336,3644757319,3644757313,3644757298,3644757302,3644757278,3644757274,3644757291,3644757333,3644757332,3644757307,3644757282,3644757341,3644757340,3644757324,3644757285,3644757342,3644757279,3644757300,3644757339,3644757287,3644757283,3644757328,3644757309,3644757335,3644757286,3644757289,3644757277,3644757322,3644757284,3644757327,3644757296,3644757292,3644757343,3644757331,3644757305,3644757345,3644757320,3644757317,3644757323,3644757329,3644757347,3644757311,3644757349,3644757297,3644757326,3644757318,3644757275,3644754874,3644754877,3644754852,3644754845,3644754860,3644754871,3644754882,3644754896,3644754885,3644754892,3644754847,3644754870,3644754841,3644754890,3644754895,3644754831,3644754858,3644754889,3644754887,3644754859,3644754862,3644754867,3644754855,3644754835,3644754876,3644754900,3644754842,3644754869,3644754863,3644754857,3644754878,3644754836,3644754837,3644754850,3644754868,3644754866,3644754849,3644754853,3644754891,3644754897,3644754829,3644754830,3644754854,3644754872,3644754903,3644754902,3644754873,3644754904,3644754905,3644754844,3644754856,3644754838,3644754833,3644754884,3644754832,3644754865,3644754843,3644754898,3644754864,3644754834,3644754888,3644754875,3644754879,3644754893,3644754906,3644754851,3644754907,3644754899,3644754883,3644754848,3644754861,3644754839,3644754894,3644754901,3644754840,3644754880,3644754881,3644754886,3644754846,3644751453,3644751484,3644751516,3644751456,3644751530,3644751468,3644751478,3644751474,3644751467,3644751513,3644751493,3644751500,3644751518,3644751486,3644751523,3644751515,3644751507,3644751489,3644751525,3644751520,3644751475,3644751470,3644751480,3644751528,3644751455,3644751505,3644751461,3644751524,3644751469,3644751471,3644751487,3644751514,3644751501,3644751454,3644751497,3644751458,3644751519,3644751517,3644751477,3644751473,3644751511,3644751476,3644751451,3644751533,3644751531,3644751498,3644751522,3644751532,3644751534,3644751466,3644751495,3644751452,3644751529,3644751488,3644751499,3644751527,3644751464,3644751521,3644751512,3644751526,3644751504,3644751492,3644751457,3644751509,3644751459,3644751502,3644751460,3644751508,3644751479,3644751483,3644751462,3644751506,3644751490,3644751485,3644751465,3644751503,3644751510,3644751463,3644751496,3644751482,3644751494,3644751472,3644751481,3644751491,3644742563,3644742565,3644742596,3644742558,3644742583,3644742540,3644742570,3644742572,3644742587,3644742551,3644742560,3644742548,3644742580,3644742594,3644742586,3644742617,3644742567,3644742602,3644742611,3644742614,3644742624,3644742555,3644742573,3644742564,3644742578,3644742599,3644742546,3644742589,3644742539,3644742604,3644742603,3644742579,3644742622,3644742543,3644742607,3644742605,3644742547,3644742619,3644742569,3644742609,3644742574,3644742588,3644742538,3644742623,3644742621,3644742591,3644742615,3644742616,3644742561,3644742626,3644742625,3644742577,3644742581,3644742542,3644742568,3644742550,3644742592,3644742552,3644742541,3644742608,3644742562,3644742606,3644742549,3644742593,3644742618,3644742576,3644742557,3644742612,3644742566,3644742595,3644742571,3644742584,3644742544,3644742559,3644742590,3644742610,3644742598,3644742545,3644742585,3644742554,3644742613,3644742620,3644742597,3644742601,3644742600,3644742582,3644742553,3644742556,3644742575,3644741820,3644741806,3644741780,3644741798,3644741808,3644741824,3644741789,3644741771,3644741765,3644741828,3644741804,3644741821,3644741758,3644741825,3644741770,3644741776,3644741817,3644741813,3644741782,3644741818,3644741822,3644741787,3644741800,3644741796,3644741775,3644741797,3644741805,3644741781,3644741795,3644741790,3644741786,3644741791,3644741774,3644741755,3644741783,3644741752,3644741812,3644741792,3644741763,3644741811,3644741802,3644741785,3644741788,3644741756,3644741769,3644741794,3644741757,3644741807,3644741762,3644741753,3644741810,3644741761,3644741767,3644741751,3644741799,3644741830,3644741816,3644741779,3644741829,3644741760,3644741759,3644741764,3644741777,3644741768,3644741819,3644741772,3644741754,3644741766,3644741826,3644741823,3644741814,3644741778,3644741809,3644741801,3644741815,3644741827,3644741803,3644741773,3644741784,3644741793) SELECT * FROM MTRPhoto.crop_segments WHERE crop_hashtag_id in (3644761651,3644761648,3644761647,3644761655,3644761653,3644761654,3644761656,3644761649,3644761652,3644761650,3644761417,3644761403,3644761460,3644761429,3644761422,3644761402,3644761420,3644761408,3644761466,3644761473,3644761467,3644761431,3644761430,3644761453,3644761445,3644761472,3644761407,3644761434,3644761442,3644761474,3644761465,3644761423,3644761435,3644761475,3644761421,3644761437,3644761411,3644761427,3644761476,3644761470,3644761415,3644761448,3644761433,3644761436,3644761447,3644761464,3644761459,3644761404,3644761449,3644761456,3644761462,3644761450,3644761454,3644761443,3644761439,3644761441,3644761410,3644761414,3644761440,3644761451,3644761455,3644761446,3644761471,3644761413,3644761406,3644761424,3644761401,3644761428,3644761409,3644761412,3644761405,3644761457,3644761469,3644761461,3644761418,3644761463,3644761477,3644761426,3644761458,3644761425,3644761416,3644761468,3644761419,3644761452,3644761444,3644761432,3644761438,3644757461,3644757470,3644757447,3644757433,3644757496,3644757434,3644757475,3644757472,3644757498,3644757468,3644757456,3644757454,3644757448,3644757463,3644757476,3644757478,3644757487,3644757517,3644757443,3644757477,3644757503,3644757465,3644757457,3644757511,3644757446,3644757442,3644757471,3644757440,3644757473,3644757455,3644757458,3644757502,3644757514,3644757492,3644757495,3644757512,3644757501,3644757509,3644757508,3644757449,3644757467,3644757516,3644757483,3644757506,3644757491,3644757450,3644757479,3644757486,3644757482,3644757445,3644757431,3644757515,3644757460,3644757494,3644757519,3644757525,3644757526,3644757437,3644757452,3644757524,3644757523,3644757522,3644757432,3644757453,3644757500,3644757438,3644757459,3644757504,3644757481,3644757435,3644757469,3644757462,3644757518,3644757444,3644757464,3644757488,3644757485,3644757520,3644757493,3644757507,3644757490,3644757441,3644757510,3644757439,3644757474,3644757436,3644757497,3644757480,3644757489,3644757521,3644757513,3644757451,3644757484,3644757505,3644757499,3644757466,3644757280,3644757315,3644757276,3644757316,3644757290,3644757310,3644757293,3644757303,3644757299,3644757304,3644757314,3644757330,3644757301,3644757321,3644757344,3644757306,3644757294,3644757308,3644757334,3644757312,3644757346,3644757348,3644757288,3644757295,3644757338,3644757325,3644757337,3644757281,3644757336,3644757319,3644757313,3644757298,3644757302,3644757278,3644757274,3644757291,3644757333,3644757332,3644757307,3644757282,3644757341,3644757340,3644757324,3644757285,3644757342,3644757279,3644757300,3644757339,3644757287,3644757283,3644757328,3644757309,3644757335,3644757286,3644757289,3644757277,3644757322,3644757284,3644757327,3644757296,3644757292,3644757343,3644757331,3644757305,3644757345,3644757320,3644757317,3644757323,3644757329,3644757347,3644757311,3644757349,3644757297,3644757326,3644757318,3644757275,3644754874,3644754877,3644754852,3644754845,3644754860,3644754871,3644754882,3644754896,3644754885,3644754892,3644754847,3644754870,3644754841,3644754890,3644754895,3644754831,3644754858,3644754889,3644754887,3644754859,3644754862,3644754867,3644754855,3644754835,3644754876,3644754900,3644754842,3644754869,3644754863,3644754857,3644754878,3644754836,3644754837,3644754850,3644754868,3644754866,3644754849,3644754853,3644754891,3644754897,3644754829,3644754830,3644754854,3644754872,3644754903,3644754902,3644754873,3644754904,3644754905,3644754844,3644754856,3644754838,3644754833,3644754884,3644754832,3644754865,3644754843,3644754898,3644754864,3644754834,3644754888,3644754875,3644754879,3644754893,3644754906,3644754851,3644754907,3644754899,3644754883,3644754848,3644754861,3644754839,3644754894,3644754901,3644754840,3644754880,3644754881,3644754886,3644754846,3644751453,3644751484,3644751516,3644751456,3644751530,3644751468,3644751478,3644751474,3644751467,3644751513,3644751493,3644751500,3644751518,3644751486,3644751523,3644751515,3644751507,3644751489,3644751525,3644751520,3644751475,3644751470,3644751480,3644751528,3644751455,3644751505,3644751461,3644751524,3644751469,3644751471,3644751487,3644751514,3644751501,3644751454,3644751497,3644751458,3644751519,3644751517,3644751477,3644751473,3644751511,3644751476,3644751451,3644751533,3644751531,3644751498,3644751522,3644751532,3644751534,3644751466,3644751495,3644751452,3644751529,3644751488,3644751499,3644751527,3644751464,3644751521,3644751512,3644751526,3644751504,3644751492,3644751457,3644751509,3644751459,3644751502,3644751460,3644751508,3644751479,3644751483,3644751462,3644751506,3644751490,3644751485,3644751465,3644751503,3644751510,3644751463,3644751496,3644751482,3644751494,3644751472,3644751481,3644751491,3644742563,3644742565,3644742596,3644742558,3644742583,3644742540,3644742570,3644742572,3644742587,3644742551,3644742560,3644742548,3644742580,3644742594,3644742586,3644742617,3644742567,3644742602,3644742611,3644742614,3644742624,3644742555,3644742573,3644742564,3644742578,3644742599,3644742546,3644742589,3644742539,3644742604,3644742603,3644742579,3644742622,3644742543,3644742607,3644742605,3644742547,3644742619,3644742569,3644742609,3644742574,3644742588,3644742538,3644742623,3644742621,3644742591,3644742615,3644742616,3644742561,3644742626,3644742625,3644742577,3644742581,3644742542,3644742568,3644742550,3644742592,3644742552,3644742541,3644742608,3644742562,3644742606,3644742549,3644742593,3644742618,3644742576,3644742557,3644742612,3644742566,3644742595,3644742571,3644742584,3644742544,3644742559,3644742590,3644742610,3644742598,3644742545,3644742585,3644742554,3644742613,3644742620,3644742597,3644742601,3644742600,3644742582,3644742553,3644742556,3644742575,3644741820,3644741806,3644741780,3644741798,3644741808,3644741824,3644741789,3644741771,3644741765,3644741828,3644741804,3644741821,3644741758,3644741825,3644741770,3644741776,3644741817,3644741813,3644741782,3644741818,3644741822,3644741787,3644741800,3644741796,3644741775,3644741797,3644741805,3644741781,3644741795,3644741790,3644741786,3644741791,3644741774,3644741755,3644741783,3644741752,3644741812,3644741792,3644741763,3644741811,3644741802,3644741785,3644741788,3644741756,3644741769,3644741794,3644741757,3644741807,3644741762,3644741753,3644741810,3644741761,3644741767,3644741751,3644741799,3644741830,3644741816,3644741779,3644741829,3644741760,3644741759,3644741764,3644741777,3644741768,3644741819,3644741772,3644741754,3644741766,3644741826,3644741823,3644741814,3644741778,3644741809,3644741801,3644741815,3644741827,3644741803,3644741773,3644741784,3644741793) SELECT * FROM MTRPhoto.crop_sum_segments WHERE crop_hashtag_id in (3644761651,3644761648,3644761647,3644761655,3644761653,3644761654,3644761656,3644761649,3644761652,3644761650,3644761417,3644761403,3644761460,3644761429,3644761422,3644761402,3644761420,3644761408,3644761466,3644761473,3644761467,3644761431,3644761430,3644761453,3644761445,3644761472,3644761407,3644761434,3644761442,3644761474,3644761465,3644761423,3644761435,3644761475,3644761421,3644761437,3644761411,3644761427,3644761476,3644761470,3644761415,3644761448,3644761433,3644761436,3644761447,3644761464,3644761459,3644761404,3644761449,3644761456,3644761462,3644761450,3644761454,3644761443,3644761439,3644761441,3644761410,3644761414,3644761440,3644761451,3644761455,3644761446,3644761471,3644761413,3644761406,3644761424,3644761401,3644761428,3644761409,3644761412,3644761405,3644761457,3644761469,3644761461,3644761418,3644761463,3644761477,3644761426,3644761458,3644761425,3644761416,3644761468,3644761419,3644761452,3644761444,3644761432,3644761438,3644757461,3644757470,3644757447,3644757433,3644757496,3644757434,3644757475,3644757472,3644757498,3644757468,3644757456,3644757454,3644757448,3644757463,3644757476,3644757478,3644757487,3644757517,3644757443,3644757477,3644757503,3644757465,3644757457,3644757511,3644757446,3644757442,3644757471,3644757440,3644757473,3644757455,3644757458,3644757502,3644757514,3644757492,3644757495,3644757512,3644757501,3644757509,3644757508,3644757449,3644757467,3644757516,3644757483,3644757506,3644757491,3644757450,3644757479,3644757486,3644757482,3644757445,3644757431,3644757515,3644757460,3644757494,3644757519,3644757525,3644757526,3644757437,3644757452,3644757524,3644757523,3644757522,3644757432,3644757453,3644757500,3644757438,3644757459,3644757504,3644757481,3644757435,3644757469,3644757462,3644757518,3644757444,3644757464,3644757488,3644757485,3644757520,3644757493,3644757507,3644757490,3644757441,3644757510,3644757439,3644757474,3644757436,3644757497,3644757480,3644757489,3644757521,3644757513,3644757451,3644757484,3644757505,3644757499,3644757466,3644757280,3644757315,3644757276,3644757316,3644757290,3644757310,3644757293,3644757303,3644757299,3644757304,3644757314,3644757330,3644757301,3644757321,3644757344,3644757306,3644757294,3644757308,3644757334,3644757312,3644757346,3644757348,3644757288,3644757295,3644757338,3644757325,3644757337,3644757281,3644757336,3644757319,3644757313,3644757298,3644757302,3644757278,3644757274,3644757291,3644757333,3644757332,3644757307,3644757282,3644757341,3644757340,3644757324,3644757285,3644757342,3644757279,3644757300,3644757339,3644757287,3644757283,3644757328,3644757309,3644757335,3644757286,3644757289,3644757277,3644757322,3644757284,3644757327,3644757296,3644757292,3644757343,3644757331,3644757305,3644757345,3644757320,3644757317,3644757323,3644757329,3644757347,3644757311,3644757349,3644757297,3644757326,3644757318,3644757275,3644754874,3644754877,3644754852,3644754845,3644754860,3644754871,3644754882,3644754896,3644754885,3644754892,3644754847,3644754870,3644754841,3644754890,3644754895,3644754831,3644754858,3644754889,3644754887,3644754859,3644754862,3644754867,3644754855,3644754835,3644754876,3644754900,3644754842,3644754869,3644754863,3644754857,3644754878,3644754836,3644754837,3644754850,3644754868,3644754866,3644754849,3644754853,3644754891,3644754897,3644754829,3644754830,3644754854,3644754872,3644754903,3644754902,3644754873,3644754904,3644754905,3644754844,3644754856,3644754838,3644754833,3644754884,3644754832,3644754865,3644754843,3644754898,3644754864,3644754834,3644754888,3644754875,3644754879,3644754893,3644754906,3644754851,3644754907,3644754899,3644754883,3644754848,3644754861,3644754839,3644754894,3644754901,3644754840,3644754880,3644754881,3644754886,3644754846,3644751453,3644751484,3644751516,3644751456,3644751530,3644751468,3644751478,3644751474,3644751467,3644751513,3644751493,3644751500,3644751518,3644751486,3644751523,3644751515,3644751507,3644751489,3644751525,3644751520,3644751475,3644751470,3644751480,3644751528,3644751455,3644751505,3644751461,3644751524,3644751469,3644751471,3644751487,3644751514,3644751501,3644751454,3644751497,3644751458,3644751519,3644751517,3644751477,3644751473,3644751511,3644751476,3644751451,3644751533,3644751531,3644751498,3644751522,3644751532,3644751534,3644751466,3644751495,3644751452,3644751529,3644751488,3644751499,3644751527,3644751464,3644751521,3644751512,3644751526,3644751504,3644751492,3644751457,3644751509,3644751459,3644751502,3644751460,3644751508,3644751479,3644751483,3644751462,3644751506,3644751490,3644751485,3644751465,3644751503,3644751510,3644751463,3644751496,3644751482,3644751494,3644751472,3644751481,3644751491,3644742563,3644742565,3644742596,3644742558,3644742583,3644742540,3644742570,3644742572,3644742587,3644742551,3644742560,3644742548,3644742580,3644742594,3644742586,3644742617,3644742567,3644742602,3644742611,3644742614,3644742624,3644742555,3644742573,3644742564,3644742578,3644742599,3644742546,3644742589,3644742539,3644742604,3644742603,3644742579,3644742622,3644742543,3644742607,3644742605,3644742547,3644742619,3644742569,3644742609,3644742574,3644742588,3644742538,3644742623,3644742621,3644742591,3644742615,3644742616,3644742561,3644742626,3644742625,3644742577,3644742581,3644742542,3644742568,3644742550,3644742592,3644742552,3644742541,3644742608,3644742562,3644742606,3644742549,3644742593,3644742618,3644742576,3644742557,3644742612,3644742566,3644742595,3644742571,3644742584,3644742544,3644742559,3644742590,3644742610,3644742598,3644742545,3644742585,3644742554,3644742613,3644742620,3644742597,3644742601,3644742600,3644742582,3644742553,3644742556,3644742575,3644741820,3644741806,3644741780,3644741798,3644741808,3644741824,3644741789,3644741771,3644741765,3644741828,3644741804,3644741821,3644741758,3644741825,3644741770,3644741776,3644741817,3644741813,3644741782,3644741818,3644741822,3644741787,3644741800,3644741796,3644741775,3644741797,3644741805,3644741781,3644741795,3644741790,3644741786,3644741791,3644741774,3644741755,3644741783,3644741752,3644741812,3644741792,3644741763,3644741811,3644741802,3644741785,3644741788,3644741756,3644741769,3644741794,3644741757,3644741807,3644741762,3644741753,3644741810,3644741761,3644741767,3644741751,3644741799,3644741830,3644741816,3644741779,3644741829,3644741760,3644741759,3644741764,3644741777,3644741768,3644741819,3644741772,3644741754,3644741766,3644741826,3644741823,3644741814,3644741778,3644741809,3644741801,3644741815,3644741827,3644741803,3644741773,3644741784,3644741793) begin to find the sub_photo_id : begin to find the sub_photo_id : begin to find the sub_photo_id : begin to find the sub_photo_id : begin to find the sub_photo_id : begin to find the sub_photo_id : begin to find the sub_photo_id : begin to find the sub_photo_id : insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id) select 20095210, mtr_photo_id, 0 from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20071243; update MTRUser.mtr_portfolio_photos as a inner join MTRUser.mtr_portfolio_photos as b on a.mtr_photo_id = b.mtr_photo_id set a.hide_status = b.hide_status where a.mtr_portfolio_id =20095210 and b.mtr_portfolio_id = 20071243; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id) select 13431365, mtr_photo_id, 0 from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20071243; update MTRUser.mtr_portfolio_photos as a inner join MTRUser.mtr_portfolio_photos as b on a.mtr_photo_id = b.mtr_photo_id set a.hide_status = b.hide_status where a.mtr_portfolio_id =13431365 and b.mtr_portfolio_id = 20071243; TODO : # On doit donc construire les chi a partir des informations dans les photos filles query : SELECT ph.photo_id FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=20071244 AND mpp.hide_status=0 ORDER BY ph.size desc SELECT distinct chi.photo_id FROM MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids csp WHERE chi.id=csp.crop_hashtag_id AND chi.type=4855 AND csp.sub_photo_id IN (1332952269,1332953136,1332953120,1332953108,1332952802,1332952800,1332952745,1332952487,1332952346,1332950654,1332952265,1332952253,1332952243,1332951894,1332951887,1332951854,1332951800) batch 1 select photo_id, hashtag_id, `type`, x0, x1, y0, y1, score, id from MTRPhoto.crop_hashtag_ids where photo_id in ( 1332932490,1332932560,1332932503,1332932495,1332932498,1332932544,1332932508,1332932511) and `type` in (4855) Loaded 591 chid ids of type : 4855 SELECT crop_hashtag_id, points FROM MTRPhoto.crop_polygon_points WHERE crop_hashtag_id in (3644761651,3644761648,3644761647,3644761655,3644761653,3644761654,3644761656,3644761649,3644761652,3644761650,3644761417,3644761403,3644761460,3644761429,3644761422,3644761402,3644761420,3644761408,3644761466,3644761473,3644761467,3644761431,3644761430,3644761453,3644761445,3644761472,3644761407,3644761434,3644761442,3644761474,3644761465,3644761423,3644761435,3644761475,3644761421,3644761437,3644761411,3644761427,3644761476,3644761470,3644761415,3644761448,3644761433,3644761436,3644761447,3644761464,3644761459,3644761404,3644761449,3644761456,3644761462,3644761450,3644761454,3644761443,3644761439,3644761441,3644761410,3644761414,3644761440,3644761451,3644761455,3644761446,3644761471,3644761413,3644761406,3644761424,3644761401,3644761428,3644761409,3644761412,3644761405,3644761457,3644761469,3644761461,3644761418,3644761463,3644761477,3644761426,3644761458,3644761425,3644761416,3644761468,3644761419,3644761452,3644761444,3644761432,3644761438,3644757461,3644757470,3644757447,3644757433,3644757496,3644757434,3644757475,3644757472,3644757498,3644757468,3644757456,3644757454,3644757448,3644757463,3644757476,3644757478,3644757487,3644757517,3644757443,3644757477,3644757503,3644757465,3644757457,3644757511,3644757446,3644757442,3644757471,3644757440,3644757473,3644757455,3644757458,3644757502,3644757514,3644757492,3644757495,3644757512,3644757501,3644757509,3644757508,3644757449,3644757467,3644757516,3644757483,3644757506,3644757491,3644757450,3644757479,3644757486,3644757482,3644757445,3644757431,3644757515,3644757460,3644757494,3644757519,3644757525,3644757526,3644757437,3644757452,3644757524,3644757523,3644757522,3644757432,3644757453,3644757500,3644757438,3644757459,3644757504,3644757481,3644757435,3644757469,3644757462,3644757518,3644757444,3644757464,3644757488,3644757485,3644757520,3644757493,3644757507,3644757490,3644757441,3644757510,3644757439,3644757474,3644757436,3644757497,3644757480,3644757489,3644757521,3644757513,3644757451,3644757484,3644757505,3644757499,3644757466,3644757280,3644757315,3644757276,3644757316,3644757290,3644757310,3644757293,3644757303,3644757299,3644757304,3644757314,3644757330,3644757301,3644757321,3644757344,3644757306,3644757294,3644757308,3644757334,3644757312,3644757346,3644757348,3644757288,3644757295,3644757338,3644757325,3644757337,3644757281,3644757336,3644757319,3644757313,3644757298,3644757302,3644757278,3644757274,3644757291,3644757333,3644757332,3644757307,3644757282,3644757341,3644757340,3644757324,3644757285,3644757342,3644757279,3644757300,3644757339,3644757287,3644757283,3644757328,3644757309,3644757335,3644757286,3644757289,3644757277,3644757322,3644757284,3644757327,3644757296,3644757292,3644757343,3644757331,3644757305,3644757345,3644757320,3644757317,3644757323,3644757329,3644757347,3644757311,3644757349,3644757297,3644757326,3644757318,3644757275,3644754874,3644754877,3644754852,3644754845,3644754860,3644754871,3644754882,3644754896,3644754885,3644754892,3644754847,3644754870,3644754841,3644754890,3644754895,3644754831,3644754858,3644754889,3644754887,3644754859,3644754862,3644754867,3644754855,3644754835,3644754876,3644754900,3644754842,3644754869,3644754863,3644754857,3644754878,3644754836,3644754837,3644754850,3644754868,3644754866,3644754849,3644754853,3644754891,3644754897,3644754829,3644754830,3644754854,3644754872,3644754903,3644754902,3644754873,3644754904,3644754905,3644754844,3644754856,3644754838,3644754833,3644754884,3644754832,3644754865,3644754843,3644754898,3644754864,3644754834,3644754888,3644754875,3644754879,3644754893,3644754906,3644754851,3644754907,3644754899,3644754883,3644754848,3644754861,3644754839,3644754894,3644754901,3644754840,3644754880,3644754881,3644754886,3644754846,3644751453,3644751484,3644751516,3644751456,3644751530,3644751468,3644751478,3644751474,3644751467,3644751513,3644751493,3644751500,3644751518,3644751486,3644751523,3644751515,3644751507,3644751489,3644751525,3644751520,3644751475,3644751470,3644751480,3644751528,3644751455,3644751505,3644751461,3644751524,3644751469,3644751471,3644751487,3644751514,3644751501,3644751454,3644751497,3644751458,3644751519,3644751517,3644751477,3644751473,3644751511,3644751476,3644751451,3644751533,3644751531,3644751498,3644751522,3644751532,3644751534,3644751466,3644751495,3644751452,3644751529,3644751488,3644751499,3644751527,3644751464,3644751521,3644751512,3644751526,3644751504,3644751492,3644751457,3644751509,3644751459,3644751502,3644751460,3644751508,3644751479,3644751483,3644751462,3644751506,3644751490,3644751485,3644751465,3644751503,3644751510,3644751463,3644751496,3644751482,3644751494,3644751472,3644751481,3644751491,3644742563,3644742565,3644742596,3644742558,3644742583,3644742540,3644742570,3644742572,3644742587,3644742551,3644742560,3644742548,3644742580,3644742594,3644742586,3644742617,3644742567,3644742602,3644742611,3644742614,3644742624,3644742555,3644742573,3644742564,3644742578,3644742599,3644742546,3644742589,3644742539,3644742604,3644742603,3644742579,3644742622,3644742543,3644742607,3644742605,3644742547,3644742619,3644742569,3644742609,3644742574,3644742588,3644742538,3644742623,3644742621,3644742591,3644742615,3644742616,3644742561,3644742626,3644742625,3644742577,3644742581,3644742542,3644742568,3644742550,3644742592,3644742552,3644742541,3644742608,3644742562,3644742606,3644742549,3644742593,3644742618,3644742576,3644742557,3644742612,3644742566,3644742595,3644742571,3644742584,3644742544,3644742559,3644742590,3644742610,3644742598,3644742545,3644742585,3644742554,3644742613,3644742620,3644742597,3644742601,3644742600,3644742582,3644742553,3644742556,3644742575,3644741820,3644741806,3644741780,3644741798,3644741808,3644741824,3644741789,3644741771,3644741765,3644741828,3644741804,3644741821,3644741758,3644741825,3644741770,3644741776,3644741817,3644741813,3644741782,3644741818,3644741822,3644741787,3644741800,3644741796,3644741775,3644741797,3644741805,3644741781,3644741795,3644741790,3644741786,3644741791,3644741774,3644741755,3644741783,3644741752,3644741812,3644741792,3644741763,3644741811,3644741802,3644741785,3644741788,3644741756,3644741769,3644741794,3644741757,3644741807,3644741762,3644741753,3644741810,3644741761,3644741767,3644741751,3644741799,3644741830,3644741816,3644741779,3644741829,3644741760,3644741759,3644741764,3644741777,3644741768,3644741819,3644741772,3644741754,3644741766,3644741826,3644741823,3644741814,3644741778,3644741809,3644741801,3644741815,3644741827,3644741803,3644741773,3644741784,3644741793) SELECT * FROM MTRPhoto.crop_segments WHERE crop_hashtag_id in (3644761651,3644761648,3644761647,3644761655,3644761653,3644761654,3644761656,3644761649,3644761652,3644761650,3644761417,3644761403,3644761460,3644761429,3644761422,3644761402,3644761420,3644761408,3644761466,3644761473,3644761467,3644761431,3644761430,3644761453,3644761445,3644761472,3644761407,3644761434,3644761442,3644761474,3644761465,3644761423,3644761435,3644761475,3644761421,3644761437,3644761411,3644761427,3644761476,3644761470,3644761415,3644761448,3644761433,3644761436,3644761447,3644761464,3644761459,3644761404,3644761449,3644761456,3644761462,3644761450,3644761454,3644761443,3644761439,3644761441,3644761410,3644761414,3644761440,3644761451,3644761455,3644761446,3644761471,3644761413,3644761406,3644761424,3644761401,3644761428,3644761409,3644761412,3644761405,3644761457,3644761469,3644761461,3644761418,3644761463,3644761477,3644761426,3644761458,3644761425,3644761416,3644761468,3644761419,3644761452,3644761444,3644761432,3644761438,3644757461,3644757470,3644757447,3644757433,3644757496,3644757434,3644757475,3644757472,3644757498,3644757468,3644757456,3644757454,3644757448,3644757463,3644757476,3644757478,3644757487,3644757517,3644757443,3644757477,3644757503,3644757465,3644757457,3644757511,3644757446,3644757442,3644757471,3644757440,3644757473,3644757455,3644757458,3644757502,3644757514,3644757492,3644757495,3644757512,3644757501,3644757509,3644757508,3644757449,3644757467,3644757516,3644757483,3644757506,3644757491,3644757450,3644757479,3644757486,3644757482,3644757445,3644757431,3644757515,3644757460,3644757494,3644757519,3644757525,3644757526,3644757437,3644757452,3644757524,3644757523,3644757522,3644757432,3644757453,3644757500,3644757438,3644757459,3644757504,3644757481,3644757435,3644757469,3644757462,3644757518,3644757444,3644757464,3644757488,3644757485,3644757520,3644757493,3644757507,3644757490,3644757441,3644757510,3644757439,3644757474,3644757436,3644757497,3644757480,3644757489,3644757521,3644757513,3644757451,3644757484,3644757505,3644757499,3644757466,3644757280,3644757315,3644757276,3644757316,3644757290,3644757310,3644757293,3644757303,3644757299,3644757304,3644757314,3644757330,3644757301,3644757321,3644757344,3644757306,3644757294,3644757308,3644757334,3644757312,3644757346,3644757348,3644757288,3644757295,3644757338,3644757325,3644757337,3644757281,3644757336,3644757319,3644757313,3644757298,3644757302,3644757278,3644757274,3644757291,3644757333,3644757332,3644757307,3644757282,3644757341,3644757340,3644757324,3644757285,3644757342,3644757279,3644757300,3644757339,3644757287,3644757283,3644757328,3644757309,3644757335,3644757286,3644757289,3644757277,3644757322,3644757284,3644757327,3644757296,3644757292,3644757343,3644757331,3644757305,3644757345,3644757320,3644757317,3644757323,3644757329,3644757347,3644757311,3644757349,3644757297,3644757326,3644757318,3644757275,3644754874,3644754877,3644754852,3644754845,3644754860,3644754871,3644754882,3644754896,3644754885,3644754892,3644754847,3644754870,3644754841,3644754890,3644754895,3644754831,3644754858,3644754889,3644754887,3644754859,3644754862,3644754867,3644754855,3644754835,3644754876,3644754900,3644754842,3644754869,3644754863,3644754857,3644754878,3644754836,3644754837,3644754850,3644754868,3644754866,3644754849,3644754853,3644754891,3644754897,3644754829,3644754830,3644754854,3644754872,3644754903,3644754902,3644754873,3644754904,3644754905,3644754844,3644754856,3644754838,3644754833,3644754884,3644754832,3644754865,3644754843,3644754898,3644754864,3644754834,3644754888,3644754875,3644754879,3644754893,3644754906,3644754851,3644754907,3644754899,3644754883,3644754848,3644754861,3644754839,3644754894,3644754901,3644754840,3644754880,3644754881,3644754886,3644754846,3644751453,3644751484,3644751516,3644751456,3644751530,3644751468,3644751478,3644751474,3644751467,3644751513,3644751493,3644751500,3644751518,3644751486,3644751523,3644751515,3644751507,3644751489,3644751525,3644751520,3644751475,3644751470,3644751480,3644751528,3644751455,3644751505,3644751461,3644751524,3644751469,3644751471,3644751487,3644751514,3644751501,3644751454,3644751497,3644751458,3644751519,3644751517,3644751477,3644751473,3644751511,3644751476,3644751451,3644751533,3644751531,3644751498,3644751522,3644751532,3644751534,3644751466,3644751495,3644751452,3644751529,3644751488,3644751499,3644751527,3644751464,3644751521,3644751512,3644751526,3644751504,3644751492,3644751457,3644751509,3644751459,3644751502,3644751460,3644751508,3644751479,3644751483,3644751462,3644751506,3644751490,3644751485,3644751465,3644751503,3644751510,3644751463,3644751496,3644751482,3644751494,3644751472,3644751481,3644751491,3644742563,3644742565,3644742596,3644742558,3644742583,3644742540,3644742570,3644742572,3644742587,3644742551,3644742560,3644742548,3644742580,3644742594,3644742586,3644742617,3644742567,3644742602,3644742611,3644742614,3644742624,3644742555,3644742573,3644742564,3644742578,3644742599,3644742546,3644742589,3644742539,3644742604,3644742603,3644742579,3644742622,3644742543,3644742607,3644742605,3644742547,3644742619,3644742569,3644742609,3644742574,3644742588,3644742538,3644742623,3644742621,3644742591,3644742615,3644742616,3644742561,3644742626,3644742625,3644742577,3644742581,3644742542,3644742568,3644742550,3644742592,3644742552,3644742541,3644742608,3644742562,3644742606,3644742549,3644742593,3644742618,3644742576,3644742557,3644742612,3644742566,3644742595,3644742571,3644742584,3644742544,3644742559,3644742590,3644742610,3644742598,3644742545,3644742585,3644742554,3644742613,3644742620,3644742597,3644742601,3644742600,3644742582,3644742553,3644742556,3644742575,3644741820,3644741806,3644741780,3644741798,3644741808,3644741824,3644741789,3644741771,3644741765,3644741828,3644741804,3644741821,3644741758,3644741825,3644741770,3644741776,3644741817,3644741813,3644741782,3644741818,3644741822,3644741787,3644741800,3644741796,3644741775,3644741797,3644741805,3644741781,3644741795,3644741790,3644741786,3644741791,3644741774,3644741755,3644741783,3644741752,3644741812,3644741792,3644741763,3644741811,3644741802,3644741785,3644741788,3644741756,3644741769,3644741794,3644741757,3644741807,3644741762,3644741753,3644741810,3644741761,3644741767,3644741751,3644741799,3644741830,3644741816,3644741779,3644741829,3644741760,3644741759,3644741764,3644741777,3644741768,3644741819,3644741772,3644741754,3644741766,3644741826,3644741823,3644741814,3644741778,3644741809,3644741801,3644741815,3644741827,3644741803,3644741773,3644741784,3644741793) SELECT * FROM MTRPhoto.crop_sum_segments WHERE crop_hashtag_id in (3644761651,3644761648,3644761647,3644761655,3644761653,3644761654,3644761656,3644761649,3644761652,3644761650,3644761417,3644761403,3644761460,3644761429,3644761422,3644761402,3644761420,3644761408,3644761466,3644761473,3644761467,3644761431,3644761430,3644761453,3644761445,3644761472,3644761407,3644761434,3644761442,3644761474,3644761465,3644761423,3644761435,3644761475,3644761421,3644761437,3644761411,3644761427,3644761476,3644761470,3644761415,3644761448,3644761433,3644761436,3644761447,3644761464,3644761459,3644761404,3644761449,3644761456,3644761462,3644761450,3644761454,3644761443,3644761439,3644761441,3644761410,3644761414,3644761440,3644761451,3644761455,3644761446,3644761471,3644761413,3644761406,3644761424,3644761401,3644761428,3644761409,3644761412,3644761405,3644761457,3644761469,3644761461,3644761418,3644761463,3644761477,3644761426,3644761458,3644761425,3644761416,3644761468,3644761419,3644761452,3644761444,3644761432,3644761438,3644757461,3644757470,3644757447,3644757433,3644757496,3644757434,3644757475,3644757472,3644757498,3644757468,3644757456,3644757454,3644757448,3644757463,3644757476,3644757478,3644757487,3644757517,3644757443,3644757477,3644757503,3644757465,3644757457,3644757511,3644757446,3644757442,3644757471,3644757440,3644757473,3644757455,3644757458,3644757502,3644757514,3644757492,3644757495,3644757512,3644757501,3644757509,3644757508,3644757449,3644757467,3644757516,3644757483,3644757506,3644757491,3644757450,3644757479,3644757486,3644757482,3644757445,3644757431,3644757515,3644757460,3644757494,3644757519,3644757525,3644757526,3644757437,3644757452,3644757524,3644757523,3644757522,3644757432,3644757453,3644757500,3644757438,3644757459,3644757504,3644757481,3644757435,3644757469,3644757462,3644757518,3644757444,3644757464,3644757488,3644757485,3644757520,3644757493,3644757507,3644757490,3644757441,3644757510,3644757439,3644757474,3644757436,3644757497,3644757480,3644757489,3644757521,3644757513,3644757451,3644757484,3644757505,3644757499,3644757466,3644757280,3644757315,3644757276,3644757316,3644757290,3644757310,3644757293,3644757303,3644757299,3644757304,3644757314,3644757330,3644757301,3644757321,3644757344,3644757306,3644757294,3644757308,3644757334,3644757312,3644757346,3644757348,3644757288,3644757295,3644757338,3644757325,3644757337,3644757281,3644757336,3644757319,3644757313,3644757298,3644757302,3644757278,3644757274,3644757291,3644757333,3644757332,3644757307,3644757282,3644757341,3644757340,3644757324,3644757285,3644757342,3644757279,3644757300,3644757339,3644757287,3644757283,3644757328,3644757309,3644757335,3644757286,3644757289,3644757277,3644757322,3644757284,3644757327,3644757296,3644757292,3644757343,3644757331,3644757305,3644757345,3644757320,3644757317,3644757323,3644757329,3644757347,3644757311,3644757349,3644757297,3644757326,3644757318,3644757275,3644754874,3644754877,3644754852,3644754845,3644754860,3644754871,3644754882,3644754896,3644754885,3644754892,3644754847,3644754870,3644754841,3644754890,3644754895,3644754831,3644754858,3644754889,3644754887,3644754859,3644754862,3644754867,3644754855,3644754835,3644754876,3644754900,3644754842,3644754869,3644754863,3644754857,3644754878,3644754836,3644754837,3644754850,3644754868,3644754866,3644754849,3644754853,3644754891,3644754897,3644754829,3644754830,3644754854,3644754872,3644754903,3644754902,3644754873,3644754904,3644754905,3644754844,3644754856,3644754838,3644754833,3644754884,3644754832,3644754865,3644754843,3644754898,3644754864,3644754834,3644754888,3644754875,3644754879,3644754893,3644754906,3644754851,3644754907,3644754899,3644754883,3644754848,3644754861,3644754839,3644754894,3644754901,3644754840,3644754880,3644754881,3644754886,3644754846,3644751453,3644751484,3644751516,3644751456,3644751530,3644751468,3644751478,3644751474,3644751467,3644751513,3644751493,3644751500,3644751518,3644751486,3644751523,3644751515,3644751507,3644751489,3644751525,3644751520,3644751475,3644751470,3644751480,3644751528,3644751455,3644751505,3644751461,3644751524,3644751469,3644751471,3644751487,3644751514,3644751501,3644751454,3644751497,3644751458,3644751519,3644751517,3644751477,3644751473,3644751511,3644751476,3644751451,3644751533,3644751531,3644751498,3644751522,3644751532,3644751534,3644751466,3644751495,3644751452,3644751529,3644751488,3644751499,3644751527,3644751464,3644751521,3644751512,3644751526,3644751504,3644751492,3644751457,3644751509,3644751459,3644751502,3644751460,3644751508,3644751479,3644751483,3644751462,3644751506,3644751490,3644751485,3644751465,3644751503,3644751510,3644751463,3644751496,3644751482,3644751494,3644751472,3644751481,3644751491,3644742563,3644742565,3644742596,3644742558,3644742583,3644742540,3644742570,3644742572,3644742587,3644742551,3644742560,3644742548,3644742580,3644742594,3644742586,3644742617,3644742567,3644742602,3644742611,3644742614,3644742624,3644742555,3644742573,3644742564,3644742578,3644742599,3644742546,3644742589,3644742539,3644742604,3644742603,3644742579,3644742622,3644742543,3644742607,3644742605,3644742547,3644742619,3644742569,3644742609,3644742574,3644742588,3644742538,3644742623,3644742621,3644742591,3644742615,3644742616,3644742561,3644742626,3644742625,3644742577,3644742581,3644742542,3644742568,3644742550,3644742592,3644742552,3644742541,3644742608,3644742562,3644742606,3644742549,3644742593,3644742618,3644742576,3644742557,3644742612,3644742566,3644742595,3644742571,3644742584,3644742544,3644742559,3644742590,3644742610,3644742598,3644742545,3644742585,3644742554,3644742613,3644742620,3644742597,3644742601,3644742600,3644742582,3644742553,3644742556,3644742575,3644741820,3644741806,3644741780,3644741798,3644741808,3644741824,3644741789,3644741771,3644741765,3644741828,3644741804,3644741821,3644741758,3644741825,3644741770,3644741776,3644741817,3644741813,3644741782,3644741818,3644741822,3644741787,3644741800,3644741796,3644741775,3644741797,3644741805,3644741781,3644741795,3644741790,3644741786,3644741791,3644741774,3644741755,3644741783,3644741752,3644741812,3644741792,3644741763,3644741811,3644741802,3644741785,3644741788,3644741756,3644741769,3644741794,3644741757,3644741807,3644741762,3644741753,3644741810,3644741761,3644741767,3644741751,3644741799,3644741830,3644741816,3644741779,3644741829,3644741760,3644741759,3644741764,3644741777,3644741768,3644741819,3644741772,3644741754,3644741766,3644741826,3644741823,3644741814,3644741778,3644741809,3644741801,3644741815,3644741827,3644741803,3644741773,3644741784,3644741793) begin to find the sub_photo_id : begin to find the sub_photo_id : begin to find the sub_photo_id : begin to find the sub_photo_id : begin to find the sub_photo_id : begin to find the sub_photo_id : begin to find the sub_photo_id : begin to find the sub_photo_id : insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id) select 20095211, mtr_photo_id, 0 from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20071244; update MTRUser.mtr_portfolio_photos as a inner join MTRUser.mtr_portfolio_photos as b on a.mtr_photo_id = b.mtr_photo_id set a.hide_status = b.hide_status where a.mtr_portfolio_id =20095211 and b.mtr_portfolio_id = 20071244; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id) select 13431366, mtr_photo_id, 0 from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20071244; update MTRUser.mtr_portfolio_photos as a inner join MTRUser.mtr_portfolio_photos as b on a.mtr_photo_id = b.mtr_photo_id set a.hide_status = b.hide_status where a.mtr_portfolio_id =13431366 and b.mtr_portfolio_id = 20071244; TODO : # On doit donc construire les chi a partir des informations dans les photos filles query : SELECT ph.photo_id FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=20071245 AND mpp.hide_status=0 ORDER BY ph.size desc SELECT distinct chi.photo_id FROM MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids csp WHERE chi.id=csp.crop_hashtag_id AND chi.type=4855 AND csp.sub_photo_id IN (1332950621,1332950625,1332951801,1332952186,1332952229,1332952239,1332952257,1332952263,1332952349,1332952353,1332952465,1332952747,1332952770,1332952775,1332952785) batch 1 select photo_id, hashtag_id, `type`, x0, x1, y0, y1, score, id from MTRPhoto.crop_hashtag_ids where photo_id in ( 1332932508,1332932544,1332932503,1332932498,1332932511,1332932560) and `type` in (4855) Loaded 504 chid ids of type : 4855 SELECT crop_hashtag_id, points FROM MTRPhoto.crop_polygon_points WHERE crop_hashtag_id in (3644757461,3644757470,3644757447,3644757433,3644757496,3644757434,3644757475,3644757472,3644757498,3644757468,3644757456,3644757454,3644757448,3644757463,3644757476,3644757478,3644757487,3644757517,3644757443,3644757477,3644757503,3644757465,3644757457,3644757511,3644757446,3644757442,3644757471,3644757440,3644757473,3644757455,3644757458,3644757502,3644757514,3644757492,3644757495,3644757512,3644757501,3644757509,3644757508,3644757449,3644757467,3644757516,3644757483,3644757506,3644757491,3644757450,3644757479,3644757486,3644757482,3644757445,3644757431,3644757515,3644757460,3644757494,3644757519,3644757525,3644757526,3644757437,3644757452,3644757524,3644757523,3644757522,3644757432,3644757453,3644757500,3644757438,3644757459,3644757504,3644757481,3644757435,3644757469,3644757462,3644757518,3644757444,3644757464,3644757488,3644757485,3644757520,3644757493,3644757507,3644757490,3644757441,3644757510,3644757439,3644757474,3644757436,3644757497,3644757480,3644757489,3644757521,3644757513,3644757451,3644757484,3644757505,3644757499,3644757466,3644757280,3644757315,3644757276,3644757316,3644757290,3644757310,3644757293,3644757303,3644757299,3644757304,3644757314,3644757330,3644757301,3644757321,3644757344,3644757306,3644757294,3644757308,3644757334,3644757312,3644757346,3644757348,3644757288,3644757295,3644757338,3644757325,3644757337,3644757281,3644757336,3644757319,3644757313,3644757298,3644757302,3644757278,3644757274,3644757291,3644757333,3644757332,3644757307,3644757282,3644757341,3644757340,3644757324,3644757285,3644757342,3644757279,3644757300,3644757339,3644757287,3644757283,3644757328,3644757309,3644757335,3644757286,3644757289,3644757277,3644757322,3644757284,3644757327,3644757296,3644757292,3644757343,3644757331,3644757305,3644757345,3644757320,3644757317,3644757323,3644757329,3644757347,3644757311,3644757349,3644757297,3644757326,3644757318,3644757275,3644754874,3644754877,3644754852,3644754845,3644754860,3644754871,3644754882,3644754896,3644754885,3644754892,3644754847,3644754870,3644754841,3644754890,3644754895,3644754831,3644754858,3644754889,3644754887,3644754859,3644754862,3644754867,3644754855,3644754835,3644754876,3644754900,3644754842,3644754869,3644754863,3644754857,3644754878,3644754836,3644754837,3644754850,3644754868,3644754866,3644754849,3644754853,3644754891,3644754897,3644754829,3644754830,3644754854,3644754872,3644754903,3644754902,3644754873,3644754904,3644754905,3644754844,3644754856,3644754838,3644754833,3644754884,3644754832,3644754865,3644754843,3644754898,3644754864,3644754834,3644754888,3644754875,3644754879,3644754893,3644754906,3644754851,3644754907,3644754899,3644754883,3644754848,3644754861,3644754839,3644754894,3644754901,3644754840,3644754880,3644754881,3644754886,3644754846,3644751453,3644751484,3644751516,3644751456,3644751530,3644751468,3644751478,3644751474,3644751467,3644751513,3644751493,3644751500,3644751518,3644751486,3644751523,3644751515,3644751507,3644751489,3644751525,3644751520,3644751475,3644751470,3644751480,3644751528,3644751455,3644751505,3644751461,3644751524,3644751469,3644751471,3644751487,3644751514,3644751501,3644751454,3644751497,3644751458,3644751519,3644751517,3644751477,3644751473,3644751511,3644751476,3644751451,3644751533,3644751531,3644751498,3644751522,3644751532,3644751534,3644751466,3644751495,3644751452,3644751529,3644751488,3644751499,3644751527,3644751464,3644751521,3644751512,3644751526,3644751504,3644751492,3644751457,3644751509,3644751459,3644751502,3644751460,3644751508,3644751479,3644751483,3644751462,3644751506,3644751490,3644751485,3644751465,3644751503,3644751510,3644751463,3644751496,3644751482,3644751494,3644751472,3644751481,3644751491,3644742563,3644742565,3644742596,3644742558,3644742583,3644742540,3644742570,3644742572,3644742587,3644742551,3644742560,3644742548,3644742580,3644742594,3644742586,3644742617,3644742567,3644742602,3644742611,3644742614,3644742624,3644742555,3644742573,3644742564,3644742578,3644742599,3644742546,3644742589,3644742539,3644742604,3644742603,3644742579,3644742622,3644742543,3644742607,3644742605,3644742547,3644742619,3644742569,3644742609,3644742574,3644742588,3644742538,3644742623,3644742621,3644742591,3644742615,3644742616,3644742561,3644742626,3644742625,3644742577,3644742581,3644742542,3644742568,3644742550,3644742592,3644742552,3644742541,3644742608,3644742562,3644742606,3644742549,3644742593,3644742618,3644742576,3644742557,3644742612,3644742566,3644742595,3644742571,3644742584,3644742544,3644742559,3644742590,3644742610,3644742598,3644742545,3644742585,3644742554,3644742613,3644742620,3644742597,3644742601,3644742600,3644742582,3644742553,3644742556,3644742575,3644741820,3644741806,3644741780,3644741798,3644741808,3644741824,3644741789,3644741771,3644741765,3644741828,3644741804,3644741821,3644741758,3644741825,3644741770,3644741776,3644741817,3644741813,3644741782,3644741818,3644741822,3644741787,3644741800,3644741796,3644741775,3644741797,3644741805,3644741781,3644741795,3644741790,3644741786,3644741791,3644741774,3644741755,3644741783,3644741752,3644741812,3644741792,3644741763,3644741811,3644741802,3644741785,3644741788,3644741756,3644741769,3644741794,3644741757,3644741807,3644741762,3644741753,3644741810,3644741761,3644741767,3644741751,3644741799,3644741830,3644741816,3644741779,3644741829,3644741760,3644741759,3644741764,3644741777,3644741768,3644741819,3644741772,3644741754,3644741766,3644741826,3644741823,3644741814,3644741778,3644741809,3644741801,3644741815,3644741827,3644741803,3644741773,3644741784,3644741793) SELECT * FROM MTRPhoto.crop_segments WHERE crop_hashtag_id in (3644757461,3644757470,3644757447,3644757433,3644757496,3644757434,3644757475,3644757472,3644757498,3644757468,3644757456,3644757454,3644757448,3644757463,3644757476,3644757478,3644757487,3644757517,3644757443,3644757477,3644757503,3644757465,3644757457,3644757511,3644757446,3644757442,3644757471,3644757440,3644757473,3644757455,3644757458,3644757502,3644757514,3644757492,3644757495,3644757512,3644757501,3644757509,3644757508,3644757449,3644757467,3644757516,3644757483,3644757506,3644757491,3644757450,3644757479,3644757486,3644757482,3644757445,3644757431,3644757515,3644757460,3644757494,3644757519,3644757525,3644757526,3644757437,3644757452,3644757524,3644757523,3644757522,3644757432,3644757453,3644757500,3644757438,3644757459,3644757504,3644757481,3644757435,3644757469,3644757462,3644757518,3644757444,3644757464,3644757488,3644757485,3644757520,3644757493,3644757507,3644757490,3644757441,3644757510,3644757439,3644757474,3644757436,3644757497,3644757480,3644757489,3644757521,3644757513,3644757451,3644757484,3644757505,3644757499,3644757466,3644757280,3644757315,3644757276,3644757316,3644757290,3644757310,3644757293,3644757303,3644757299,3644757304,3644757314,3644757330,3644757301,3644757321,3644757344,3644757306,3644757294,3644757308,3644757334,3644757312,3644757346,3644757348,3644757288,3644757295,3644757338,3644757325,3644757337,3644757281,3644757336,3644757319,3644757313,3644757298,3644757302,3644757278,3644757274,3644757291,3644757333,3644757332,3644757307,3644757282,3644757341,3644757340,3644757324,3644757285,3644757342,3644757279,3644757300,3644757339,3644757287,3644757283,3644757328,3644757309,3644757335,3644757286,3644757289,3644757277,3644757322,3644757284,3644757327,3644757296,3644757292,3644757343,3644757331,3644757305,3644757345,3644757320,3644757317,3644757323,3644757329,3644757347,3644757311,3644757349,3644757297,3644757326,3644757318,3644757275,3644754874,3644754877,3644754852,3644754845,3644754860,3644754871,3644754882,3644754896,3644754885,3644754892,3644754847,3644754870,3644754841,3644754890,3644754895,3644754831,3644754858,3644754889,3644754887,3644754859,3644754862,3644754867,3644754855,3644754835,3644754876,3644754900,3644754842,3644754869,3644754863,3644754857,3644754878,3644754836,3644754837,3644754850,3644754868,3644754866,3644754849,3644754853,3644754891,3644754897,3644754829,3644754830,3644754854,3644754872,3644754903,3644754902,3644754873,3644754904,3644754905,3644754844,3644754856,3644754838,3644754833,3644754884,3644754832,3644754865,3644754843,3644754898,3644754864,3644754834,3644754888,3644754875,3644754879,3644754893,3644754906,3644754851,3644754907,3644754899,3644754883,3644754848,3644754861,3644754839,3644754894,3644754901,3644754840,3644754880,3644754881,3644754886,3644754846,3644751453,3644751484,3644751516,3644751456,3644751530,3644751468,3644751478,3644751474,3644751467,3644751513,3644751493,3644751500,3644751518,3644751486,3644751523,3644751515,3644751507,3644751489,3644751525,3644751520,3644751475,3644751470,3644751480,3644751528,3644751455,3644751505,3644751461,3644751524,3644751469,3644751471,3644751487,3644751514,3644751501,3644751454,3644751497,3644751458,3644751519,3644751517,3644751477,3644751473,3644751511,3644751476,3644751451,3644751533,3644751531,3644751498,3644751522,3644751532,3644751534,3644751466,3644751495,3644751452,3644751529,3644751488,3644751499,3644751527,3644751464,3644751521,3644751512,3644751526,3644751504,3644751492,3644751457,3644751509,3644751459,3644751502,3644751460,3644751508,3644751479,3644751483,3644751462,3644751506,3644751490,3644751485,3644751465,3644751503,3644751510,3644751463,3644751496,3644751482,3644751494,3644751472,3644751481,3644751491,3644742563,3644742565,3644742596,3644742558,3644742583,3644742540,3644742570,3644742572,3644742587,3644742551,3644742560,3644742548,3644742580,3644742594,3644742586,3644742617,3644742567,3644742602,3644742611,3644742614,3644742624,3644742555,3644742573,3644742564,3644742578,3644742599,3644742546,3644742589,3644742539,3644742604,3644742603,3644742579,3644742622,3644742543,3644742607,3644742605,3644742547,3644742619,3644742569,3644742609,3644742574,3644742588,3644742538,3644742623,3644742621,3644742591,3644742615,3644742616,3644742561,3644742626,3644742625,3644742577,3644742581,3644742542,3644742568,3644742550,3644742592,3644742552,3644742541,3644742608,3644742562,3644742606,3644742549,3644742593,3644742618,3644742576,3644742557,3644742612,3644742566,3644742595,3644742571,3644742584,3644742544,3644742559,3644742590,3644742610,3644742598,3644742545,3644742585,3644742554,3644742613,3644742620,3644742597,3644742601,3644742600,3644742582,3644742553,3644742556,3644742575,3644741820,3644741806,3644741780,3644741798,3644741808,3644741824,3644741789,3644741771,3644741765,3644741828,3644741804,3644741821,3644741758,3644741825,3644741770,3644741776,3644741817,3644741813,3644741782,3644741818,3644741822,3644741787,3644741800,3644741796,3644741775,3644741797,3644741805,3644741781,3644741795,3644741790,3644741786,3644741791,3644741774,3644741755,3644741783,3644741752,3644741812,3644741792,3644741763,3644741811,3644741802,3644741785,3644741788,3644741756,3644741769,3644741794,3644741757,3644741807,3644741762,3644741753,3644741810,3644741761,3644741767,3644741751,3644741799,3644741830,3644741816,3644741779,3644741829,3644741760,3644741759,3644741764,3644741777,3644741768,3644741819,3644741772,3644741754,3644741766,3644741826,3644741823,3644741814,3644741778,3644741809,3644741801,3644741815,3644741827,3644741803,3644741773,3644741784,3644741793) SELECT * FROM MTRPhoto.crop_sum_segments WHERE crop_hashtag_id in (3644757461,3644757470,3644757447,3644757433,3644757496,3644757434,3644757475,3644757472,3644757498,3644757468,3644757456,3644757454,3644757448,3644757463,3644757476,3644757478,3644757487,3644757517,3644757443,3644757477,3644757503,3644757465,3644757457,3644757511,3644757446,3644757442,3644757471,3644757440,3644757473,3644757455,3644757458,3644757502,3644757514,3644757492,3644757495,3644757512,3644757501,3644757509,3644757508,3644757449,3644757467,3644757516,3644757483,3644757506,3644757491,3644757450,3644757479,3644757486,3644757482,3644757445,3644757431,3644757515,3644757460,3644757494,3644757519,3644757525,3644757526,3644757437,3644757452,3644757524,3644757523,3644757522,3644757432,3644757453,3644757500,3644757438,3644757459,3644757504,3644757481,3644757435,3644757469,3644757462,3644757518,3644757444,3644757464,3644757488,3644757485,3644757520,3644757493,3644757507,3644757490,3644757441,3644757510,3644757439,3644757474,3644757436,3644757497,3644757480,3644757489,3644757521,3644757513,3644757451,3644757484,3644757505,3644757499,3644757466,3644757280,3644757315,3644757276,3644757316,3644757290,3644757310,3644757293,3644757303,3644757299,3644757304,3644757314,3644757330,3644757301,3644757321,3644757344,3644757306,3644757294,3644757308,3644757334,3644757312,3644757346,3644757348,3644757288,3644757295,3644757338,3644757325,3644757337,3644757281,3644757336,3644757319,3644757313,3644757298,3644757302,3644757278,3644757274,3644757291,3644757333,3644757332,3644757307,3644757282,3644757341,3644757340,3644757324,3644757285,3644757342,3644757279,3644757300,3644757339,3644757287,3644757283,3644757328,3644757309,3644757335,3644757286,3644757289,3644757277,3644757322,3644757284,3644757327,3644757296,3644757292,3644757343,3644757331,3644757305,3644757345,3644757320,3644757317,3644757323,3644757329,3644757347,3644757311,3644757349,3644757297,3644757326,3644757318,3644757275,3644754874,3644754877,3644754852,3644754845,3644754860,3644754871,3644754882,3644754896,3644754885,3644754892,3644754847,3644754870,3644754841,3644754890,3644754895,3644754831,3644754858,3644754889,3644754887,3644754859,3644754862,3644754867,3644754855,3644754835,3644754876,3644754900,3644754842,3644754869,3644754863,3644754857,3644754878,3644754836,3644754837,3644754850,3644754868,3644754866,3644754849,3644754853,3644754891,3644754897,3644754829,3644754830,3644754854,3644754872,3644754903,3644754902,3644754873,3644754904,3644754905,3644754844,3644754856,3644754838,3644754833,3644754884,3644754832,3644754865,3644754843,3644754898,3644754864,3644754834,3644754888,3644754875,3644754879,3644754893,3644754906,3644754851,3644754907,3644754899,3644754883,3644754848,3644754861,3644754839,3644754894,3644754901,3644754840,3644754880,3644754881,3644754886,3644754846,3644751453,3644751484,3644751516,3644751456,3644751530,3644751468,3644751478,3644751474,3644751467,3644751513,3644751493,3644751500,3644751518,3644751486,3644751523,3644751515,3644751507,3644751489,3644751525,3644751520,3644751475,3644751470,3644751480,3644751528,3644751455,3644751505,3644751461,3644751524,3644751469,3644751471,3644751487,3644751514,3644751501,3644751454,3644751497,3644751458,3644751519,3644751517,3644751477,3644751473,3644751511,3644751476,3644751451,3644751533,3644751531,3644751498,3644751522,3644751532,3644751534,3644751466,3644751495,3644751452,3644751529,3644751488,3644751499,3644751527,3644751464,3644751521,3644751512,3644751526,3644751504,3644751492,3644751457,3644751509,3644751459,3644751502,3644751460,3644751508,3644751479,3644751483,3644751462,3644751506,3644751490,3644751485,3644751465,3644751503,3644751510,3644751463,3644751496,3644751482,3644751494,3644751472,3644751481,3644751491,3644742563,3644742565,3644742596,3644742558,3644742583,3644742540,3644742570,3644742572,3644742587,3644742551,3644742560,3644742548,3644742580,3644742594,3644742586,3644742617,3644742567,3644742602,3644742611,3644742614,3644742624,3644742555,3644742573,3644742564,3644742578,3644742599,3644742546,3644742589,3644742539,3644742604,3644742603,3644742579,3644742622,3644742543,3644742607,3644742605,3644742547,3644742619,3644742569,3644742609,3644742574,3644742588,3644742538,3644742623,3644742621,3644742591,3644742615,3644742616,3644742561,3644742626,3644742625,3644742577,3644742581,3644742542,3644742568,3644742550,3644742592,3644742552,3644742541,3644742608,3644742562,3644742606,3644742549,3644742593,3644742618,3644742576,3644742557,3644742612,3644742566,3644742595,3644742571,3644742584,3644742544,3644742559,3644742590,3644742610,3644742598,3644742545,3644742585,3644742554,3644742613,3644742620,3644742597,3644742601,3644742600,3644742582,3644742553,3644742556,3644742575,3644741820,3644741806,3644741780,3644741798,3644741808,3644741824,3644741789,3644741771,3644741765,3644741828,3644741804,3644741821,3644741758,3644741825,3644741770,3644741776,3644741817,3644741813,3644741782,3644741818,3644741822,3644741787,3644741800,3644741796,3644741775,3644741797,3644741805,3644741781,3644741795,3644741790,3644741786,3644741791,3644741774,3644741755,3644741783,3644741752,3644741812,3644741792,3644741763,3644741811,3644741802,3644741785,3644741788,3644741756,3644741769,3644741794,3644741757,3644741807,3644741762,3644741753,3644741810,3644741761,3644741767,3644741751,3644741799,3644741830,3644741816,3644741779,3644741829,3644741760,3644741759,3644741764,3644741777,3644741768,3644741819,3644741772,3644741754,3644741766,3644741826,3644741823,3644741814,3644741778,3644741809,3644741801,3644741815,3644741827,3644741803,3644741773,3644741784,3644741793) begin to find the sub_photo_id : begin to find the sub_photo_id : begin to find the sub_photo_id : begin to find the sub_photo_id : begin to find the sub_photo_id : begin to find the sub_photo_id : insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id) select 20095199, mtr_photo_id, 0 from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20071245; update MTRUser.mtr_portfolio_photos as a inner join MTRUser.mtr_portfolio_photos as b on a.mtr_photo_id = b.mtr_photo_id set a.hide_status = b.hide_status where a.mtr_portfolio_id =20095199 and b.mtr_portfolio_id = 20071245; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id) select 11609172, mtr_photo_id, 0 from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20071245; update MTRUser.mtr_portfolio_photos as a inner join MTRUser.mtr_portfolio_photos as b on a.mtr_photo_id = b.mtr_photo_id set a.hide_status = b.hide_status where a.mtr_portfolio_id =11609172 and b.mtr_portfolio_id = 20071245; TODO : # On doit donc construire les chi a partir des informations dans les photos filles query : SELECT ph.photo_id FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=20071246 AND mpp.hide_status=0 ORDER BY ph.size desc SELECT distinct chi.photo_id FROM MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids csp WHERE chi.id=csp.crop_hashtag_id AND chi.type=4855 AND csp.sub_photo_id IN (1332952461,1332952462,1332952463,1332952464,1332952466,1332952472,1332952473,1332952475,1332952477,1332952478,1332952486,1332952777,1332952787,1332952793) batch 1 select photo_id, hashtag_id, `type`, x0, x1, y0, y1, score, id from MTRPhoto.crop_hashtag_ids where photo_id in ( 1332932511,1332932508,1332932498,1332932495,1332932544,1332932503) and `type` in (4855) Loaded 501 chid ids of type : 4855 SELECT crop_hashtag_id, points FROM MTRPhoto.crop_polygon_points WHERE crop_hashtag_id in (3644761417,3644761403,3644761460,3644761429,3644761422,3644761402,3644761420,3644761408,3644761466,3644761473,3644761467,3644761431,3644761430,3644761453,3644761445,3644761472,3644761407,3644761434,3644761442,3644761474,3644761465,3644761423,3644761435,3644761475,3644761421,3644761437,3644761411,3644761427,3644761476,3644761470,3644761415,3644761448,3644761433,3644761436,3644761447,3644761464,3644761459,3644761404,3644761449,3644761456,3644761462,3644761450,3644761454,3644761443,3644761439,3644761441,3644761410,3644761414,3644761440,3644761451,3644761455,3644761446,3644761471,3644761413,3644761406,3644761424,3644761401,3644761428,3644761409,3644761412,3644761405,3644761457,3644761469,3644761461,3644761418,3644761463,3644761477,3644761426,3644761458,3644761425,3644761416,3644761468,3644761419,3644761452,3644761444,3644761432,3644761438,3644757461,3644757470,3644757447,3644757433,3644757496,3644757434,3644757475,3644757472,3644757498,3644757468,3644757456,3644757454,3644757448,3644757463,3644757476,3644757478,3644757487,3644757517,3644757443,3644757477,3644757503,3644757465,3644757457,3644757511,3644757446,3644757442,3644757471,3644757440,3644757473,3644757455,3644757458,3644757502,3644757514,3644757492,3644757495,3644757512,3644757501,3644757509,3644757508,3644757449,3644757467,3644757516,3644757483,3644757506,3644757491,3644757450,3644757479,3644757486,3644757482,3644757445,3644757431,3644757515,3644757460,3644757494,3644757519,3644757525,3644757526,3644757437,3644757452,3644757524,3644757523,3644757522,3644757432,3644757453,3644757500,3644757438,3644757459,3644757504,3644757481,3644757435,3644757469,3644757462,3644757518,3644757444,3644757464,3644757488,3644757485,3644757520,3644757493,3644757507,3644757490,3644757441,3644757510,3644757439,3644757474,3644757436,3644757497,3644757480,3644757489,3644757521,3644757513,3644757451,3644757484,3644757505,3644757499,3644757466,3644757280,3644757315,3644757276,3644757316,3644757290,3644757310,3644757293,3644757303,3644757299,3644757304,3644757314,3644757330,3644757301,3644757321,3644757344,3644757306,3644757294,3644757308,3644757334,3644757312,3644757346,3644757348,3644757288,3644757295,3644757338,3644757325,3644757337,3644757281,3644757336,3644757319,3644757313,3644757298,3644757302,3644757278,3644757274,3644757291,3644757333,3644757332,3644757307,3644757282,3644757341,3644757340,3644757324,3644757285,3644757342,3644757279,3644757300,3644757339,3644757287,3644757283,3644757328,3644757309,3644757335,3644757286,3644757289,3644757277,3644757322,3644757284,3644757327,3644757296,3644757292,3644757343,3644757331,3644757305,3644757345,3644757320,3644757317,3644757323,3644757329,3644757347,3644757311,3644757349,3644757297,3644757326,3644757318,3644757275,3644754874,3644754877,3644754852,3644754845,3644754860,3644754871,3644754882,3644754896,3644754885,3644754892,3644754847,3644754870,3644754841,3644754890,3644754895,3644754831,3644754858,3644754889,3644754887,3644754859,3644754862,3644754867,3644754855,3644754835,3644754876,3644754900,3644754842,3644754869,3644754863,3644754857,3644754878,3644754836,3644754837,3644754850,3644754868,3644754866,3644754849,3644754853,3644754891,3644754897,3644754829,3644754830,3644754854,3644754872,3644754903,3644754902,3644754873,3644754904,3644754905,3644754844,3644754856,3644754838,3644754833,3644754884,3644754832,3644754865,3644754843,3644754898,3644754864,3644754834,3644754888,3644754875,3644754879,3644754893,3644754906,3644754851,3644754907,3644754899,3644754883,3644754848,3644754861,3644754839,3644754894,3644754901,3644754840,3644754880,3644754881,3644754886,3644754846,3644751453,3644751484,3644751516,3644751456,3644751530,3644751468,3644751478,3644751474,3644751467,3644751513,3644751493,3644751500,3644751518,3644751486,3644751523,3644751515,3644751507,3644751489,3644751525,3644751520,3644751475,3644751470,3644751480,3644751528,3644751455,3644751505,3644751461,3644751524,3644751469,3644751471,3644751487,3644751514,3644751501,3644751454,3644751497,3644751458,3644751519,3644751517,3644751477,3644751473,3644751511,3644751476,3644751451,3644751533,3644751531,3644751498,3644751522,3644751532,3644751534,3644751466,3644751495,3644751452,3644751529,3644751488,3644751499,3644751527,3644751464,3644751521,3644751512,3644751526,3644751504,3644751492,3644751457,3644751509,3644751459,3644751502,3644751460,3644751508,3644751479,3644751483,3644751462,3644751506,3644751490,3644751485,3644751465,3644751503,3644751510,3644751463,3644751496,3644751482,3644751494,3644751472,3644751481,3644751491,3644742563,3644742565,3644742596,3644742558,3644742583,3644742540,3644742570,3644742572,3644742587,3644742551,3644742560,3644742548,3644742580,3644742594,3644742586,3644742617,3644742567,3644742602,3644742611,3644742614,3644742624,3644742555,3644742573,3644742564,3644742578,3644742599,3644742546,3644742589,3644742539,3644742604,3644742603,3644742579,3644742622,3644742543,3644742607,3644742605,3644742547,3644742619,3644742569,3644742609,3644742574,3644742588,3644742538,3644742623,3644742621,3644742591,3644742615,3644742616,3644742561,3644742626,3644742625,3644742577,3644742581,3644742542,3644742568,3644742550,3644742592,3644742552,3644742541,3644742608,3644742562,3644742606,3644742549,3644742593,3644742618,3644742576,3644742557,3644742612,3644742566,3644742595,3644742571,3644742584,3644742544,3644742559,3644742590,3644742610,3644742598,3644742545,3644742585,3644742554,3644742613,3644742620,3644742597,3644742601,3644742600,3644742582,3644742553,3644742556,3644742575) SELECT * FROM MTRPhoto.crop_segments WHERE crop_hashtag_id in (3644761417,3644761403,3644761460,3644761429,3644761422,3644761402,3644761420,3644761408,3644761466,3644761473,3644761467,3644761431,3644761430,3644761453,3644761445,3644761472,3644761407,3644761434,3644761442,3644761474,3644761465,3644761423,3644761435,3644761475,3644761421,3644761437,3644761411,3644761427,3644761476,3644761470,3644761415,3644761448,3644761433,3644761436,3644761447,3644761464,3644761459,3644761404,3644761449,3644761456,3644761462,3644761450,3644761454,3644761443,3644761439,3644761441,3644761410,3644761414,3644761440,3644761451,3644761455,3644761446,3644761471,3644761413,3644761406,3644761424,3644761401,3644761428,3644761409,3644761412,3644761405,3644761457,3644761469,3644761461,3644761418,3644761463,3644761477,3644761426,3644761458,3644761425,3644761416,3644761468,3644761419,3644761452,3644761444,3644761432,3644761438,3644757461,3644757470,3644757447,3644757433,3644757496,3644757434,3644757475,3644757472,3644757498,3644757468,3644757456,3644757454,3644757448,3644757463,3644757476,3644757478,3644757487,3644757517,3644757443,3644757477,3644757503,3644757465,3644757457,3644757511,3644757446,3644757442,3644757471,3644757440,3644757473,3644757455,3644757458,3644757502,3644757514,3644757492,3644757495,3644757512,3644757501,3644757509,3644757508,3644757449,3644757467,3644757516,3644757483,3644757506,3644757491,3644757450,3644757479,3644757486,3644757482,3644757445,3644757431,3644757515,3644757460,3644757494,3644757519,3644757525,3644757526,3644757437,3644757452,3644757524,3644757523,3644757522,3644757432,3644757453,3644757500,3644757438,3644757459,3644757504,3644757481,3644757435,3644757469,3644757462,3644757518,3644757444,3644757464,3644757488,3644757485,3644757520,3644757493,3644757507,3644757490,3644757441,3644757510,3644757439,3644757474,3644757436,3644757497,3644757480,3644757489,3644757521,3644757513,3644757451,3644757484,3644757505,3644757499,3644757466,3644757280,3644757315,3644757276,3644757316,3644757290,3644757310,3644757293,3644757303,3644757299,3644757304,3644757314,3644757330,3644757301,3644757321,3644757344,3644757306,3644757294,3644757308,3644757334,3644757312,3644757346,3644757348,3644757288,3644757295,3644757338,3644757325,3644757337,3644757281,3644757336,3644757319,3644757313,3644757298,3644757302,3644757278,3644757274,3644757291,3644757333,3644757332,3644757307,3644757282,3644757341,3644757340,3644757324,3644757285,3644757342,3644757279,3644757300,3644757339,3644757287,3644757283,3644757328,3644757309,3644757335,3644757286,3644757289,3644757277,3644757322,3644757284,3644757327,3644757296,3644757292,3644757343,3644757331,3644757305,3644757345,3644757320,3644757317,3644757323,3644757329,3644757347,3644757311,3644757349,3644757297,3644757326,3644757318,3644757275,3644754874,3644754877,3644754852,3644754845,3644754860,3644754871,3644754882,3644754896,3644754885,3644754892,3644754847,3644754870,3644754841,3644754890,3644754895,3644754831,3644754858,3644754889,3644754887,3644754859,3644754862,3644754867,3644754855,3644754835,3644754876,3644754900,3644754842,3644754869,3644754863,3644754857,3644754878,3644754836,3644754837,3644754850,3644754868,3644754866,3644754849,3644754853,3644754891,3644754897,3644754829,3644754830,3644754854,3644754872,3644754903,3644754902,3644754873,3644754904,3644754905,3644754844,3644754856,3644754838,3644754833,3644754884,3644754832,3644754865,3644754843,3644754898,3644754864,3644754834,3644754888,3644754875,3644754879,3644754893,3644754906,3644754851,3644754907,3644754899,3644754883,3644754848,3644754861,3644754839,3644754894,3644754901,3644754840,3644754880,3644754881,3644754886,3644754846,3644751453,3644751484,3644751516,3644751456,3644751530,3644751468,3644751478,3644751474,3644751467,3644751513,3644751493,3644751500,3644751518,3644751486,3644751523,3644751515,3644751507,3644751489,3644751525,3644751520,3644751475,3644751470,3644751480,3644751528,3644751455,3644751505,3644751461,3644751524,3644751469,3644751471,3644751487,3644751514,3644751501,3644751454,3644751497,3644751458,3644751519,3644751517,3644751477,3644751473,3644751511,3644751476,3644751451,3644751533,3644751531,3644751498,3644751522,3644751532,3644751534,3644751466,3644751495,3644751452,3644751529,3644751488,3644751499,3644751527,3644751464,3644751521,3644751512,3644751526,3644751504,3644751492,3644751457,3644751509,3644751459,3644751502,3644751460,3644751508,3644751479,3644751483,3644751462,3644751506,3644751490,3644751485,3644751465,3644751503,3644751510,3644751463,3644751496,3644751482,3644751494,3644751472,3644751481,3644751491,3644742563,3644742565,3644742596,3644742558,3644742583,3644742540,3644742570,3644742572,3644742587,3644742551,3644742560,3644742548,3644742580,3644742594,3644742586,3644742617,3644742567,3644742602,3644742611,3644742614,3644742624,3644742555,3644742573,3644742564,3644742578,3644742599,3644742546,3644742589,3644742539,3644742604,3644742603,3644742579,3644742622,3644742543,3644742607,3644742605,3644742547,3644742619,3644742569,3644742609,3644742574,3644742588,3644742538,3644742623,3644742621,3644742591,3644742615,3644742616,3644742561,3644742626,3644742625,3644742577,3644742581,3644742542,3644742568,3644742550,3644742592,3644742552,3644742541,3644742608,3644742562,3644742606,3644742549,3644742593,3644742618,3644742576,3644742557,3644742612,3644742566,3644742595,3644742571,3644742584,3644742544,3644742559,3644742590,3644742610,3644742598,3644742545,3644742585,3644742554,3644742613,3644742620,3644742597,3644742601,3644742600,3644742582,3644742553,3644742556,3644742575) SELECT * FROM MTRPhoto.crop_sum_segments WHERE crop_hashtag_id in (3644761417,3644761403,3644761460,3644761429,3644761422,3644761402,3644761420,3644761408,3644761466,3644761473,3644761467,3644761431,3644761430,3644761453,3644761445,3644761472,3644761407,3644761434,3644761442,3644761474,3644761465,3644761423,3644761435,3644761475,3644761421,3644761437,3644761411,3644761427,3644761476,3644761470,3644761415,3644761448,3644761433,3644761436,3644761447,3644761464,3644761459,3644761404,3644761449,3644761456,3644761462,3644761450,3644761454,3644761443,3644761439,3644761441,3644761410,3644761414,3644761440,3644761451,3644761455,3644761446,3644761471,3644761413,3644761406,3644761424,3644761401,3644761428,3644761409,3644761412,3644761405,3644761457,3644761469,3644761461,3644761418,3644761463,3644761477,3644761426,3644761458,3644761425,3644761416,3644761468,3644761419,3644761452,3644761444,3644761432,3644761438,3644757461,3644757470,3644757447,3644757433,3644757496,3644757434,3644757475,3644757472,3644757498,3644757468,3644757456,3644757454,3644757448,3644757463,3644757476,3644757478,3644757487,3644757517,3644757443,3644757477,3644757503,3644757465,3644757457,3644757511,3644757446,3644757442,3644757471,3644757440,3644757473,3644757455,3644757458,3644757502,3644757514,3644757492,3644757495,3644757512,3644757501,3644757509,3644757508,3644757449,3644757467,3644757516,3644757483,3644757506,3644757491,3644757450,3644757479,3644757486,3644757482,3644757445,3644757431,3644757515,3644757460,3644757494,3644757519,3644757525,3644757526,3644757437,3644757452,3644757524,3644757523,3644757522,3644757432,3644757453,3644757500,3644757438,3644757459,3644757504,3644757481,3644757435,3644757469,3644757462,3644757518,3644757444,3644757464,3644757488,3644757485,3644757520,3644757493,3644757507,3644757490,3644757441,3644757510,3644757439,3644757474,3644757436,3644757497,3644757480,3644757489,3644757521,3644757513,3644757451,3644757484,3644757505,3644757499,3644757466,3644757280,3644757315,3644757276,3644757316,3644757290,3644757310,3644757293,3644757303,3644757299,3644757304,3644757314,3644757330,3644757301,3644757321,3644757344,3644757306,3644757294,3644757308,3644757334,3644757312,3644757346,3644757348,3644757288,3644757295,3644757338,3644757325,3644757337,3644757281,3644757336,3644757319,3644757313,3644757298,3644757302,3644757278,3644757274,3644757291,3644757333,3644757332,3644757307,3644757282,3644757341,3644757340,3644757324,3644757285,3644757342,3644757279,3644757300,3644757339,3644757287,3644757283,3644757328,3644757309,3644757335,3644757286,3644757289,3644757277,3644757322,3644757284,3644757327,3644757296,3644757292,3644757343,3644757331,3644757305,3644757345,3644757320,3644757317,3644757323,3644757329,3644757347,3644757311,3644757349,3644757297,3644757326,3644757318,3644757275,3644754874,3644754877,3644754852,3644754845,3644754860,3644754871,3644754882,3644754896,3644754885,3644754892,3644754847,3644754870,3644754841,3644754890,3644754895,3644754831,3644754858,3644754889,3644754887,3644754859,3644754862,3644754867,3644754855,3644754835,3644754876,3644754900,3644754842,3644754869,3644754863,3644754857,3644754878,3644754836,3644754837,3644754850,3644754868,3644754866,3644754849,3644754853,3644754891,3644754897,3644754829,3644754830,3644754854,3644754872,3644754903,3644754902,3644754873,3644754904,3644754905,3644754844,3644754856,3644754838,3644754833,3644754884,3644754832,3644754865,3644754843,3644754898,3644754864,3644754834,3644754888,3644754875,3644754879,3644754893,3644754906,3644754851,3644754907,3644754899,3644754883,3644754848,3644754861,3644754839,3644754894,3644754901,3644754840,3644754880,3644754881,3644754886,3644754846,3644751453,3644751484,3644751516,3644751456,3644751530,3644751468,3644751478,3644751474,3644751467,3644751513,3644751493,3644751500,3644751518,3644751486,3644751523,3644751515,3644751507,3644751489,3644751525,3644751520,3644751475,3644751470,3644751480,3644751528,3644751455,3644751505,3644751461,3644751524,3644751469,3644751471,3644751487,3644751514,3644751501,3644751454,3644751497,3644751458,3644751519,3644751517,3644751477,3644751473,3644751511,3644751476,3644751451,3644751533,3644751531,3644751498,3644751522,3644751532,3644751534,3644751466,3644751495,3644751452,3644751529,3644751488,3644751499,3644751527,3644751464,3644751521,3644751512,3644751526,3644751504,3644751492,3644751457,3644751509,3644751459,3644751502,3644751460,3644751508,3644751479,3644751483,3644751462,3644751506,3644751490,3644751485,3644751465,3644751503,3644751510,3644751463,3644751496,3644751482,3644751494,3644751472,3644751481,3644751491,3644742563,3644742565,3644742596,3644742558,3644742583,3644742540,3644742570,3644742572,3644742587,3644742551,3644742560,3644742548,3644742580,3644742594,3644742586,3644742617,3644742567,3644742602,3644742611,3644742614,3644742624,3644742555,3644742573,3644742564,3644742578,3644742599,3644742546,3644742589,3644742539,3644742604,3644742603,3644742579,3644742622,3644742543,3644742607,3644742605,3644742547,3644742619,3644742569,3644742609,3644742574,3644742588,3644742538,3644742623,3644742621,3644742591,3644742615,3644742616,3644742561,3644742626,3644742625,3644742577,3644742581,3644742542,3644742568,3644742550,3644742592,3644742552,3644742541,3644742608,3644742562,3644742606,3644742549,3644742593,3644742618,3644742576,3644742557,3644742612,3644742566,3644742595,3644742571,3644742584,3644742544,3644742559,3644742590,3644742610,3644742598,3644742545,3644742585,3644742554,3644742613,3644742620,3644742597,3644742601,3644742600,3644742582,3644742553,3644742556,3644742575) begin to find the sub_photo_id : begin to find the sub_photo_id : begin to find the sub_photo_id : begin to find the sub_photo_id : begin to find the sub_photo_id : begin to find the sub_photo_id : insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id) select 20095201, mtr_photo_id, 0 from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20071246; update MTRUser.mtr_portfolio_photos as a inner join MTRUser.mtr_portfolio_photos as b on a.mtr_photo_id = b.mtr_photo_id set a.hide_status = b.hide_status where a.mtr_portfolio_id =20095201 and b.mtr_portfolio_id = 20071246; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id) select 11609174, mtr_photo_id, 0 from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20071246; update MTRUser.mtr_portfolio_photos as a inner join MTRUser.mtr_portfolio_photos as b on a.mtr_photo_id = b.mtr_photo_id set a.hide_status = b.hide_status where a.mtr_portfolio_id =11609174 and b.mtr_portfolio_id = 20071246; UPDATE MTRPhoto.mtr_port_to_port_ids set last_updated_at_asc=NOW(), updated_at=NOW() WHERE id in (12793979,12793980,12793981,12793982,12793983,12793988,12793990,12793991,12793992,12793993,12793994,12793995,12793997,12793998,12794000,12794001,12794002,12794003,12794004); UPDATE MTRPhoto.mtr_port_to_port_ids set last_updated_at_asc=NOW(), updated_at=NOW() WHERE id in (12814296,12814297,12814298,12814299,12814300,12814303,12814305,12814306,12814307,12814308,12814309,12814310,12814311,12814312,12814301,12814313,12814314,12814302,12814304); UPDATE MTRPhoto.mtr_port_to_port_ids set last_updated_at_asc=NOW(), updated_at=NOW() WHERE id in (5732902,5732903,5732904,5732905,5732906,5732909,5732911,5732912,5732913,5732914,5732915,5732916,5732917,5732918,5732907,7242867,7242868,5732908,5732910); To test ! Use context local managing function ! After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([20067960]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : consolidate_hashtags_from_manual_portfolio we use saveGeneral [1332932560, 1332932544, 1332932511, 1332932508, 1332932503, 1332932498, 1332932495, 1332932490] map_info['map_portfolio_photo'] : {20067960: [1332932560, 1332932544, 1332932511, 1332932508, 1332932503, 1332932498, 1332932495, 1332932490]} final : False mtd_id 4742 list_pids : [1332932560, 1332932544, 1332932511, 1332932508, 1332932503, 1332932498, 1332932495, 1332932490] Looping around the photos to save general results len do output : 6 /Tassign value string error string indices must be integers invalid literal for int() with base 10: 'T' begin to insert list_values into mtr_datou_result : length of list_values in save_final : 8 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4742', '20067960', '1332932560', '0', '0', '-1.0', '501120777', '1.0', '2544296'), ('4742', '20067960', '1332932544', '0', '0', '-1.0', '501120777', '1.0', '2544296'), ('4742', '20067960', '1332932511', '0', '0', '-1.0', '501120777', '1.0', '2544296'), ('4742', '20067960', '1332932508', '0', '0', '-1.0', '501120777', '1.0', '2544296'), ('4742', '20067960', '1332932503', '0', '0', '-1.0', '501120777', '1.0', '2544296'), ('4742', '20067960', '1332932498', '0', '0', '-1.0', '501120777', '1.0', '2544296'), ('4742', '20067960', '1332932495', '0', '0', '-1.0', '501120777', '1.0', '2544296'), ('4742', '20067960', '1332932490', '0', '0', '-1.0', '501120777', '1.0', '2544296')] time used for this insertion : 0.015339136123657227 save_final save missing photos in datou_result : time spend for datou_step_exec : 12.900411367416382 time spend to save output : 0.015827178955078125 total time spend for step 2 : 12.91623854637146 step3:rle_unique_nms_with_priority Tue Feb 4 10:48:49 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : ['temp/1738662509_3545601_1332932560_f825d98c90562b05a1d90f88c89aab48.jpg', 'temp/1738662509_3545601_1332932544_18f92c466b90686e9886610cb819e00c.jpg', 'temp/1738662509_3545601_1332932511_16c7da5397c785a490147ea41c78994c.jpg', 'temp/1738662509_3545601_1332932508_431fce3a404cfe9f48781244eedecee8.jpg', 'temp/1738662509_3545601_1332932503_e18e192d9a8485075f9df5dfc7878fbc.jpg', 'temp/1738662509_3545601_1332932498_96b62cb3e7176983ef294cbb501ab4eb.jpg', 'temp/1738662509_3545601_1332932495_637bfae6a2f7fcb8fd08da5c18932253.jpg', 'temp/1738662509_3545601_1332932490_87bc005fe949be1b8f9856a0f84c9bca.jpg'] We expect there is only one output and this part is used while all output are not tuple or array We expect there is only one output and this part is used while all output are not tuple or array We expect there is only one output and this part is used while all output are not tuple or array We expect there is only one output and this part is used while all output are not tuple or array We expect there is only one output and this part is used while all output are not tuple or array We expect there is only one output and this part is used while all output are not tuple or array We expect there is only one output and this part is used while all output are not tuple or array We expect there is only one output and this part is used while all output are not tuple or array VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :8, first value : ['temp/1738662509_3545601_1332932560_f825d98c90562b05a1d90f88c89aab48.jpg'] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20067960) Here we display some param of map_info ! map_filenames : {'temp/1738662509_3545601_1332932560_f825d98c90562b05a1d90f88c89aab48.jpg': 1332932560, 'temp/1738662509_3545601_1332932544_18f92c466b90686e9886610cb819e00c.jpg': 1332932544, 'temp/1738662509_3545601_1332932511_16c7da5397c785a490147ea41c78994c.jpg': 1332932511, 'temp/1738662509_3545601_1332932508_431fce3a404cfe9f48781244eedecee8.jpg': 1332932508, 'temp/1738662509_3545601_1332932503_e18e192d9a8485075f9df5dfc7878fbc.jpg': 1332932503, 'temp/1738662509_3545601_1332932498_96b62cb3e7176983ef294cbb501ab4eb.jpg': 1332932498, 'temp/1738662509_3545601_1332932495_637bfae6a2f7fcb8fd08da5c18932253.jpg': 1332932495, 'temp/1738662509_3545601_1332932490_87bc005fe949be1b8f9856a0f84c9bca.jpg': 1332932490} map_photo_id_path_extension : {1332932560: {'path': 'temp/1738662509_3545601_1332932560_f825d98c90562b05a1d90f88c89aab48.jpg', 'extension': 'jpg'}, 1332932544: {'path': 'temp/1738662509_3545601_1332932544_18f92c466b90686e9886610cb819e00c.jpg', 'extension': 'jpg'}, 1332932511: {'path': 'temp/1738662509_3545601_1332932511_16c7da5397c785a490147ea41c78994c.jpg', 'extension': 'jpg'}, 1332932508: {'path': 'temp/1738662509_3545601_1332932508_431fce3a404cfe9f48781244eedecee8.jpg', 'extension': 'jpg'}, 1332932503: {'path': 'temp/1738662509_3545601_1332932503_e18e192d9a8485075f9df5dfc7878fbc.jpg', 'extension': 'jpg'}, 1332932498: {'path': 'temp/1738662509_3545601_1332932498_96b62cb3e7176983ef294cbb501ab4eb.jpg', 'extension': 'jpg'}, 1332932495: {'path': 'temp/1738662509_3545601_1332932495_637bfae6a2f7fcb8fd08da5c18932253.jpg', 'extension': 'jpg'}, 1332932490: {'path': 'temp/1738662509_3545601_1332932490_87bc005fe949be1b8f9856a0f84c9bca.jpg', 'extension': 'jpg'}} map_subphoto_mainphoto : {} Begin step rle-unique-nms on traite la photo : temp/1738662509_3545601_1332932560_f825d98c90562b05a1d90f88c89aab48.jpg on traite la photo : temp/1738662509_3545601_1332932544_18f92c466b90686e9886610cb819e00c.jpg on traite la photo : temp/1738662509_3545601_1332932511_16c7da5397c785a490147ea41c78994c.jpg on traite la photo : temp/1738662509_3545601_1332932508_431fce3a404cfe9f48781244eedecee8.jpg on traite la photo : temp/1738662509_3545601_1332932503_e18e192d9a8485075f9df5dfc7878fbc.jpg on traite la photo : temp/1738662509_3545601_1332932498_96b62cb3e7176983ef294cbb501ab4eb.jpg on traite la photo : temp/1738662509_3545601_1332932495_637bfae6a2f7fcb8fd08da5c18932253.jpg on traite la photo : temp/1738662509_3545601_1332932490_87bc005fe949be1b8f9856a0f84c9bca.jpg batch 1 select photo_id, hashtag_id, `type`, x0, x1, y0, y1, score, id from MTRPhoto.crop_hashtag_ids where photo_id in ( 1332932560,1332932544,1332932511,1332932508,1332932503,1332932498,1332932495,1332932490) and `type` in (4857) and hashtag_id in (493012381,2107760329,605975549,492626781,1608424396,530726390,492631919,494789423,2107761555,492741797,2107761554,2107760238,628944319,2107755846,492628673,492774966,492668766) Loaded 340 chid ids of type : 4857 SELECT crop_hashtag_id, points FROM MTRPhoto.crop_polygon_points WHERE crop_hashtag_id in (3646269114,3646269115,3646269116,3646269117,3646269118,3646269119,3646269499,3646269120,3646269477,3646269237,3646269238,3646269239,3646269240,3646269273,3646269269,3646269274,3646269275,3646269266,3646269276,3646269596,3646269277,3646269278,3646269270,3646269279,3646269280,3646269271,3646269288,3646269281,3646269282,3646269268,3646269283,3646269284,3646269267,3646269285,3646269272,3646269286,3646269287,3646269121,3646269122,3646269123,3646269500,3646269501,3646865411,3646269558,3646269601,3646269562,3646269592,3646269837,3646269851,3646269852,3646269853,3646269478,3646269242,3646269497,3646269291,3646269292,3646269293,3646269289,3646269301,3646269294,3646269295,3646269296,3646269297,3646269298,3646269302,3646269612,3646269299,3646269503,3646269615,3646269300,3646269124,3646269125,3646269502,3646269126,3646269127,3646269128,3646269129,3646269130,3646269131,3646269132,3646269133,3646269134,3646269135,3646269136,3646269137,3646269138,3646269139,3646269140,3646269141,3646269142,3646269486,3646269487,3646269488,3646269618,3646269481,3646269838,3646269565,3646269563,3646269290,3646269839,3646269856,3646269854,3646269855,3646269243,3646269245,3646269244,3646269305,3646269314,3646269306,3646269303,3646269307,3646269627,3646269308,3646269309,3646269632,3646269310,3646269311,3646269312,3646269313,3646269304,3646269143,3646269144,3646269145,3646269146,3646269147,3646269148,3646269149,3646269150,3646269151,3646269152,3646269504,3646269153,3646269154,3646269155,3646269156,3646269157,3646269158,3646269159,3646269160,3646269482,3646269566,3646269569,3646269568,3646269570,3646269571,3646269489,3646269840,3646269841,3646269636,3646269490,3646269246,3646269247,3646269248,3646269249,3646269316,3646269649,3646269328,3646269317,3646269318,3646269319,3646269327,3646269320,3646269321,3646269322,3646269323,3646269326,3646269324,3646269315,3646269325,3646269161,3646269162,3646269163,3646269164,3646269165,3646269166,3646269167,3646269168,3646269169,3646269170,3646269171,3646269172,3646269173,3646269174,3646269491,3646269483,3646269575,3646269574,3646269479,3646269860,3646269842,3646269572,3646269843,3646269844,3646269857,3646269858,3646269859,3646269251,3646269253,3646269252,3646269498,3646269332,3646269659,3646269661,3646269333,3646269329,3646269250,3646269334,3646269331,3646269335,3646269662,3646269336,3646269337,3646269338,3646269339,3646269340,3646269341,3646269342,3646269344,3646269330,3646269343,3646269345,3646269175,3646269176,3646269177,3646269178,3646269179,3646269180,3646269181,3646269182,3646269183,3646269184,3646269185,3646269186,3646269187,3646269188,3646269189,3646269190,3646269671,3646269494,3646269493,3646269492,3646269484,3646269672,3646269845,3646269576,3646269577,3646269663,3646865412,3646269578,3646269579,3646269846,3646269861,3646269862,3646269863,3646269480,3646269255,3646269256,3646269257,3646269358,3646269359,3646269680,3646269350,3646269360,3646269351,3646269352,3646269346,3646269347,3646269353,3646269354,3646269355,3646269348,3646269356,3646269349,3646269357,3646269191,3646269192,3646269193,3646269194,3646269195,3646269196,3646269197,3646269198,3646269199,3646269200,3646269505,3646269201,3646269202,3646269203,3646269204,3646269495,3646269485,3646269585,3646269849,3646269581,3646269584,3646269583,3646269580,3646269582,3646865413,3646269848,3646269847,3646269864,3646269259,3646269260,3646269258,3646269365,3646269363,3646269366,3646269367,3646269375,3646269368,3646269369,3646269261,3646269370,3646269371,3646269372,3646269376,3646269361,3646269373,3646269374,3646269714,3646269364,3646269362,3646269205,3646269206,3646269207,3646269208,3646269209,3646269210,3646269506,3646269211,3646269496,3646269726,3646269723,3646269590,3646269586,3646269587,3646269588,3646269589,3646269850) SELECT * FROM MTRPhoto.crop_segments WHERE crop_hashtag_id in (3646269114,3646269115,3646269116,3646269117,3646269118,3646269119,3646269499,3646269120,3646269477,3646269237,3646269238,3646269239,3646269240,3646269273,3646269269,3646269274,3646269275,3646269266,3646269276,3646269596,3646269277,3646269278,3646269270,3646269279,3646269280,3646269271,3646269288,3646269281,3646269282,3646269268,3646269283,3646269284,3646269267,3646269285,3646269272,3646269286,3646269287,3646269121,3646269122,3646269123,3646269500,3646269501,3646865411,3646269558,3646269601,3646269562,3646269592,3646269837,3646269851,3646269852,3646269853,3646269478,3646269242,3646269497,3646269291,3646269292,3646269293,3646269289,3646269301,3646269294,3646269295,3646269296,3646269297,3646269298,3646269302,3646269612,3646269299,3646269503,3646269615,3646269300,3646269124,3646269125,3646269502,3646269126,3646269127,3646269128,3646269129,3646269130,3646269131,3646269132,3646269133,3646269134,3646269135,3646269136,3646269137,3646269138,3646269139,3646269140,3646269141,3646269142,3646269486,3646269487,3646269488,3646269618,3646269481,3646269838,3646269565,3646269563,3646269290,3646269839,3646269856,3646269854,3646269855,3646269243,3646269245,3646269244,3646269305,3646269314,3646269306,3646269303,3646269307,3646269627,3646269308,3646269309,3646269632,3646269310,3646269311,3646269312,3646269313,3646269304,3646269143,3646269144,3646269145,3646269146,3646269147,3646269148,3646269149,3646269150,3646269151,3646269152,3646269504,3646269153,3646269154,3646269155,3646269156,3646269157,3646269158,3646269159,3646269160,3646269482,3646269566,3646269569,3646269568,3646269570,3646269571,3646269489,3646269840,3646269841,3646269636,3646269490,3646269246,3646269247,3646269248,3646269249,3646269316,3646269649,3646269328,3646269317,3646269318,3646269319,3646269327,3646269320,3646269321,3646269322,3646269323,3646269326,3646269324,3646269315,3646269325,3646269161,3646269162,3646269163,3646269164,3646269165,3646269166,3646269167,3646269168,3646269169,3646269170,3646269171,3646269172,3646269173,3646269174,3646269491,3646269483,3646269575,3646269574,3646269479,3646269860,3646269842,3646269572,3646269843,3646269844,3646269857,3646269858,3646269859,3646269251,3646269253,3646269252,3646269498,3646269332,3646269659,3646269661,3646269333,3646269329,3646269250,3646269334,3646269331,3646269335,3646269662,3646269336,3646269337,3646269338,3646269339,3646269340,3646269341,3646269342,3646269344,3646269330,3646269343,3646269345,3646269175,3646269176,3646269177,3646269178,3646269179,3646269180,3646269181,3646269182,3646269183,3646269184,3646269185,3646269186,3646269187,3646269188,3646269189,3646269190,3646269671,3646269494,3646269493,3646269492,3646269484,3646269672,3646269845,3646269576,3646269577,3646269663,3646865412,3646269578,3646269579,3646269846,3646269861,3646269862,3646269863,3646269480,3646269255,3646269256,3646269257,3646269358,3646269359,3646269680,3646269350,3646269360,3646269351,3646269352,3646269346,3646269347,3646269353,3646269354,3646269355,3646269348,3646269356,3646269349,3646269357,3646269191,3646269192,3646269193,3646269194,3646269195,3646269196,3646269197,3646269198,3646269199,3646269200,3646269505,3646269201,3646269202,3646269203,3646269204,3646269495,3646269485,3646269585,3646269849,3646269581,3646269584,3646269583,3646269580,3646269582,3646865413,3646269848,3646269847,3646269864,3646269259,3646269260,3646269258,3646269365,3646269363,3646269366,3646269367,3646269375,3646269368,3646269369,3646269261,3646269370,3646269371,3646269372,3646269376,3646269361,3646269373,3646269374,3646269714,3646269364,3646269362,3646269205,3646269206,3646269207,3646269208,3646269209,3646269210,3646269506,3646269211,3646269496,3646269726,3646269723,3646269590,3646269586,3646269587,3646269588,3646269589,3646269850) SELECT * FROM MTRPhoto.crop_sum_segments WHERE crop_hashtag_id in (3646269114,3646269115,3646269116,3646269117,3646269118,3646269119,3646269499,3646269120,3646269477,3646269237,3646269238,3646269239,3646269240,3646269273,3646269269,3646269274,3646269275,3646269266,3646269276,3646269596,3646269277,3646269278,3646269270,3646269279,3646269280,3646269271,3646269288,3646269281,3646269282,3646269268,3646269283,3646269284,3646269267,3646269285,3646269272,3646269286,3646269287,3646269121,3646269122,3646269123,3646269500,3646269501,3646865411,3646269558,3646269601,3646269562,3646269592,3646269837,3646269851,3646269852,3646269853,3646269478,3646269242,3646269497,3646269291,3646269292,3646269293,3646269289,3646269301,3646269294,3646269295,3646269296,3646269297,3646269298,3646269302,3646269612,3646269299,3646269503,3646269615,3646269300,3646269124,3646269125,3646269502,3646269126,3646269127,3646269128,3646269129,3646269130,3646269131,3646269132,3646269133,3646269134,3646269135,3646269136,3646269137,3646269138,3646269139,3646269140,3646269141,3646269142,3646269486,3646269487,3646269488,3646269618,3646269481,3646269838,3646269565,3646269563,3646269290,3646269839,3646269856,3646269854,3646269855,3646269243,3646269245,3646269244,3646269305,3646269314,3646269306,3646269303,3646269307,3646269627,3646269308,3646269309,3646269632,3646269310,3646269311,3646269312,3646269313,3646269304,3646269143,3646269144,3646269145,3646269146,3646269147,3646269148,3646269149,3646269150,3646269151,3646269152,3646269504,3646269153,3646269154,3646269155,3646269156,3646269157,3646269158,3646269159,3646269160,3646269482,3646269566,3646269569,3646269568,3646269570,3646269571,3646269489,3646269840,3646269841,3646269636,3646269490,3646269246,3646269247,3646269248,3646269249,3646269316,3646269649,3646269328,3646269317,3646269318,3646269319,3646269327,3646269320,3646269321,3646269322,3646269323,3646269326,3646269324,3646269315,3646269325,3646269161,3646269162,3646269163,3646269164,3646269165,3646269166,3646269167,3646269168,3646269169,3646269170,3646269171,3646269172,3646269173,3646269174,3646269491,3646269483,3646269575,3646269574,3646269479,3646269860,3646269842,3646269572,3646269843,3646269844,3646269857,3646269858,3646269859,3646269251,3646269253,3646269252,3646269498,3646269332,3646269659,3646269661,3646269333,3646269329,3646269250,3646269334,3646269331,3646269335,3646269662,3646269336,3646269337,3646269338,3646269339,3646269340,3646269341,3646269342,3646269344,3646269330,3646269343,3646269345,3646269175,3646269176,3646269177,3646269178,3646269179,3646269180,3646269181,3646269182,3646269183,3646269184,3646269185,3646269186,3646269187,3646269188,3646269189,3646269190,3646269671,3646269494,3646269493,3646269492,3646269484,3646269672,3646269845,3646269576,3646269577,3646269663,3646865412,3646269578,3646269579,3646269846,3646269861,3646269862,3646269863,3646269480,3646269255,3646269256,3646269257,3646269358,3646269359,3646269680,3646269350,3646269360,3646269351,3646269352,3646269346,3646269347,3646269353,3646269354,3646269355,3646269348,3646269356,3646269349,3646269357,3646269191,3646269192,3646269193,3646269194,3646269195,3646269196,3646269197,3646269198,3646269199,3646269200,3646269505,3646269201,3646269202,3646269203,3646269204,3646269495,3646269485,3646269585,3646269849,3646269581,3646269584,3646269583,3646269580,3646269582,3646865413,3646269848,3646269847,3646269864,3646269259,3646269260,3646269258,3646269365,3646269363,3646269366,3646269367,3646269375,3646269368,3646269369,3646269261,3646269370,3646269371,3646269372,3646269376,3646269361,3646269373,3646269374,3646269714,3646269364,3646269362,3646269205,3646269206,3646269207,3646269208,3646269209,3646269210,3646269506,3646269211,3646269496,3646269726,3646269723,3646269590,3646269586,3646269587,3646269588,3646269589,3646269850) seulement à utiliser dans la step consolidation insert ignore into MTRPhoto.crop_hashtag_ids (photo_id, hashtag_id, `type`,x0,x1,y0,y1,score) VALUES (%s,%s,%s,%s,%s,%s,%s,%s) batch 1 Loaded 68 chid ids of type : 4857 Number RLEs to save : 0 TO DO : save crop sub photo not yet done ! save time : 0.0336153507232666 seulement à utiliser dans la step consolidation insert ignore into MTRPhoto.crop_hashtag_ids (photo_id, hashtag_id, `type`,x0,x1,y0,y1,score) VALUES (%s,%s,%s,%s,%s,%s,%s,%s) batch 1 Loaded 73 chid ids of type : 4857 Number RLEs to save : 0 TO DO : save crop sub photo not yet done ! save time : 0.033153533935546875 seulement à utiliser dans la step consolidation insert ignore into MTRPhoto.crop_hashtag_ids (photo_id, hashtag_id, `type`,x0,x1,y0,y1,score) VALUES (%s,%s,%s,%s,%s,%s,%s,%s) batch 1 Loaded 69 chid ids of type : 4857 Number RLEs to save : 0 TO DO : save crop sub photo not yet done ! save time : 0.03472447395324707 seulement à utiliser dans la step consolidation insert ignore into MTRPhoto.crop_hashtag_ids (photo_id, hashtag_id, `type`,x0,x1,y0,y1,score) VALUES (%s,%s,%s,%s,%s,%s,%s,%s) batch 1 Loaded 61 chid ids of type : 4857 Number RLEs to save : 0 TO DO : save crop sub photo not yet done ! save time : 0.033294677734375 seulement à utiliser dans la step consolidation insert ignore into MTRPhoto.crop_hashtag_ids (photo_id, hashtag_id, `type`,x0,x1,y0,y1,score) VALUES (%s,%s,%s,%s,%s,%s,%s,%s) batch 1 Loaded 62 chid ids of type : 4857 Number RLEs to save : 0 TO DO : save crop sub photo not yet done ! save time : 0.03419017791748047 seulement à utiliser dans la step consolidation insert ignore into MTRPhoto.crop_hashtag_ids (photo_id, hashtag_id, `type`,x0,x1,y0,y1,score) VALUES (%s,%s,%s,%s,%s,%s,%s,%s) batch 1 Loaded 75 chid ids of type : 4857 Number RLEs to save : 0 TO DO : save crop sub photo not yet done ! save time : 0.035807132720947266 seulement à utiliser dans la step consolidation insert ignore into MTRPhoto.crop_hashtag_ids (photo_id, hashtag_id, `type`,x0,x1,y0,y1,score) VALUES (%s,%s,%s,%s,%s,%s,%s,%s) batch 1 Loaded 56 chid ids of type : 4857 Number RLEs to save : 0 TO DO : save crop sub photo not yet done ! save time : 0.11413908004760742 seulement à utiliser dans la step consolidation insert ignore into MTRPhoto.crop_hashtag_ids (photo_id, hashtag_id, `type`,x0,x1,y0,y1,score) VALUES (%s,%s,%s,%s,%s,%s,%s,%s) batch 1 Loaded 10 chid ids of type : 4857 Number RLEs to save : 0 TO DO : save crop sub photo not yet done ! save time : 0.02692890167236328 INSERT IGNORE INTO MTRPhoto.photo_carac_ratio (`photo_id`, `hashtag_type`, `hashtag_id`, `ratio`) VALUES (%s, %s, %s, %s) on duplicate key update `ratio` = VALUES(`ratio`) map_output_result : {1332932560: (0.104601918808331, 'Should be the crop_list due to order', 0.0), 1332932544: (0.104601918808331, 'Should be the crop_list due to order', 0.06169977738190484), 1332932511: (0.104601918808331, 'Should be the crop_list due to order', 0.1611542876189892), 1332932508: (0.104601918808331, 'Should be the crop_list due to order', 0.1389736979200624), 1332932503: (0.104601918808331, 'Should be the crop_list due to order', 0.08117936458963618), 1332932498: (0.104601918808331, 'Should be the crop_list due to order', 0.23301954721201754), 1332932495: (0.104601918808331, 'Should be the crop_list due to order', 0.1607886757440379), 1332932490: (0.104601918808331, 'Should be the crop_list due to order', 0)} End step rle-unique-nms After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([20067960]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : rle_unique_nms_with_priority we use saveGeneral [1332932560, 1332932544, 1332932511, 1332932508, 1332932503, 1332932498, 1332932495, 1332932490] map_info['map_portfolio_photo'] : {20067960: [1332932560, 1332932544, 1332932511, 1332932508, 1332932503, 1332932498, 1332932495, 1332932490]} final : False mtd_id 4742 list_pids : [1332932560, 1332932544, 1332932511, 1332932508, 1332932503, 1332932498, 1332932495, 1332932490] Looping around the photos to save general results len do output : 8 /1332932560.Didn't retrieve data . /1332932544.Didn't retrieve data . /1332932511.Didn't retrieve data . /1332932508.Didn't retrieve data . /1332932503.Didn't retrieve data . /1332932498.Didn't retrieve data . /1332932495.Didn't retrieve data . /1332932490.Didn't retrieve data . before output type Used above Here is an output not treated by saveGeneral : Managing all output in save final without adding information in the mtr_datou_result ('4742', None, None, None, None, None, None, None, '2544296') ('4742', '20067960', '1332932560', None, None, None, None, None, '2544296') ('4742', None, None, None, None, None, None, None, '2544296') ('4742', '20067960', '1332932544', None, None, None, None, None, '2544296') ('4742', None, None, None, None, None, None, None, '2544296') ('4742', '20067960', '1332932511', None, None, None, None, None, '2544296') ('4742', None, None, None, None, None, None, None, '2544296') ('4742', '20067960', '1332932508', None, None, None, None, None, '2544296') ('4742', None, None, None, None, None, None, None, '2544296') ('4742', '20067960', '1332932503', None, None, None, None, None, '2544296') ('4742', None, None, None, None, None, None, None, '2544296') ('4742', '20067960', '1332932498', None, None, None, None, None, '2544296') ('4742', None, None, None, None, None, None, None, '2544296') ('4742', '20067960', '1332932495', None, None, None, None, None, '2544296') ('4742', None, None, None, None, None, None, None, '2544296') ('4742', '20067960', '1332932490', None, None, None, None, None, '2544296') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 24 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4742', '20067960', '1332932560', '0.104601918808331', None, None, None, None, '2544296'), ('4742', '20067960', '1332932544', '0.104601918808331', None, None, None, None, '2544296'), ('4742', '20067960', '1332932511', '0.104601918808331', None, None, None, None, '2544296'), ('4742', '20067960', '1332932508', '0.104601918808331', None, None, None, None, '2544296'), ('4742', '20067960', '1332932503', '0.104601918808331', None, None, None, None, '2544296'), ('4742', '20067960', '1332932498', '0.104601918808331', None, None, None, None, '2544296'), ('4742', '20067960', '1332932495', '0.104601918808331', None, None, None, None, '2544296'), ('4742', '20067960', '1332932490', '0.104601918808331', None, None, None, None, '2544296')] time used for this insertion : 0.013232946395874023 save_final save missing photos in datou_result : time spend for datou_step_exec : 3.631659746170044 time spend to save output : 0.013760805130004883 total time spend for step 3 : 3.645420551300049 step4:ventilate_hashtags_in_portfolio Tue Feb 4 10:48:53 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :0, first value : [] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20067960) Here we display some param of map_info ! map_filenames : {'temp/1738662509_3545601_1332932560_f825d98c90562b05a1d90f88c89aab48.jpg': 1332932560, 'temp/1738662509_3545601_1332932544_18f92c466b90686e9886610cb819e00c.jpg': 1332932544, 'temp/1738662509_3545601_1332932511_16c7da5397c785a490147ea41c78994c.jpg': 1332932511, 'temp/1738662509_3545601_1332932508_431fce3a404cfe9f48781244eedecee8.jpg': 1332932508, 'temp/1738662509_3545601_1332932503_e18e192d9a8485075f9df5dfc7878fbc.jpg': 1332932503, 'temp/1738662509_3545601_1332932498_96b62cb3e7176983ef294cbb501ab4eb.jpg': 1332932498, 'temp/1738662509_3545601_1332932495_637bfae6a2f7fcb8fd08da5c18932253.jpg': 1332932495, 'temp/1738662509_3545601_1332932490_87bc005fe949be1b8f9856a0f84c9bca.jpg': 1332932490} map_photo_id_path_extension : {1332932560: {'path': 'temp/1738662509_3545601_1332932560_f825d98c90562b05a1d90f88c89aab48.jpg', 'extension': 'jpg'}, 1332932544: {'path': 'temp/1738662509_3545601_1332932544_18f92c466b90686e9886610cb819e00c.jpg', 'extension': 'jpg'}, 1332932511: {'path': 'temp/1738662509_3545601_1332932511_16c7da5397c785a490147ea41c78994c.jpg', 'extension': 'jpg'}, 1332932508: {'path': 'temp/1738662509_3545601_1332932508_431fce3a404cfe9f48781244eedecee8.jpg', 'extension': 'jpg'}, 1332932503: {'path': 'temp/1738662509_3545601_1332932503_e18e192d9a8485075f9df5dfc7878fbc.jpg', 'extension': 'jpg'}, 1332932498: {'path': 'temp/1738662509_3545601_1332932498_96b62cb3e7176983ef294cbb501ab4eb.jpg', 'extension': 'jpg'}, 1332932495: {'path': 'temp/1738662509_3545601_1332932495_637bfae6a2f7fcb8fd08da5c18932253.jpg', 'extension': 'jpg'}, 1332932490: {'path': 'temp/1738662509_3545601_1332932490_87bc005fe949be1b8f9856a0f84c9bca.jpg', 'extension': 'jpg'}} map_subphoto_mainphoto : {} beginning of datou step ventilate_hashtags_in_portfolio : To implement ! Iterating over portfolio : 20067960 get user id for portfolio 20067960 get sub ptf for main ptf 20067960, type 4857 and hashtags ['papier', 'carton', 'metal', 'pet_clair', 'pehd', 'flux_dev', 'film_dev_souple', 'ela', 'sac_om_plein', 'textiles', 'verre', 'organique', 'dasri', 'masque', 'encombrant', 'autre_non_emballage', 'environnement', 'mal_croppe', 'flou', 'pet_fonce', 'pet_opaque', 'barquette_opaque', 'film_plastique', 'autre_emballage', 'sac'] SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20067960 AND mptpi.`type`=4857 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('papier','carton','metal','pet_clair','pehd','flux_dev','film_dev_souple','ela','sac_om_plein','textiles','verre','organique','dasri','masque','encombrant','autre_non_emballage','environnement','mal_croppe','flou','pet_fonce','pet_opaque','barquette_opaque','film_plastique','autre_emballage','sac')) AND mptpi.`min_score`=0.1 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20067960 AND mptpi.`type`=4857 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('papier','carton','metal','pet_clair','pehd','flux_dev','film_dev_souple','ela','sac_om_plein','textiles','verre','organique','dasri','masque','encombrant','autre_non_emballage','environnement','mal_croppe','flou','pet_fonce','pet_opaque','barquette_opaque','film_plastique','autre_emballage','sac')) AND mptpi.`min_score`=0.1 To do returned map {'papier': {'main_port_id': 20067960, 'sub_port_id': 20095193, 'hashtag': 'papier', 'pht': 4857, 'min_score': 0.1, 'mtr_user_id': 775, 'id': 12814296, 'last_updated_at': datetime.datetime(2025, 2, 4, 10, 48, 49), 'last_updated_at_desc': datetime.datetime(2025, 2, 3, 10, 10, 56), 'last_updated_at_asc': datetime.datetime(2025, 2, 4, 10, 48, 49)}, 'carton': {'main_port_id': 20067960, 'sub_port_id': 20095194, 'hashtag': 'carton', 'pht': 4857, 'min_score': 0.1, 'mtr_user_id': 775, 'id': 12814297, 'last_updated_at': datetime.datetime(2025, 2, 4, 10, 48, 49), 'last_updated_at_desc': datetime.datetime(2025, 2, 3, 10, 10, 56), 'last_updated_at_asc': datetime.datetime(2025, 2, 4, 10, 48, 49)}, 'metal': {'main_port_id': 20067960, 'sub_port_id': 20095195, 'hashtag': 'metal', 'pht': 4857, 'min_score': 0.1, 'mtr_user_id': 775, 'id': 12814298, 'last_updated_at': datetime.datetime(2025, 2, 4, 10, 48, 49), 'last_updated_at_desc': datetime.datetime(2025, 2, 3, 10, 10, 56), 'last_updated_at_asc': datetime.datetime(2025, 2, 4, 10, 48, 49)}, 'pet_clair': {'main_port_id': 20067960, 'sub_port_id': 20095196, 'hashtag': 'pet_clair', 'pht': 4857, 'min_score': 0.1, 'mtr_user_id': 775, 'id': 12814299, 'last_updated_at': datetime.datetime(2025, 2, 4, 10, 48, 49), 'last_updated_at_desc': datetime.datetime(2025, 2, 3, 10, 10, 56), 'last_updated_at_asc': datetime.datetime(2025, 2, 4, 10, 48, 49)}, 'pehd': {'main_port_id': 20067960, 'sub_port_id': 20095197, 'hashtag': 'pehd', 'pht': 4857, 'min_score': 0.1, 'mtr_user_id': 775, 'id': 12814300, 'last_updated_at': datetime.datetime(2025, 2, 4, 10, 48, 49), 'last_updated_at_desc': datetime.datetime(2025, 2, 3, 10, 10, 56), 'last_updated_at_asc': datetime.datetime(2025, 2, 4, 10, 48, 49)}, 'flux_dev': {'main_port_id': 20067960, 'sub_port_id': 20095198, 'hashtag': 'flux_dev', 'pht': 4857, 'min_score': 0.1, 'mtr_user_id': 775, 'id': 12814301, 'last_updated_at': datetime.datetime(2025, 2, 4, 10, 48, 49), 'last_updated_at_desc': datetime.datetime(2025, 2, 3, 10, 10, 56), 'last_updated_at_asc': datetime.datetime(2025, 2, 4, 10, 48, 49)}, 'film_dev_souple': {'main_port_id': 20067960, 'sub_port_id': 20095199, 'hashtag': 'film_dev_souple', 'pht': 4857, 'min_score': 0.1, 'mtr_user_id': 775, 'id': 12814302, 'last_updated_at': datetime.datetime(2025, 2, 4, 10, 48, 49), 'last_updated_at_desc': datetime.datetime(2025, 2, 3, 10, 10, 56), 'last_updated_at_asc': datetime.datetime(2025, 2, 4, 10, 48, 49)}, 'ela': {'main_port_id': 20067960, 'sub_port_id': 20095200, 'hashtag': 'ela', 'pht': 4857, 'min_score': 0.1, 'mtr_user_id': 775, 'id': 12814303, 'last_updated_at': datetime.datetime(2025, 2, 4, 10, 48, 49), 'last_updated_at_desc': datetime.datetime(2025, 2, 3, 10, 10, 56), 'last_updated_at_asc': datetime.datetime(2025, 2, 4, 10, 48, 49)}, 'sac_om_plein': {'main_port_id': 20067960, 'sub_port_id': 20095201, 'hashtag': 'sac_om_plein', 'pht': 4857, 'min_score': 0.1, 'mtr_user_id': 775, 'id': 12814304, 'last_updated_at': datetime.datetime(2025, 2, 4, 10, 48, 49), 'last_updated_at_desc': datetime.datetime(2025, 2, 3, 10, 10, 56), 'last_updated_at_asc': datetime.datetime(2025, 2, 4, 10, 48, 49)}, 'textiles': {'main_port_id': 20067960, 'sub_port_id': 20095202, 'hashtag': 'textiles', 'pht': 4857, 'min_score': 0.1, 'mtr_user_id': 775, 'id': 12814305, 'last_updated_at': datetime.datetime(2025, 2, 4, 10, 48, 49), 'last_updated_at_desc': datetime.datetime(2025, 2, 3, 10, 10, 56), 'last_updated_at_asc': datetime.datetime(2025, 2, 4, 10, 48, 49)}, 'verre': {'main_port_id': 20067960, 'sub_port_id': 20095203, 'hashtag': 'verre', 'pht': 4857, 'min_score': 0.1, 'mtr_user_id': 775, 'id': 12814306, 'last_updated_at': datetime.datetime(2025, 2, 4, 10, 48, 49), 'last_updated_at_desc': datetime.datetime(2025, 2, 3, 10, 10, 56), 'last_updated_at_asc': datetime.datetime(2025, 2, 4, 10, 48, 49)}, 'organique': {'main_port_id': 20067960, 'sub_port_id': 20095204, 'hashtag': 'organique', 'pht': 4857, 'min_score': 0.1, 'mtr_user_id': 775, 'id': 12814307, 'last_updated_at': datetime.datetime(2025, 2, 4, 10, 48, 49), 'last_updated_at_desc': datetime.datetime(2025, 2, 3, 10, 10, 56), 'last_updated_at_asc': datetime.datetime(2025, 2, 4, 10, 48, 49)}, 'dasri': {'main_port_id': 20067960, 'sub_port_id': 20095205, 'hashtag': 'dasri', 'pht': 4857, 'min_score': 0.1, 'mtr_user_id': 775, 'id': 12814308, 'last_updated_at': datetime.datetime(2025, 2, 4, 10, 48, 49), 'last_updated_at_desc': datetime.datetime(2025, 2, 3, 10, 10, 56), 'last_updated_at_asc': datetime.datetime(2025, 2, 4, 10, 48, 49)}, 'masque': {'main_port_id': 20067960, 'sub_port_id': 20095206, 'hashtag': 'masque', 'pht': 4857, 'min_score': 0.1, 'mtr_user_id': 775, 'id': 12814309, 'last_updated_at': datetime.datetime(2025, 2, 4, 10, 48, 49), 'last_updated_at_desc': datetime.datetime(2025, 2, 3, 10, 10, 56), 'last_updated_at_asc': datetime.datetime(2025, 2, 4, 10, 48, 49)}, 'encombrant': {'main_port_id': 20067960, 'sub_port_id': 20095207, 'hashtag': 'encombrant', 'pht': 4857, 'min_score': 0.1, 'mtr_user_id': 775, 'id': 12814310, 'last_updated_at': datetime.datetime(2025, 2, 4, 10, 48, 49), 'last_updated_at_desc': datetime.datetime(2025, 2, 3, 10, 10, 56), 'last_updated_at_asc': datetime.datetime(2025, 2, 4, 10, 48, 49)}, 'autre_non_emballage': {'main_port_id': 20067960, 'sub_port_id': 20095208, 'hashtag': 'autre_non_emballage', 'pht': 4857, 'min_score': 0.1, 'mtr_user_id': 775, 'id': 12814311, 'last_updated_at': datetime.datetime(2025, 2, 4, 10, 48, 49), 'last_updated_at_desc': datetime.datetime(2025, 2, 3, 10, 10, 56), 'last_updated_at_asc': datetime.datetime(2025, 2, 4, 10, 48, 49)}, 'environnement': {'main_port_id': 20067960, 'sub_port_id': 20095209, 'hashtag': 'environnement', 'pht': 4857, 'min_score': 0.1, 'mtr_user_id': 775, 'id': 12814312, 'last_updated_at': datetime.datetime(2025, 2, 4, 10, 48, 49), 'last_updated_at_desc': datetime.datetime(2025, 2, 3, 10, 10, 56), 'last_updated_at_asc': datetime.datetime(2025, 2, 4, 10, 48, 49)}, 'mal_croppe': {'main_port_id': 20067960, 'sub_port_id': 20095210, 'hashtag': 'mal_croppe', 'pht': 4857, 'min_score': 0.1, 'mtr_user_id': 775, 'id': 12814313, 'last_updated_at': datetime.datetime(2025, 2, 4, 10, 48, 49), 'last_updated_at_desc': datetime.datetime(2025, 2, 3, 10, 10, 56), 'last_updated_at_asc': datetime.datetime(2025, 2, 4, 10, 48, 49)}, 'flou': {'main_port_id': 20067960, 'sub_port_id': 20095211, 'hashtag': 'flou', 'pht': 4857, 'min_score': 0.1, 'mtr_user_id': 775, 'id': 12814314, 'last_updated_at': datetime.datetime(2025, 2, 4, 10, 48, 49), 'last_updated_at_desc': datetime.datetime(2025, 2, 3, 10, 10, 56), 'last_updated_at_asc': datetime.datetime(2025, 2, 4, 10, 48, 49)}, 'pet_fonce': {'main_port_id': 20067960, 'sub_port_id': 20095212, 'hashtag': 'pet_fonce', 'pht': 4857, 'min_score': 0.1, 'mtr_user_id': 775, 'id': 12814315, 'last_updated_at': datetime.datetime(2025, 2, 3, 10, 10, 56), 'last_updated_at_desc': datetime.datetime(2025, 2, 3, 10, 10, 56), 'last_updated_at_asc': datetime.datetime(2025, 1, 31, 4, 12, 48)}, 'pet_opaque': {'main_port_id': 20067960, 'sub_port_id': 20095213, 'hashtag': 'pet_opaque', 'pht': 4857, 'min_score': 0.1, 'mtr_user_id': 775, 'id': 12814316, 'last_updated_at': datetime.datetime(2025, 2, 3, 10, 10, 56), 'last_updated_at_desc': datetime.datetime(2025, 2, 3, 10, 10, 56), 'last_updated_at_asc': datetime.datetime(2025, 1, 31, 4, 12, 48)}, 'barquette_opaque': {'main_port_id': 20067960, 'sub_port_id': 20095214, 'hashtag': 'barquette_opaque', 'pht': 4857, 'min_score': 0.1, 'mtr_user_id': 775, 'id': 12814317, 'last_updated_at': datetime.datetime(2025, 2, 3, 10, 10, 56), 'last_updated_at_desc': datetime.datetime(2025, 2, 3, 10, 10, 56), 'last_updated_at_asc': datetime.datetime(2025, 1, 31, 4, 12, 48)}, 'film_plastique': {'main_port_id': 20067960, 'sub_port_id': 20095215, 'hashtag': 'film_plastique', 'pht': 4857, 'min_score': 0.1, 'mtr_user_id': 775, 'id': 12814318, 'last_updated_at': datetime.datetime(2025, 2, 3, 10, 10, 56), 'last_updated_at_desc': datetime.datetime(2025, 2, 3, 10, 10, 56), 'last_updated_at_asc': datetime.datetime(2025, 1, 31, 4, 12, 48)}, 'autre_emballage': {'main_port_id': 20067960, 'sub_port_id': 20095216, 'hashtag': 'autre_emballage', 'pht': 4857, 'min_score': 0.1, 'mtr_user_id': 775, 'id': 12814319, 'last_updated_at': datetime.datetime(2025, 2, 3, 10, 10, 56), 'last_updated_at_desc': datetime.datetime(2025, 2, 3, 10, 10, 56), 'last_updated_at_asc': datetime.datetime(2025, 1, 31, 4, 12, 48)}, 'sac': {'main_port_id': 20067960, 'sub_port_id': 20095217, 'hashtag': 'sac', 'pht': 4857, 'min_score': 0.1, 'mtr_user_id': 775, 'id': 12814320, 'last_updated_at': datetime.datetime(2025, 2, 3, 10, 10, 56), 'last_updated_at_desc': datetime.datetime(2025, 2, 3, 10, 10, 56), 'last_updated_at_asc': datetime.datetime(2025, 1, 31, 4, 12, 48)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20095193 , sub_photo_id, 775,now() FROM (SELECT csp.sub_photo_id, csp.crop_hashtag_id, csp.created_at FROM MTRPhoto.crop_sub_photo_ids csp, MTRPhoto.crop_hashtag_ids chi, MTRBack.hashtags h, MTRUser.mtr_portfolio_photos mpp WHERE mpp.mtr_portfolio_id=20067960 AND mpp.mtr_photo_id=chi.photo_id AND chi.id=csp.crop_hashtag_id AND chi.score>0.1 AND chi.type=4857 AND chi.hashtag_id=h.hashtag_id AND h.hashtag='papier' GROUP BY csp.crop_hashtag_id, csp.created_at order by csp.created_at desc) as a group by crop_hashtag_id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20095194 , sub_photo_id, 775,now() FROM (SELECT csp.sub_photo_id, csp.crop_hashtag_id, csp.created_at FROM MTRPhoto.crop_sub_photo_ids csp, MTRPhoto.crop_hashtag_ids chi, MTRBack.hashtags h, MTRUser.mtr_portfolio_photos mpp WHERE mpp.mtr_portfolio_id=20067960 AND mpp.mtr_photo_id=chi.photo_id AND chi.id=csp.crop_hashtag_id AND chi.score>0.1 AND chi.type=4857 AND chi.hashtag_id=h.hashtag_id AND h.hashtag='carton' GROUP BY csp.crop_hashtag_id, csp.created_at order by csp.created_at desc) as a group by crop_hashtag_id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20095195 , sub_photo_id, 775,now() FROM (SELECT csp.sub_photo_id, csp.crop_hashtag_id, csp.created_at FROM MTRPhoto.crop_sub_photo_ids csp, MTRPhoto.crop_hashtag_ids chi, MTRBack.hashtags h, MTRUser.mtr_portfolio_photos mpp WHERE mpp.mtr_portfolio_id=20067960 AND mpp.mtr_photo_id=chi.photo_id AND chi.id=csp.crop_hashtag_id AND chi.score>0.1 AND chi.type=4857 AND chi.hashtag_id=h.hashtag_id AND h.hashtag='metal' GROUP BY csp.crop_hashtag_id, csp.created_at order by csp.created_at desc) as a group by crop_hashtag_id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20095196 , sub_photo_id, 775,now() FROM (SELECT csp.sub_photo_id, csp.crop_hashtag_id, csp.created_at FROM MTRPhoto.crop_sub_photo_ids csp, MTRPhoto.crop_hashtag_ids chi, MTRBack.hashtags h, MTRUser.mtr_portfolio_photos mpp WHERE mpp.mtr_portfolio_id=20067960 AND mpp.mtr_photo_id=chi.photo_id AND chi.id=csp.crop_hashtag_id AND chi.score>0.1 AND chi.type=4857 AND chi.hashtag_id=h.hashtag_id AND h.hashtag='pet_clair' GROUP BY csp.crop_hashtag_id, csp.created_at order by csp.created_at desc) as a group by crop_hashtag_id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20095197 , sub_photo_id, 775,now() FROM (SELECT csp.sub_photo_id, csp.crop_hashtag_id, csp.created_at FROM MTRPhoto.crop_sub_photo_ids csp, MTRPhoto.crop_hashtag_ids chi, MTRBack.hashtags h, MTRUser.mtr_portfolio_photos mpp WHERE mpp.mtr_portfolio_id=20067960 AND mpp.mtr_photo_id=chi.photo_id AND chi.id=csp.crop_hashtag_id AND chi.score>0.1 AND chi.type=4857 AND chi.hashtag_id=h.hashtag_id AND h.hashtag='pehd' GROUP BY csp.crop_hashtag_id, csp.created_at order by csp.created_at desc) as a group by crop_hashtag_id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20095198 , sub_photo_id, 775,now() FROM (SELECT csp.sub_photo_id, csp.crop_hashtag_id, csp.created_at FROM MTRPhoto.crop_sub_photo_ids csp, MTRPhoto.crop_hashtag_ids chi, MTRBack.hashtags h, MTRUser.mtr_portfolio_photos mpp WHERE mpp.mtr_portfolio_id=20067960 AND mpp.mtr_photo_id=chi.photo_id AND chi.id=csp.crop_hashtag_id AND chi.score>0.1 AND chi.type=4857 AND chi.hashtag_id=h.hashtag_id AND h.hashtag='flux_dev' GROUP BY csp.crop_hashtag_id, csp.created_at order by csp.created_at desc) as a group by crop_hashtag_id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20095199 , sub_photo_id, 775,now() FROM (SELECT csp.sub_photo_id, csp.crop_hashtag_id, csp.created_at FROM MTRPhoto.crop_sub_photo_ids csp, MTRPhoto.crop_hashtag_ids chi, MTRBack.hashtags h, MTRUser.mtr_portfolio_photos mpp WHERE mpp.mtr_portfolio_id=20067960 AND mpp.mtr_photo_id=chi.photo_id AND chi.id=csp.crop_hashtag_id AND chi.score>0.1 AND chi.type=4857 AND chi.hashtag_id=h.hashtag_id AND h.hashtag='film_dev_souple' GROUP BY csp.crop_hashtag_id, csp.created_at order by csp.created_at desc) as a group by crop_hashtag_id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20095200 , sub_photo_id, 775,now() FROM (SELECT csp.sub_photo_id, csp.crop_hashtag_id, csp.created_at FROM MTRPhoto.crop_sub_photo_ids csp, MTRPhoto.crop_hashtag_ids chi, MTRBack.hashtags h, MTRUser.mtr_portfolio_photos mpp WHERE mpp.mtr_portfolio_id=20067960 AND mpp.mtr_photo_id=chi.photo_id AND chi.id=csp.crop_hashtag_id AND chi.score>0.1 AND chi.type=4857 AND chi.hashtag_id=h.hashtag_id AND h.hashtag='ela' GROUP BY csp.crop_hashtag_id, csp.created_at order by csp.created_at desc) as a group by crop_hashtag_id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20095201 , sub_photo_id, 775,now() FROM (SELECT csp.sub_photo_id, csp.crop_hashtag_id, csp.created_at FROM MTRPhoto.crop_sub_photo_ids csp, MTRPhoto.crop_hashtag_ids chi, MTRBack.hashtags h, MTRUser.mtr_portfolio_photos mpp WHERE mpp.mtr_portfolio_id=20067960 AND mpp.mtr_photo_id=chi.photo_id AND chi.id=csp.crop_hashtag_id AND chi.score>0.1 AND chi.type=4857 AND chi.hashtag_id=h.hashtag_id AND h.hashtag='sac_om_plein' GROUP BY csp.crop_hashtag_id, csp.created_at order by csp.created_at desc) as a group by crop_hashtag_id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20095202 , sub_photo_id, 775,now() FROM (SELECT csp.sub_photo_id, csp.crop_hashtag_id, csp.created_at FROM MTRPhoto.crop_sub_photo_ids csp, MTRPhoto.crop_hashtag_ids chi, MTRBack.hashtags h, MTRUser.mtr_portfolio_photos mpp WHERE mpp.mtr_portfolio_id=20067960 AND mpp.mtr_photo_id=chi.photo_id AND chi.id=csp.crop_hashtag_id AND chi.score>0.1 AND chi.type=4857 AND chi.hashtag_id=h.hashtag_id AND h.hashtag='textiles' GROUP BY csp.crop_hashtag_id, csp.created_at order by csp.created_at desc) as a group by crop_hashtag_id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20095203 , sub_photo_id, 775,now() FROM (SELECT csp.sub_photo_id, csp.crop_hashtag_id, csp.created_at FROM MTRPhoto.crop_sub_photo_ids csp, MTRPhoto.crop_hashtag_ids chi, MTRBack.hashtags h, MTRUser.mtr_portfolio_photos mpp WHERE mpp.mtr_portfolio_id=20067960 AND mpp.mtr_photo_id=chi.photo_id AND chi.id=csp.crop_hashtag_id AND chi.score>0.1 AND chi.type=4857 AND chi.hashtag_id=h.hashtag_id AND h.hashtag='verre' GROUP BY csp.crop_hashtag_id, csp.created_at order by csp.created_at desc) as a group by crop_hashtag_id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20095204 , sub_photo_id, 775,now() FROM (SELECT csp.sub_photo_id, csp.crop_hashtag_id, csp.created_at FROM MTRPhoto.crop_sub_photo_ids csp, MTRPhoto.crop_hashtag_ids chi, MTRBack.hashtags h, MTRUser.mtr_portfolio_photos mpp WHERE mpp.mtr_portfolio_id=20067960 AND mpp.mtr_photo_id=chi.photo_id AND chi.id=csp.crop_hashtag_id AND chi.score>0.1 AND chi.type=4857 AND chi.hashtag_id=h.hashtag_id AND h.hashtag='organique' GROUP BY csp.crop_hashtag_id, csp.created_at order by csp.created_at desc) as a group by crop_hashtag_id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20095205 , sub_photo_id, 775,now() FROM (SELECT csp.sub_photo_id, csp.crop_hashtag_id, csp.created_at FROM MTRPhoto.crop_sub_photo_ids csp, MTRPhoto.crop_hashtag_ids chi, MTRBack.hashtags h, MTRUser.mtr_portfolio_photos mpp WHERE mpp.mtr_portfolio_id=20067960 AND mpp.mtr_photo_id=chi.photo_id AND chi.id=csp.crop_hashtag_id AND chi.score>0.1 AND chi.type=4857 AND chi.hashtag_id=h.hashtag_id AND h.hashtag='dasri' GROUP BY csp.crop_hashtag_id, csp.created_at order by csp.created_at desc) as a group by crop_hashtag_id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20095206 , sub_photo_id, 775,now() FROM (SELECT csp.sub_photo_id, csp.crop_hashtag_id, csp.created_at FROM MTRPhoto.crop_sub_photo_ids csp, MTRPhoto.crop_hashtag_ids chi, MTRBack.hashtags h, MTRUser.mtr_portfolio_photos mpp WHERE mpp.mtr_portfolio_id=20067960 AND mpp.mtr_photo_id=chi.photo_id AND chi.id=csp.crop_hashtag_id AND chi.score>0.1 AND chi.type=4857 AND chi.hashtag_id=h.hashtag_id AND h.hashtag='masque' GROUP BY csp.crop_hashtag_id, csp.created_at order by csp.created_at desc) as a group by crop_hashtag_id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20095207 , sub_photo_id, 775,now() FROM (SELECT csp.sub_photo_id, csp.crop_hashtag_id, csp.created_at FROM MTRPhoto.crop_sub_photo_ids csp, MTRPhoto.crop_hashtag_ids chi, MTRBack.hashtags h, MTRUser.mtr_portfolio_photos mpp WHERE mpp.mtr_portfolio_id=20067960 AND mpp.mtr_photo_id=chi.photo_id AND chi.id=csp.crop_hashtag_id AND chi.score>0.1 AND chi.type=4857 AND chi.hashtag_id=h.hashtag_id AND h.hashtag='encombrant' GROUP BY csp.crop_hashtag_id, csp.created_at order by csp.created_at desc) as a group by crop_hashtag_id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20095208 , sub_photo_id, 775,now() FROM (SELECT csp.sub_photo_id, csp.crop_hashtag_id, csp.created_at FROM MTRPhoto.crop_sub_photo_ids csp, MTRPhoto.crop_hashtag_ids chi, MTRBack.hashtags h, MTRUser.mtr_portfolio_photos mpp WHERE mpp.mtr_portfolio_id=20067960 AND mpp.mtr_photo_id=chi.photo_id AND chi.id=csp.crop_hashtag_id AND chi.score>0.1 AND chi.type=4857 AND chi.hashtag_id=h.hashtag_id AND h.hashtag='autre_non_emballage' GROUP BY csp.crop_hashtag_id, csp.created_at order by csp.created_at desc) as a group by crop_hashtag_id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20095209 , sub_photo_id, 775,now() FROM (SELECT csp.sub_photo_id, csp.crop_hashtag_id, csp.created_at FROM MTRPhoto.crop_sub_photo_ids csp, MTRPhoto.crop_hashtag_ids chi, MTRBack.hashtags h, MTRUser.mtr_portfolio_photos mpp WHERE mpp.mtr_portfolio_id=20067960 AND mpp.mtr_photo_id=chi.photo_id AND chi.id=csp.crop_hashtag_id AND chi.score>0.1 AND chi.type=4857 AND chi.hashtag_id=h.hashtag_id AND h.hashtag='environnement' GROUP BY csp.crop_hashtag_id, csp.created_at order by csp.created_at desc) as a group by crop_hashtag_id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20095210 , sub_photo_id, 775,now() FROM (SELECT csp.sub_photo_id, csp.crop_hashtag_id, csp.created_at FROM MTRPhoto.crop_sub_photo_ids csp, MTRPhoto.crop_hashtag_ids chi, MTRBack.hashtags h, MTRUser.mtr_portfolio_photos mpp WHERE mpp.mtr_portfolio_id=20067960 AND mpp.mtr_photo_id=chi.photo_id AND chi.id=csp.crop_hashtag_id AND chi.score>0.1 AND chi.type=4857 AND chi.hashtag_id=h.hashtag_id AND h.hashtag='mal_croppe' GROUP BY csp.crop_hashtag_id, csp.created_at order by csp.created_at desc) as a group by crop_hashtag_id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20095211 , sub_photo_id, 775,now() FROM (SELECT csp.sub_photo_id, csp.crop_hashtag_id, csp.created_at FROM MTRPhoto.crop_sub_photo_ids csp, MTRPhoto.crop_hashtag_ids chi, MTRBack.hashtags h, MTRUser.mtr_portfolio_photos mpp WHERE mpp.mtr_portfolio_id=20067960 AND mpp.mtr_photo_id=chi.photo_id AND chi.id=csp.crop_hashtag_id AND chi.score>0.1 AND chi.type=4857 AND chi.hashtag_id=h.hashtag_id AND h.hashtag='flou' GROUP BY csp.crop_hashtag_id, csp.created_at order by csp.created_at desc) as a group by crop_hashtag_id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20095212 , sub_photo_id, 775,now() FROM (SELECT csp.sub_photo_id, csp.crop_hashtag_id, csp.created_at FROM MTRPhoto.crop_sub_photo_ids csp, MTRPhoto.crop_hashtag_ids chi, MTRBack.hashtags h, MTRUser.mtr_portfolio_photos mpp WHERE mpp.mtr_portfolio_id=20067960 AND mpp.mtr_photo_id=chi.photo_id AND chi.id=csp.crop_hashtag_id AND chi.score>0.1 AND chi.type=4857 AND chi.hashtag_id=h.hashtag_id AND h.hashtag='pet_fonce' GROUP BY csp.crop_hashtag_id, csp.created_at order by csp.created_at desc) as a group by crop_hashtag_id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20095213 , sub_photo_id, 775,now() FROM (SELECT csp.sub_photo_id, csp.crop_hashtag_id, csp.created_at FROM MTRPhoto.crop_sub_photo_ids csp, MTRPhoto.crop_hashtag_ids chi, MTRBack.hashtags h, MTRUser.mtr_portfolio_photos mpp WHERE mpp.mtr_portfolio_id=20067960 AND mpp.mtr_photo_id=chi.photo_id AND chi.id=csp.crop_hashtag_id AND chi.score>0.1 AND chi.type=4857 AND chi.hashtag_id=h.hashtag_id AND h.hashtag='pet_opaque' GROUP BY csp.crop_hashtag_id, csp.created_at order by csp.created_at desc) as a group by crop_hashtag_id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20095214 , sub_photo_id, 775,now() FROM (SELECT csp.sub_photo_id, csp.crop_hashtag_id, csp.created_at FROM MTRPhoto.crop_sub_photo_ids csp, MTRPhoto.crop_hashtag_ids chi, MTRBack.hashtags h, MTRUser.mtr_portfolio_photos mpp WHERE mpp.mtr_portfolio_id=20067960 AND mpp.mtr_photo_id=chi.photo_id AND chi.id=csp.crop_hashtag_id AND chi.score>0.1 AND chi.type=4857 AND chi.hashtag_id=h.hashtag_id AND h.hashtag='barquette_opaque' GROUP BY csp.crop_hashtag_id, csp.created_at order by csp.created_at desc) as a group by crop_hashtag_id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20095215 , sub_photo_id, 775,now() FROM (SELECT csp.sub_photo_id, csp.crop_hashtag_id, csp.created_at FROM MTRPhoto.crop_sub_photo_ids csp, MTRPhoto.crop_hashtag_ids chi, MTRBack.hashtags h, MTRUser.mtr_portfolio_photos mpp WHERE mpp.mtr_portfolio_id=20067960 AND mpp.mtr_photo_id=chi.photo_id AND chi.id=csp.crop_hashtag_id AND chi.score>0.1 AND chi.type=4857 AND chi.hashtag_id=h.hashtag_id AND h.hashtag='film_plastique' GROUP BY csp.crop_hashtag_id, csp.created_at order by csp.created_at desc) as a group by crop_hashtag_id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20095216 , sub_photo_id, 775,now() FROM (SELECT csp.sub_photo_id, csp.crop_hashtag_id, csp.created_at FROM MTRPhoto.crop_sub_photo_ids csp, MTRPhoto.crop_hashtag_ids chi, MTRBack.hashtags h, MTRUser.mtr_portfolio_photos mpp WHERE mpp.mtr_portfolio_id=20067960 AND mpp.mtr_photo_id=chi.photo_id AND chi.id=csp.crop_hashtag_id AND chi.score>0.1 AND chi.type=4857 AND chi.hashtag_id=h.hashtag_id AND h.hashtag='autre_emballage' GROUP BY csp.crop_hashtag_id, csp.created_at order by csp.created_at desc) as a group by crop_hashtag_id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20095217 , sub_photo_id, 775,now() FROM (SELECT csp.sub_photo_id, csp.crop_hashtag_id, csp.created_at FROM MTRPhoto.crop_sub_photo_ids csp, MTRPhoto.crop_hashtag_ids chi, MTRBack.hashtags h, MTRUser.mtr_portfolio_photos mpp WHERE mpp.mtr_portfolio_id=20067960 AND mpp.mtr_photo_id=chi.photo_id AND chi.id=csp.crop_hashtag_id AND chi.score>0.1 AND chi.type=4857 AND chi.hashtag_id=h.hashtag_id AND h.hashtag='sac' GROUP BY csp.crop_hashtag_id, csp.created_at order by csp.created_at desc) as a group by crop_hashtag_id; To do ! Use context local managing function ! SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20067960 AND mptpi.`type`=4856 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('papier','carton','metal','pet_clair','pehd','flux_dev','film_dev_souple','ela','sac_om_plein','textiles','verre','organique','dasri','masque','encombrant','autre_non_emballage','environnement','mal_croppe','flou','pet_fonce','pet_opaque','barquette_opaque','film_plastique','autre_emballage','sac')) AND mptpi.`min_score`=0.1 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20067960 AND mptpi.`type`=4856 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('papier','carton','metal','pet_clair','pehd','flux_dev','film_dev_souple','ela','sac_om_plein','textiles','verre','organique','dasri','masque','encombrant','autre_non_emballage','environnement','mal_croppe','flou','pet_fonce','pet_opaque','barquette_opaque','film_plastique','autre_emballage','sac')) AND mptpi.`min_score`=0.1 To do returned map {'papier': {'main_port_id': 20067960, 'sub_port_id': 20071221, 'hashtag': 'papier', 'pht': 4856, 'min_score': 0.1, 'mtr_user_id': 775, 'id': 12793979, 'last_updated_at': datetime.datetime(2025, 2, 4, 10, 48, 49), 'last_updated_at_desc': datetime.datetime(2025, 1, 30, 10, 49, 13), 'last_updated_at_asc': datetime.datetime(2025, 2, 4, 10, 48, 49)}, 'carton': {'main_port_id': 20067960, 'sub_port_id': 20071222, 'hashtag': 'carton', 'pht': 4856, 'min_score': 0.1, 'mtr_user_id': 775, 'id': 12793980, 'last_updated_at': datetime.datetime(2025, 2, 4, 10, 48, 49), 'last_updated_at_desc': datetime.datetime(2025, 1, 30, 10, 49, 13), 'last_updated_at_asc': datetime.datetime(2025, 2, 4, 10, 48, 49)}, 'metal': {'main_port_id': 20067960, 'sub_port_id': 20071223, 'hashtag': 'metal', 'pht': 4856, 'min_score': 0.1, 'mtr_user_id': 775, 'id': 12793981, 'last_updated_at': datetime.datetime(2025, 2, 4, 10, 48, 49), 'last_updated_at_desc': datetime.datetime(2025, 1, 30, 10, 49, 13), 'last_updated_at_asc': datetime.datetime(2025, 2, 4, 10, 48, 49)}, 'pet_clair': {'main_port_id': 20067960, 'sub_port_id': 20071224, 'hashtag': 'pet_clair', 'pht': 4856, 'min_score': 0.1, 'mtr_user_id': 775, 'id': 12793982, 'last_updated_at': datetime.datetime(2025, 2, 4, 10, 48, 49), 'last_updated_at_desc': datetime.datetime(2025, 1, 30, 10, 49, 13), 'last_updated_at_asc': datetime.datetime(2025, 2, 4, 10, 48, 49)}, 'pehd': {'main_port_id': 20067960, 'sub_port_id': 20071225, 'hashtag': 'pehd', 'pht': 4856, 'min_score': 0.1, 'mtr_user_id': 775, 'id': 12793983, 'last_updated_at': datetime.datetime(2025, 2, 4, 10, 48, 49), 'last_updated_at_desc': datetime.datetime(2025, 1, 30, 10, 49, 13), 'last_updated_at_asc': datetime.datetime(2025, 2, 4, 10, 48, 49)}, 'pet_fonce': {'main_port_id': 20067960, 'sub_port_id': 20071226, 'hashtag': 'pet_fonce', 'pht': 4856, 'min_score': 0.1, 'mtr_user_id': 775, 'id': 12793984, 'last_updated_at': datetime.datetime(2025, 1, 30, 10, 49, 13), 'last_updated_at_desc': datetime.datetime(2025, 1, 30, 10, 49, 13), 'last_updated_at_asc': datetime.datetime(2025, 1, 30, 10, 49, 13)}, 'pet_opaque': {'main_port_id': 20067960, 'sub_port_id': 20071227, 'hashtag': 'pet_opaque', 'pht': 4856, 'min_score': 0.1, 'mtr_user_id': 775, 'id': 12793985, 'last_updated_at': datetime.datetime(2025, 1, 30, 10, 49, 13), 'last_updated_at_desc': datetime.datetime(2025, 1, 30, 10, 49, 13), 'last_updated_at_asc': datetime.datetime(2025, 1, 30, 10, 49, 13)}, 'barquette_opaque': {'main_port_id': 20067960, 'sub_port_id': 20071228, 'hashtag': 'barquette_opaque', 'pht': 4856, 'min_score': 0.1, 'mtr_user_id': 775, 'id': 12793986, 'last_updated_at': datetime.datetime(2025, 1, 30, 10, 49, 13), 'last_updated_at_desc': datetime.datetime(2025, 1, 30, 10, 49, 13), 'last_updated_at_asc': datetime.datetime(2025, 1, 30, 10, 49, 13)}, 'film_plastique': {'main_port_id': 20067960, 'sub_port_id': 20071229, 'hashtag': 'film_plastique', 'pht': 4856, 'min_score': 0.1, 'mtr_user_id': 775, 'id': 12793987, 'last_updated_at': datetime.datetime(2025, 1, 30, 10, 49, 13), 'last_updated_at_desc': datetime.datetime(2025, 1, 30, 10, 49, 13), 'last_updated_at_asc': datetime.datetime(2025, 1, 30, 10, 49, 13)}, 'ela': {'main_port_id': 20067960, 'sub_port_id': 20071230, 'hashtag': 'ela', 'pht': 4856, 'min_score': 0.1, 'mtr_user_id': 775, 'id': 12793988, 'last_updated_at': datetime.datetime(2025, 2, 4, 10, 48, 49), 'last_updated_at_desc': datetime.datetime(2025, 1, 30, 10, 49, 13), 'last_updated_at_asc': datetime.datetime(2025, 2, 4, 10, 48, 49)}, 'sac': {'main_port_id': 20067960, 'sub_port_id': 20071231, 'hashtag': 'sac', 'pht': 4856, 'min_score': 0.1, 'mtr_user_id': 775, 'id': 12793989, 'last_updated_at': datetime.datetime(2025, 1, 30, 10, 49, 13), 'last_updated_at_desc': datetime.datetime(2025, 1, 30, 10, 49, 13), 'last_updated_at_asc': datetime.datetime(2025, 1, 30, 10, 49, 13)}, 'textiles': {'main_port_id': 20067960, 'sub_port_id': 20071232, 'hashtag': 'textiles', 'pht': 4856, 'min_score': 0.1, 'mtr_user_id': 775, 'id': 12793990, 'last_updated_at': datetime.datetime(2025, 2, 4, 10, 48, 49), 'last_updated_at_desc': datetime.datetime(2025, 1, 30, 10, 49, 13), 'last_updated_at_asc': datetime.datetime(2025, 2, 4, 10, 48, 49)}, 'verre': {'main_port_id': 20067960, 'sub_port_id': 20071233, 'hashtag': 'verre', 'pht': 4856, 'min_score': 0.1, 'mtr_user_id': 775, 'id': 12793991, 'last_updated_at': datetime.datetime(2025, 2, 4, 10, 48, 49), 'last_updated_at_desc': datetime.datetime(2025, 1, 30, 10, 49, 13), 'last_updated_at_asc': datetime.datetime(2025, 2, 4, 10, 48, 49)}, 'organique': {'main_port_id': 20067960, 'sub_port_id': 20071234, 'hashtag': 'organique', 'pht': 4856, 'min_score': 0.1, 'mtr_user_id': 775, 'id': 12793992, 'last_updated_at': datetime.datetime(2025, 2, 4, 10, 48, 49), 'last_updated_at_desc': datetime.datetime(2025, 1, 30, 10, 49, 13), 'last_updated_at_asc': datetime.datetime(2025, 2, 4, 10, 48, 49)}, 'dasri': {'main_port_id': 20067960, 'sub_port_id': 20071235, 'hashtag': 'dasri', 'pht': 4856, 'min_score': 0.1, 'mtr_user_id': 775, 'id': 12793993, 'last_updated_at': datetime.datetime(2025, 2, 4, 10, 48, 49), 'last_updated_at_desc': datetime.datetime(2025, 1, 30, 10, 49, 13), 'last_updated_at_asc': datetime.datetime(2025, 2, 4, 10, 48, 49)}, 'masque': {'main_port_id': 20067960, 'sub_port_id': 20071236, 'hashtag': 'masque', 'pht': 4856, 'min_score': 0.1, 'mtr_user_id': 775, 'id': 12793994, 'last_updated_at': datetime.datetime(2025, 2, 4, 10, 48, 49), 'last_updated_at_desc': datetime.datetime(2025, 1, 30, 10, 49, 13), 'last_updated_at_asc': datetime.datetime(2025, 2, 4, 10, 48, 49)}, 'encombrant': {'main_port_id': 20067960, 'sub_port_id': 20071237, 'hashtag': 'encombrant', 'pht': 4856, 'min_score': 0.1, 'mtr_user_id': 775, 'id': 12793995, 'last_updated_at': datetime.datetime(2025, 2, 4, 10, 48, 49), 'last_updated_at_desc': datetime.datetime(2025, 1, 30, 10, 49, 13), 'last_updated_at_asc': datetime.datetime(2025, 2, 4, 10, 48, 49)}, 'autre_emballage': {'main_port_id': 20067960, 'sub_port_id': 20071238, 'hashtag': 'autre_emballage', 'pht': 4856, 'min_score': 0.1, 'mtr_user_id': 775, 'id': 12793996, 'last_updated_at': datetime.datetime(2025, 1, 30, 10, 49, 13), 'last_updated_at_desc': datetime.datetime(2025, 1, 30, 10, 49, 13), 'last_updated_at_asc': datetime.datetime(2025, 1, 30, 10, 49, 13)}, 'autre_non_emballage': {'main_port_id': 20067960, 'sub_port_id': 20071239, 'hashtag': 'autre_non_emballage', 'pht': 4856, 'min_score': 0.1, 'mtr_user_id': 775, 'id': 12793997, 'last_updated_at': datetime.datetime(2025, 2, 4, 10, 48, 49), 'last_updated_at_desc': datetime.datetime(2025, 1, 30, 10, 49, 13), 'last_updated_at_asc': datetime.datetime(2025, 2, 4, 10, 48, 49)}, 'environnement': {'main_port_id': 20067960, 'sub_port_id': 20071240, 'hashtag': 'environnement', 'pht': 4856, 'min_score': 0.1, 'mtr_user_id': 775, 'id': 12793998, 'last_updated_at': datetime.datetime(2025, 2, 4, 10, 48, 49), 'last_updated_at_desc': datetime.datetime(2025, 1, 30, 10, 49, 13), 'last_updated_at_asc': datetime.datetime(2025, 2, 4, 10, 48, 49)}, 'flux_dev': {'main_port_id': 20067960, 'sub_port_id': 20071242, 'hashtag': 'flux_dev', 'pht': 4856, 'min_score': 0.1, 'mtr_user_id': 775, 'id': 12794000, 'last_updated_at': datetime.datetime(2025, 2, 4, 10, 48, 49), 'last_updated_at_desc': datetime.datetime(2025, 1, 30, 10, 49, 13), 'last_updated_at_asc': datetime.datetime(2025, 2, 4, 10, 48, 49)}, 'mal_croppe': {'main_port_id': 20067960, 'sub_port_id': 20071243, 'hashtag': 'mal_croppe', 'pht': 4856, 'min_score': 0.1, 'mtr_user_id': 775, 'id': 12794001, 'last_updated_at': datetime.datetime(2025, 2, 4, 10, 48, 49), 'last_updated_at_desc': datetime.datetime(2025, 1, 30, 10, 49, 13), 'last_updated_at_asc': datetime.datetime(2025, 2, 4, 10, 48, 49)}, 'flou': {'main_port_id': 20067960, 'sub_port_id': 20071244, 'hashtag': 'flou', 'pht': 4856, 'min_score': 0.1, 'mtr_user_id': 775, 'id': 12794002, 'last_updated_at': datetime.datetime(2025, 2, 4, 10, 48, 49), 'last_updated_at_desc': datetime.datetime(2025, 1, 30, 10, 49, 13), 'last_updated_at_asc': datetime.datetime(2025, 2, 4, 10, 48, 49)}, 'film_dev_souple': {'main_port_id': 20067960, 'sub_port_id': 20071245, 'hashtag': 'film_dev_souple', 'pht': 4856, 'min_score': 0.1, 'mtr_user_id': 775, 'id': 12794003, 'last_updated_at': datetime.datetime(2025, 2, 4, 10, 48, 49), 'last_updated_at_desc': datetime.datetime(2025, 1, 30, 10, 49, 13), 'last_updated_at_asc': datetime.datetime(2025, 2, 4, 10, 48, 49)}, 'sac_om_plein': {'main_port_id': 20067960, 'sub_port_id': 20071246, 'hashtag': 'sac_om_plein', 'pht': 4856, 'min_score': 0.1, 'mtr_user_id': 775, 'id': 12794004, 'last_updated_at': datetime.datetime(2025, 2, 4, 10, 48, 49), 'last_updated_at_desc': datetime.datetime(2025, 2, 3, 10, 10, 56), 'last_updated_at_asc': datetime.datetime(2025, 2, 4, 10, 48, 49)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20071221,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20095193 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20071222,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20095194 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20071223,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20095195 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20071224,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20095196 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20071225,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20095197 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20071226,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20095212 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20071227,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20095213 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20071228,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20095214 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20071229,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20095215 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20071230,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20095200 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20071231,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20095217 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20071232,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20095202 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20071233,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20095203 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20071234,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20095204 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20071235,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20095205 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20071236,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20095206 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20071237,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20095207 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20071238,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20095216 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20071239,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20095208 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20071240,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20095209 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20071242,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20095198 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20071243,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20095210 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20071244,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20095211 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20071245,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20095199 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20071246,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20095201 insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id , mtr_user_id, created_at) select 20071242,mtr_photo_id,775,now() from MTRUser.mtr_portfolio_photos where hide_status = 0 and mtr_portfolio_id in (20071226); insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id , mtr_user_id, created_at) select 20071242,mtr_photo_id,775,now() from MTRUser.mtr_portfolio_photos where hide_status = 0 and mtr_portfolio_id in (20071227); insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id , mtr_user_id, created_at) select 20071242,mtr_photo_id,775,now() from MTRUser.mtr_portfolio_photos where hide_status = 0 and mtr_portfolio_id in (20071228); insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id , mtr_user_id, created_at) select 20071245,mtr_photo_id,775,now() from MTRUser.mtr_portfolio_photos where hide_status = 0 and mtr_portfolio_id in (20071229); insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id , mtr_user_id, created_at) select 20071246,mtr_photo_id,775,now() from MTRUser.mtr_portfolio_photos where hide_status = 0 and mtr_portfolio_id in (20071231); insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id , mtr_user_id, created_at) select 20071242,mtr_photo_id,775,now() from MTRUser.mtr_portfolio_photos where hide_status = 0 and mtr_portfolio_id in (20071238); lien utilise dans velours : https://www.fotonower.com/velours/20071221,20071222,20071223,20071224,20071225,20071230,20071232,20071233,20071234,20071235,20071236,20071237,20071239,20071240,20071242,20071243,20071244,20071245,20071246?tags=papier,carton,metal,pet_clair,pehd,ela,textiles,verre,organique,dasri,masque,encombrant,autre_non_emballage,environnement,flux_dev,mal_croppe,flou,film_dev_souple,sac_om_plein&datou_id_consolidate=4742&port_consolidate=20067960 After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([20067960]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1332932560, 1332932544, 1332932511, 1332932508, 1332932503, 1332932498, 1332932495, 1332932490] map_info['map_portfolio_photo'] : {20067960: [1332932560, 1332932544, 1332932511, 1332932508, 1332932503, 1332932498, 1332932495, 1332932490]} final : False mtd_id 4742 list_pids : [1332932560, 1332932544, 1332932511, 1332932508, 1332932503, 1332932498, 1332932495, 1332932490] Looping around the photos to save general results len do output : 1 /20067960. before output type Here is an output not treated by saveGeneral : Managing all output in save final without adding information in the mtr_datou_result ('4742', None, None, None, None, None, None, None, '2544296') ('4742', '20067960', '1332932560', None, None, None, None, None, '2544296') ('4742', None, None, None, None, None, None, None, '2544296') ('4742', '20067960', '1332932544', None, None, None, None, None, '2544296') ('4742', None, None, None, None, None, None, None, '2544296') ('4742', '20067960', '1332932511', None, None, None, None, None, '2544296') ('4742', None, None, None, None, None, None, None, '2544296') ('4742', '20067960', '1332932508', None, None, None, None, None, '2544296') ('4742', None, None, None, None, None, None, None, '2544296') ('4742', '20067960', '1332932503', None, None, None, None, None, '2544296') ('4742', None, None, None, None, None, None, None, '2544296') ('4742', '20067960', '1332932498', None, None, None, None, None, '2544296') ('4742', None, None, None, None, None, None, None, '2544296') ('4742', '20067960', '1332932495', None, None, None, None, None, '2544296') ('4742', None, None, None, None, None, None, None, '2544296') ('4742', '20067960', '1332932490', None, None, None, None, None, '2544296') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 9 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4742', None, '20067960', "{'papier': 20095193, 'carton': 20095194, 'metal': 20095195, 'pet_clair': 20095196, 'pehd': 20095197, 'flux_dev': 20095198, 'film_dev_souple': 20095199, 'ela': 20095200, 'sac_om_plein': 20095201, 'textiles': 20095202, 'verre': 20095203, 'organique': 20095204, 'dasri': 20095205, 'masque': 20095206, 'encombrant': 20095207, 'autre_non_emballage': 20095208, 'environnement': 20095209, 'mal_croppe': 20095210, 'flou': 20095211, 'pet_fonce': 20095212, 'pet_opaque': 20095213, 'barquette_opaque': 20095214, 'film_plastique': 20095215, 'autre_emballage': 20095216, 'sac': 20095217}", None, None, None, None, '2544296'), ('4742', '20067960', '1332932560', None, None, None, None, None, '2544296'), ('4742', '20067960', '1332932544', None, None, None, None, None, '2544296'), ('4742', '20067960', '1332932511', None, None, None, None, None, '2544296'), ('4742', '20067960', '1332932508', None, None, None, None, None, '2544296'), ('4742', '20067960', '1332932503', None, None, None, None, None, '2544296'), ('4742', '20067960', '1332932498', None, None, None, None, None, '2544296'), ('4742', '20067960', '1332932495', None, None, None, None, None, '2544296'), ('4742', '20067960', '1332932490', None, None, None, None, None, '2544296')] time used for this insertion : 0.013618707656860352 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.710381269454956 time spend to save output : 0.014133453369140625 total time spend for step 4 : 0.7245147228240967 step5:final Tue Feb 4 10:48:54 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! complete output_args for input 2 : {1332932560: (0.104601918808331, 'Should be the crop_list due to order', 0.0), 1332932544: (0.104601918808331, 'Should be the crop_list due to order', 0.06169977738190484), 1332932511: (0.104601918808331, 'Should be the crop_list due to order', 0.1611542876189892), 1332932508: (0.104601918808331, 'Should be the crop_list due to order', 0.1389736979200624), 1332932503: (0.104601918808331, 'Should be the crop_list due to order', 0.08117936458963618), 1332932498: (0.104601918808331, 'Should be the crop_list due to order', 0.23301954721201754), 1332932495: (0.104601918808331, 'Should be the crop_list due to order', 0.1607886757440379), 1332932490: (0.104601918808331, 'Should be the crop_list due to order', 0)} input_args_next_step : {1332932560: ()} output_args : {1332932560: (0.104601918808331, 'Should be the crop_list due to order', 0.0), 1332932544: (0.104601918808331, 'Should be the crop_list due to order', 0.06169977738190484), 1332932511: (0.104601918808331, 'Should be the crop_list due to order', 0.1611542876189892), 1332932508: (0.104601918808331, 'Should be the crop_list due to order', 0.1389736979200624), 1332932503: (0.104601918808331, 'Should be the crop_list due to order', 0.08117936458963618), 1332932498: (0.104601918808331, 'Should be the crop_list due to order', 0.23301954721201754), 1332932495: (0.104601918808331, 'Should be the crop_list due to order', 0.1607886757440379), 1332932490: (0.104601918808331, 'Should be the crop_list due to order', 0)} args : 1332932560 depend.output_id : 0 input_args_next_step : {1332932560: (0.104601918808331,), 1332932544: ()} output_args : {1332932560: (0.104601918808331, 'Should be the crop_list due to order', 0.0), 1332932544: (0.104601918808331, 'Should be the crop_list due to order', 0.06169977738190484), 1332932511: (0.104601918808331, 'Should be the crop_list due to order', 0.1611542876189892), 1332932508: (0.104601918808331, 'Should be the crop_list due to order', 0.1389736979200624), 1332932503: (0.104601918808331, 'Should be the crop_list due to order', 0.08117936458963618), 1332932498: (0.104601918808331, 'Should be the crop_list due to order', 0.23301954721201754), 1332932495: (0.104601918808331, 'Should be the crop_list due to order', 0.1607886757440379), 1332932490: (0.104601918808331, 'Should be the crop_list due to order', 0)} args : 1332932544 depend.output_id : 0 input_args_next_step : {1332932560: (0.104601918808331,), 1332932544: (0.104601918808331,), 1332932511: ()} output_args : {1332932560: (0.104601918808331, 'Should be the crop_list due to order', 0.0), 1332932544: (0.104601918808331, 'Should be the crop_list due to order', 0.06169977738190484), 1332932511: (0.104601918808331, 'Should be the crop_list due to order', 0.1611542876189892), 1332932508: (0.104601918808331, 'Should be the crop_list due to order', 0.1389736979200624), 1332932503: (0.104601918808331, 'Should be the crop_list due to order', 0.08117936458963618), 1332932498: (0.104601918808331, 'Should be the crop_list due to order', 0.23301954721201754), 1332932495: (0.104601918808331, 'Should be the crop_list due to order', 0.1607886757440379), 1332932490: (0.104601918808331, 'Should be the crop_list due to order', 0)} args : 1332932511 depend.output_id : 0 input_args_next_step : {1332932560: (0.104601918808331,), 1332932544: (0.104601918808331,), 1332932511: (0.104601918808331,), 1332932508: ()} output_args : {1332932560: (0.104601918808331, 'Should be the crop_list due to order', 0.0), 1332932544: (0.104601918808331, 'Should be the crop_list due to order', 0.06169977738190484), 1332932511: (0.104601918808331, 'Should be the crop_list due to order', 0.1611542876189892), 1332932508: (0.104601918808331, 'Should be the crop_list due to order', 0.1389736979200624), 1332932503: (0.104601918808331, 'Should be the crop_list due to order', 0.08117936458963618), 1332932498: (0.104601918808331, 'Should be the crop_list due to order', 0.23301954721201754), 1332932495: (0.104601918808331, 'Should be the crop_list due to order', 0.1607886757440379), 1332932490: (0.104601918808331, 'Should be the crop_list due to order', 0)} args : 1332932508 depend.output_id : 0 input_args_next_step : {1332932560: (0.104601918808331,), 1332932544: (0.104601918808331,), 1332932511: (0.104601918808331,), 1332932508: (0.104601918808331,), 1332932503: ()} output_args : {1332932560: (0.104601918808331, 'Should be the crop_list due to order', 0.0), 1332932544: (0.104601918808331, 'Should be the crop_list due to order', 0.06169977738190484), 1332932511: (0.104601918808331, 'Should be the crop_list due to order', 0.1611542876189892), 1332932508: (0.104601918808331, 'Should be the crop_list due to order', 0.1389736979200624), 1332932503: (0.104601918808331, 'Should be the crop_list due to order', 0.08117936458963618), 1332932498: (0.104601918808331, 'Should be the crop_list due to order', 0.23301954721201754), 1332932495: (0.104601918808331, 'Should be the crop_list due to order', 0.1607886757440379), 1332932490: (0.104601918808331, 'Should be the crop_list due to order', 0)} args : 1332932503 depend.output_id : 0 input_args_next_step : {1332932560: (0.104601918808331,), 1332932544: (0.104601918808331,), 1332932511: (0.104601918808331,), 1332932508: (0.104601918808331,), 1332932503: (0.104601918808331,), 1332932498: ()} output_args : {1332932560: (0.104601918808331, 'Should be the crop_list due to order', 0.0), 1332932544: (0.104601918808331, 'Should be the crop_list due to order', 0.06169977738190484), 1332932511: (0.104601918808331, 'Should be the crop_list due to order', 0.1611542876189892), 1332932508: (0.104601918808331, 'Should be the crop_list due to order', 0.1389736979200624), 1332932503: (0.104601918808331, 'Should be the crop_list due to order', 0.08117936458963618), 1332932498: (0.104601918808331, 'Should be the crop_list due to order', 0.23301954721201754), 1332932495: (0.104601918808331, 'Should be the crop_list due to order', 0.1607886757440379), 1332932490: (0.104601918808331, 'Should be the crop_list due to order', 0)} args : 1332932498 depend.output_id : 0 input_args_next_step : {1332932560: (0.104601918808331,), 1332932544: (0.104601918808331,), 1332932511: (0.104601918808331,), 1332932508: (0.104601918808331,), 1332932503: (0.104601918808331,), 1332932498: (0.104601918808331,), 1332932495: ()} output_args : {1332932560: (0.104601918808331, 'Should be the crop_list due to order', 0.0), 1332932544: (0.104601918808331, 'Should be the crop_list due to order', 0.06169977738190484), 1332932511: (0.104601918808331, 'Should be the crop_list due to order', 0.1611542876189892), 1332932508: (0.104601918808331, 'Should be the crop_list due to order', 0.1389736979200624), 1332932503: (0.104601918808331, 'Should be the crop_list due to order', 0.08117936458963618), 1332932498: (0.104601918808331, 'Should be the crop_list due to order', 0.23301954721201754), 1332932495: (0.104601918808331, 'Should be the crop_list due to order', 0.1607886757440379), 1332932490: (0.104601918808331, 'Should be the crop_list due to order', 0)} args : 1332932495 depend.output_id : 0 input_args_next_step : {1332932560: (0.104601918808331,), 1332932544: (0.104601918808331,), 1332932511: (0.104601918808331,), 1332932508: (0.104601918808331,), 1332932503: (0.104601918808331,), 1332932498: (0.104601918808331,), 1332932495: (0.104601918808331,), 1332932490: ()} output_args : {1332932560: (0.104601918808331, 'Should be the crop_list due to order', 0.0), 1332932544: (0.104601918808331, 'Should be the crop_list due to order', 0.06169977738190484), 1332932511: (0.104601918808331, 'Should be the crop_list due to order', 0.1611542876189892), 1332932508: (0.104601918808331, 'Should be the crop_list due to order', 0.1389736979200624), 1332932503: (0.104601918808331, 'Should be the crop_list due to order', 0.08117936458963618), 1332932498: (0.104601918808331, 'Should be the crop_list due to order', 0.23301954721201754), 1332932495: (0.104601918808331, 'Should be the crop_list due to order', 0.1607886757440379), 1332932490: (0.104601918808331, 'Should be the crop_list due to order', 0)} args : 1332932490 depend.output_id : 0 VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :8, first value : (0.104601918808331,) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20067960) Here we display some param of map_info ! map_filenames : {'temp/1738662509_3545601_1332932560_f825d98c90562b05a1d90f88c89aab48.jpg': 1332932560, 'temp/1738662509_3545601_1332932544_18f92c466b90686e9886610cb819e00c.jpg': 1332932544, 'temp/1738662509_3545601_1332932511_16c7da5397c785a490147ea41c78994c.jpg': 1332932511, 'temp/1738662509_3545601_1332932508_431fce3a404cfe9f48781244eedecee8.jpg': 1332932508, 'temp/1738662509_3545601_1332932503_e18e192d9a8485075f9df5dfc7878fbc.jpg': 1332932503, 'temp/1738662509_3545601_1332932498_96b62cb3e7176983ef294cbb501ab4eb.jpg': 1332932498, 'temp/1738662509_3545601_1332932495_637bfae6a2f7fcb8fd08da5c18932253.jpg': 1332932495, 'temp/1738662509_3545601_1332932490_87bc005fe949be1b8f9856a0f84c9bca.jpg': 1332932490} map_photo_id_path_extension : {1332932560: {'path': 'temp/1738662509_3545601_1332932560_f825d98c90562b05a1d90f88c89aab48.jpg', 'extension': 'jpg'}, 1332932544: {'path': 'temp/1738662509_3545601_1332932544_18f92c466b90686e9886610cb819e00c.jpg', 'extension': 'jpg'}, 1332932511: {'path': 'temp/1738662509_3545601_1332932511_16c7da5397c785a490147ea41c78994c.jpg', 'extension': 'jpg'}, 1332932508: {'path': 'temp/1738662509_3545601_1332932508_431fce3a404cfe9f48781244eedecee8.jpg', 'extension': 'jpg'}, 1332932503: {'path': 'temp/1738662509_3545601_1332932503_e18e192d9a8485075f9df5dfc7878fbc.jpg', 'extension': 'jpg'}, 1332932498: {'path': 'temp/1738662509_3545601_1332932498_96b62cb3e7176983ef294cbb501ab4eb.jpg', 'extension': 'jpg'}, 1332932495: {'path': 'temp/1738662509_3545601_1332932495_637bfae6a2f7fcb8fd08da5c18932253.jpg', 'extension': 'jpg'}, 1332932490: {'path': 'temp/1738662509_3545601_1332932490_87bc005fe949be1b8f9856a0f84c9bca.jpg', 'extension': 'jpg'}} map_subphoto_mainphoto : {} Beginning of datou step final ! SELECT completion_json FROM MTRPhoto.dashboard_results WHERE mtr_portfolio_id = 20067960 AND dashboard_run_id IN (SELECT last_run_id FROM MTRPhoto.dashboard_entry_day); query to retrieve results for portfolio 20067960 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 4857 and photo_id in (1332932495,1332932544,1332932508,1332932503,1332932511,1332932498,1332932560); insert ignore into MTRUser.portfolio_carac_ratio (portfolio_id, hashtag_type, hashtag_id, value) values (%s,%s,%s,%s) on DUPLICATE KEY UPDATE value=VALUES(value) After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([20067960]) Inside saveOutput : final : False verbose : True original output for save of step final : {1332932560: ('0.2509548301582073',), 1332932544: ('0.2509548301582073',), 1332932511: ('0.2509548301582073',), 1332932508: ('0.2509548301582073',), 1332932503: ('0.2509548301582073',), 1332932498: ('0.2509548301582073',), 1332932495: ('0.2509548301582073',), 1332932490: ('0.2509548301582073',)} new output for save of step final : {1332932560: ('0.2509548301582073',), 1332932544: ('0.2509548301582073',), 1332932511: ('0.2509548301582073',), 1332932508: ('0.2509548301582073',), 1332932503: ('0.2509548301582073',), 1332932498: ('0.2509548301582073',), 1332932495: ('0.2509548301582073',), 1332932490: ('0.2509548301582073',)} [1332932560, 1332932544, 1332932511, 1332932508, 1332932503, 1332932498, 1332932495, 1332932490] map_info['map_portfolio_photo'] : {20067960: [1332932560, 1332932544, 1332932511, 1332932508, 1332932503, 1332932498, 1332932495, 1332932490]} final : False mtd_id 4742 list_pids : [1332932560, 1332932544, 1332932511, 1332932508, 1332932503, 1332932498, 1332932495, 1332932490] Looping around the photos to save general results len do output : 8 /1332932560.Didn't retrieve data . /1332932544.Didn't retrieve data . /1332932511.Didn't retrieve data . /1332932508.Didn't retrieve data . /1332932503.Didn't retrieve data . /1332932498.Didn't retrieve data . /1332932495.Didn't retrieve data . /1332932490.Didn't retrieve data . before output type Used above Used above Managing all output in save final without adding information in the mtr_datou_result ('4742', None, None, None, None, None, None, None, '2544296') ('4742', '20067960', '1332932560', None, None, None, None, None, '2544296') ('4742', None, None, None, None, None, None, None, '2544296') ('4742', '20067960', '1332932544', None, None, None, None, None, '2544296') ('4742', None, None, None, None, None, None, None, '2544296') ('4742', '20067960', '1332932511', None, None, None, None, None, '2544296') ('4742', None, None, None, None, None, None, None, '2544296') ('4742', '20067960', '1332932508', None, None, None, None, None, '2544296') ('4742', None, None, None, None, None, None, None, '2544296') ('4742', '20067960', '1332932503', None, None, None, None, None, '2544296') ('4742', None, None, None, None, None, None, None, '2544296') ('4742', '20067960', '1332932498', None, None, None, None, None, '2544296') ('4742', None, None, None, None, None, None, None, '2544296') ('4742', '20067960', '1332932495', None, None, None, None, None, '2544296') ('4742', None, None, None, None, None, None, None, '2544296') ('4742', '20067960', '1332932490', None, None, None, None, None, '2544296') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 24 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4742', '20067960', '1332932560', '0.2509548301582073', None, None, None, None, '2544296'), ('4742', '20067960', '1332932544', '0.2509548301582073', None, None, None, None, '2544296'), ('4742', '20067960', '1332932511', '0.2509548301582073', None, None, None, None, '2544296'), ('4742', '20067960', '1332932508', '0.2509548301582073', None, None, None, None, '2544296'), ('4742', '20067960', '1332932503', '0.2509548301582073', None, None, None, None, '2544296'), ('4742', '20067960', '1332932498', '0.2509548301582073', None, None, None, None, '2544296'), ('4742', '20067960', '1332932495', '0.2509548301582073', None, None, None, None, '2544296'), ('4742', '20067960', '1332932490', '0.2509548301582073', None, None, None, None, '2544296')] time used for this insertion : 0.013431549072265625 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.05780339241027832 time spend to save output : 0.014068603515625 total time spend for step 5 : 0.07187199592590332 step6:blur_detection Tue Feb 4 10:48:54 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :0, first value : [] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20067960) Here we display some param of map_info ! map_filenames : {'temp/1738662509_3545601_1332932560_f825d98c90562b05a1d90f88c89aab48.jpg': 1332932560, 'temp/1738662509_3545601_1332932544_18f92c466b90686e9886610cb819e00c.jpg': 1332932544, 'temp/1738662509_3545601_1332932511_16c7da5397c785a490147ea41c78994c.jpg': 1332932511, 'temp/1738662509_3545601_1332932508_431fce3a404cfe9f48781244eedecee8.jpg': 1332932508, 'temp/1738662509_3545601_1332932503_e18e192d9a8485075f9df5dfc7878fbc.jpg': 1332932503, 'temp/1738662509_3545601_1332932498_96b62cb3e7176983ef294cbb501ab4eb.jpg': 1332932498, 'temp/1738662509_3545601_1332932495_637bfae6a2f7fcb8fd08da5c18932253.jpg': 1332932495, 'temp/1738662509_3545601_1332932490_87bc005fe949be1b8f9856a0f84c9bca.jpg': 1332932490} map_photo_id_path_extension : {1332932560: {'path': 'temp/1738662509_3545601_1332932560_f825d98c90562b05a1d90f88c89aab48.jpg', 'extension': 'jpg'}, 1332932544: {'path': 'temp/1738662509_3545601_1332932544_18f92c466b90686e9886610cb819e00c.jpg', 'extension': 'jpg'}, 1332932511: {'path': 'temp/1738662509_3545601_1332932511_16c7da5397c785a490147ea41c78994c.jpg', 'extension': 'jpg'}, 1332932508: {'path': 'temp/1738662509_3545601_1332932508_431fce3a404cfe9f48781244eedecee8.jpg', 'extension': 'jpg'}, 1332932503: {'path': 'temp/1738662509_3545601_1332932503_e18e192d9a8485075f9df5dfc7878fbc.jpg', 'extension': 'jpg'}, 1332932498: {'path': 'temp/1738662509_3545601_1332932498_96b62cb3e7176983ef294cbb501ab4eb.jpg', 'extension': 'jpg'}, 1332932495: {'path': 'temp/1738662509_3545601_1332932495_637bfae6a2f7fcb8fd08da5c18932253.jpg', 'extension': 'jpg'}, 1332932490: {'path': 'temp/1738662509_3545601_1332932490_87bc005fe949be1b8f9856a0f84c9bca.jpg', 'extension': 'jpg'}} map_subphoto_mainphoto : {} inside step blur_detection toutes les photos sont déjà traitées, on saute les calculs score_blur_detection : {1332932498: [(1332932498, 3943.212340628107, 492609224)], 1332932560: [(1332932560, 3064.0332685449803, 492609224)], 1332932544: [(1332932544, 2990.9779394966263, 492609224)], 1332932511: [(1332932511, 2823.718396737555, 492609224)], 1332932495: [(1332932495, 2280.2987466891072, 492609224)], 1332932503: [(1332932503, 2174.2053959979, 492609224)], 1332932508: [(1332932508, 1849.2984414606453, 2107751945)], 1332932490: [(1332932490, 864.6973179222988, 2107751945)]} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([20067960]) Inside saveOutput : final : False verbose : True select photo_hashtag_type from MTRDatou.classification_theme where id = 3523 begin to insert list_values into class_photo_scores : length of list_valuse in save_photo_hashtag_id_thcl_score : 8 insert into MTRPhoto.class_photo_score (thcl, photo_id, hashtag_id, score) values (%s,%s,%s,%s) on duplicate key update score = values(score) time used for this insertion : 0.011007070541381836 begin to insert list_values into photo_hahstag_ids : length of list_valuse in save_photo_hashtag_id_type : 8 insert ignore into MTRBack.photo_hashtag_ids (photo_id, hashtag_id, type) values (%s,%s,%s) insert ignore into MTRBack.photo_hashtag_ids (photo_id, hashtag_id, type) values (%s,%s,%s) first line : ('1332932498', '492609224', '4570') ... last line : ('1332932490', '2107751945', '4570') time used for this insertion : 0.010747432708740234 save missing photos in datou_result : time spend for datou_step_exec : 0.024350881576538086 time spend to save output : 0.02662181854248047 total time spend for step 6 : 0.050972700119018555 step7:brightness Tue Feb 4 10:48:54 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :0, first value : [] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20067960) Here we display some param of map_info ! map_filenames : {'temp/1738662509_3545601_1332932560_f825d98c90562b05a1d90f88c89aab48.jpg': 1332932560, 'temp/1738662509_3545601_1332932544_18f92c466b90686e9886610cb819e00c.jpg': 1332932544, 'temp/1738662509_3545601_1332932511_16c7da5397c785a490147ea41c78994c.jpg': 1332932511, 'temp/1738662509_3545601_1332932508_431fce3a404cfe9f48781244eedecee8.jpg': 1332932508, 'temp/1738662509_3545601_1332932503_e18e192d9a8485075f9df5dfc7878fbc.jpg': 1332932503, 'temp/1738662509_3545601_1332932498_96b62cb3e7176983ef294cbb501ab4eb.jpg': 1332932498, 'temp/1738662509_3545601_1332932495_637bfae6a2f7fcb8fd08da5c18932253.jpg': 1332932495, 'temp/1738662509_3545601_1332932490_87bc005fe949be1b8f9856a0f84c9bca.jpg': 1332932490} map_photo_id_path_extension : {1332932560: {'path': 'temp/1738662509_3545601_1332932560_f825d98c90562b05a1d90f88c89aab48.jpg', 'extension': 'jpg'}, 1332932544: {'path': 'temp/1738662509_3545601_1332932544_18f92c466b90686e9886610cb819e00c.jpg', 'extension': 'jpg'}, 1332932511: {'path': 'temp/1738662509_3545601_1332932511_16c7da5397c785a490147ea41c78994c.jpg', 'extension': 'jpg'}, 1332932508: {'path': 'temp/1738662509_3545601_1332932508_431fce3a404cfe9f48781244eedecee8.jpg', 'extension': 'jpg'}, 1332932503: {'path': 'temp/1738662509_3545601_1332932503_e18e192d9a8485075f9df5dfc7878fbc.jpg', 'extension': 'jpg'}, 1332932498: {'path': 'temp/1738662509_3545601_1332932498_96b62cb3e7176983ef294cbb501ab4eb.jpg', 'extension': 'jpg'}, 1332932495: {'path': 'temp/1738662509_3545601_1332932495_637bfae6a2f7fcb8fd08da5c18932253.jpg', 'extension': 'jpg'}, 1332932490: {'path': 'temp/1738662509_3545601_1332932490_87bc005fe949be1b8f9856a0f84c9bca.jpg', 'extension': 'jpg'}} map_subphoto_mainphoto : {} inside step calcul brightness toutes les photos sont déjà traitées, on saute les calculs brightness_score : {1332932490: [(1332932490, -0.08654831603479997, 496442774)], 1332932560: [(1332932560, -0.1797352664947871, 496442774)], 1332932503: [(1332932503, -0.19036639336076308, 496442774)], 1332932495: [(1332932495, -0.1978001704927894, 496442774)], 1332932498: [(1332932498, -0.20728687526910763, 496442774)], 1332932508: [(1332932508, -0.21841885304906003, 496442774)], 1332932544: [(1332932544, -0.25889489248919983, 496442774)], 1332932511: [(1332932511, -0.33698148498116265, 496442774)]} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([20067960]) Inside saveOutput : final : False verbose : True select photo_hashtag_type from MTRDatou.classification_theme where id = 1154 begin to insert list_values into class_photo_scores : length of list_valuse in save_photo_hashtag_id_thcl_score : 8 insert into MTRPhoto.class_photo_score (thcl, photo_id, hashtag_id, score) values (%s,%s,%s,%s) on duplicate key update score = values(score) time used for this insertion : 0.009850740432739258 begin to insert list_values into photo_hahstag_ids : length of list_valuse in save_photo_hashtag_id_type : 8 insert ignore into MTRBack.photo_hashtag_ids (photo_id, hashtag_id, type) values (%s,%s,%s) insert ignore into MTRBack.photo_hashtag_ids (photo_id, hashtag_id, type) values (%s,%s,%s) first line : ('1332932490', '496442774', '1426') ... last line : ('1332932511', '496442774', '1426') time used for this insertion : 0.009870052337646484 save missing photos in datou_result : time spend for datou_step_exec : 0.02565145492553711 time spend to save output : 0.02434229850769043 total time spend for step 7 : 0.04999375343322754 step8:send_mail_cod Tue Feb 4 10:48:54 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : {1332932498: [(1332932498, 3943.212340628107, 492609224)], 1332932560: [(1332932560, 3064.0332685449803, 492609224)], 1332932544: [(1332932544, 2990.9779394966263, 492609224)], 1332932511: [(1332932511, 2823.718396737555, 492609224)], 1332932495: [(1332932495, 2280.2987466891072, 492609224)], 1332932503: [(1332932503, 2174.2053959979, 492609224)], 1332932508: [(1332932508, 1849.2984414606453, 2107751945)], 1332932490: [(1332932490, 864.6973179222988, 2107751945)]} input_args_next_step : {1332932498: ()} output_args : {1332932498: [(1332932498, 3943.212340628107, 492609224)], 1332932560: [(1332932560, 3064.0332685449803, 492609224)], 1332932544: [(1332932544, 2990.9779394966263, 492609224)], 1332932511: [(1332932511, 2823.718396737555, 492609224)], 1332932495: [(1332932495, 2280.2987466891072, 492609224)], 1332932503: [(1332932503, 2174.2053959979, 492609224)], 1332932508: [(1332932508, 1849.2984414606453, 2107751945)], 1332932490: [(1332932490, 864.6973179222988, 2107751945)]} args : 1332932498 depend.output_id : 0 input_args_next_step : {1332932498: ((1332932498, 3943.212340628107, 492609224),), 1332932560: ()} output_args : {1332932498: [(1332932498, 3943.212340628107, 492609224)], 1332932560: [(1332932560, 3064.0332685449803, 492609224)], 1332932544: [(1332932544, 2990.9779394966263, 492609224)], 1332932511: [(1332932511, 2823.718396737555, 492609224)], 1332932495: [(1332932495, 2280.2987466891072, 492609224)], 1332932503: [(1332932503, 2174.2053959979, 492609224)], 1332932508: [(1332932508, 1849.2984414606453, 2107751945)], 1332932490: [(1332932490, 864.6973179222988, 2107751945)]} args : 1332932560 depend.output_id : 0 input_args_next_step : {1332932498: ((1332932498, 3943.212340628107, 492609224),), 1332932560: ((1332932560, 3064.0332685449803, 492609224),), 1332932544: ()} output_args : {1332932498: [(1332932498, 3943.212340628107, 492609224)], 1332932560: [(1332932560, 3064.0332685449803, 492609224)], 1332932544: [(1332932544, 2990.9779394966263, 492609224)], 1332932511: [(1332932511, 2823.718396737555, 492609224)], 1332932495: [(1332932495, 2280.2987466891072, 492609224)], 1332932503: [(1332932503, 2174.2053959979, 492609224)], 1332932508: [(1332932508, 1849.2984414606453, 2107751945)], 1332932490: [(1332932490, 864.6973179222988, 2107751945)]} args : 1332932544 depend.output_id : 0 input_args_next_step : {1332932498: ((1332932498, 3943.212340628107, 492609224),), 1332932560: ((1332932560, 3064.0332685449803, 492609224),), 1332932544: ((1332932544, 2990.9779394966263, 492609224),), 1332932511: ()} output_args : {1332932498: [(1332932498, 3943.212340628107, 492609224)], 1332932560: [(1332932560, 3064.0332685449803, 492609224)], 1332932544: [(1332932544, 2990.9779394966263, 492609224)], 1332932511: [(1332932511, 2823.718396737555, 492609224)], 1332932495: [(1332932495, 2280.2987466891072, 492609224)], 1332932503: [(1332932503, 2174.2053959979, 492609224)], 1332932508: [(1332932508, 1849.2984414606453, 2107751945)], 1332932490: [(1332932490, 864.6973179222988, 2107751945)]} args : 1332932511 depend.output_id : 0 input_args_next_step : {1332932498: ((1332932498, 3943.212340628107, 492609224),), 1332932560: ((1332932560, 3064.0332685449803, 492609224),), 1332932544: ((1332932544, 2990.9779394966263, 492609224),), 1332932511: ((1332932511, 2823.718396737555, 492609224),), 1332932495: ()} output_args : {1332932498: [(1332932498, 3943.212340628107, 492609224)], 1332932560: [(1332932560, 3064.0332685449803, 492609224)], 1332932544: [(1332932544, 2990.9779394966263, 492609224)], 1332932511: [(1332932511, 2823.718396737555, 492609224)], 1332932495: [(1332932495, 2280.2987466891072, 492609224)], 1332932503: [(1332932503, 2174.2053959979, 492609224)], 1332932508: [(1332932508, 1849.2984414606453, 2107751945)], 1332932490: [(1332932490, 864.6973179222988, 2107751945)]} args : 1332932495 depend.output_id : 0 input_args_next_step : {1332932498: ((1332932498, 3943.212340628107, 492609224),), 1332932560: ((1332932560, 3064.0332685449803, 492609224),), 1332932544: ((1332932544, 2990.9779394966263, 492609224),), 1332932511: ((1332932511, 2823.718396737555, 492609224),), 1332932495: ((1332932495, 2280.2987466891072, 492609224),), 1332932503: ()} output_args : {1332932498: [(1332932498, 3943.212340628107, 492609224)], 1332932560: [(1332932560, 3064.0332685449803, 492609224)], 1332932544: [(1332932544, 2990.9779394966263, 492609224)], 1332932511: [(1332932511, 2823.718396737555, 492609224)], 1332932495: [(1332932495, 2280.2987466891072, 492609224)], 1332932503: [(1332932503, 2174.2053959979, 492609224)], 1332932508: [(1332932508, 1849.2984414606453, 2107751945)], 1332932490: [(1332932490, 864.6973179222988, 2107751945)]} args : 1332932503 depend.output_id : 0 input_args_next_step : {1332932498: ((1332932498, 3943.212340628107, 492609224),), 1332932560: ((1332932560, 3064.0332685449803, 492609224),), 1332932544: ((1332932544, 2990.9779394966263, 492609224),), 1332932511: ((1332932511, 2823.718396737555, 492609224),), 1332932495: ((1332932495, 2280.2987466891072, 492609224),), 1332932503: ((1332932503, 2174.2053959979, 492609224),), 1332932508: ()} output_args : {1332932498: [(1332932498, 3943.212340628107, 492609224)], 1332932560: [(1332932560, 3064.0332685449803, 492609224)], 1332932544: [(1332932544, 2990.9779394966263, 492609224)], 1332932511: [(1332932511, 2823.718396737555, 492609224)], 1332932495: [(1332932495, 2280.2987466891072, 492609224)], 1332932503: [(1332932503, 2174.2053959979, 492609224)], 1332932508: [(1332932508, 1849.2984414606453, 2107751945)], 1332932490: [(1332932490, 864.6973179222988, 2107751945)]} args : 1332932508 depend.output_id : 0 input_args_next_step : {1332932498: ((1332932498, 3943.212340628107, 492609224),), 1332932560: ((1332932560, 3064.0332685449803, 492609224),), 1332932544: ((1332932544, 2990.9779394966263, 492609224),), 1332932511: ((1332932511, 2823.718396737555, 492609224),), 1332932495: ((1332932495, 2280.2987466891072, 492609224),), 1332932503: ((1332932503, 2174.2053959979, 492609224),), 1332932508: ((1332932508, 1849.2984414606453, 2107751945),), 1332932490: ()} output_args : {1332932498: [(1332932498, 3943.212340628107, 492609224)], 1332932560: [(1332932560, 3064.0332685449803, 492609224)], 1332932544: [(1332932544, 2990.9779394966263, 492609224)], 1332932511: [(1332932511, 2823.718396737555, 492609224)], 1332932495: [(1332932495, 2280.2987466891072, 492609224)], 1332932503: [(1332932503, 2174.2053959979, 492609224)], 1332932508: [(1332932508, 1849.2984414606453, 2107751945)], 1332932490: [(1332932490, 864.6973179222988, 2107751945)]} args : 1332932490 depend.output_id : 0 complete output_args for input 1 : {1332932490: [(1332932490, -0.08654831603479997, 496442774)], 1332932560: [(1332932560, -0.1797352664947871, 496442774)], 1332932503: [(1332932503, -0.19036639336076308, 496442774)], 1332932495: [(1332932495, -0.1978001704927894, 496442774)], 1332932498: [(1332932498, -0.20728687526910763, 496442774)], 1332932508: [(1332932508, -0.21841885304906003, 496442774)], 1332932544: [(1332932544, -0.25889489248919983, 496442774)], 1332932511: [(1332932511, -0.33698148498116265, 496442774)]} input_args_next_step : {1332932498: ((1332932498, 3943.212340628107, 492609224),), 1332932560: ((1332932560, 3064.0332685449803, 492609224),), 1332932544: ((1332932544, 2990.9779394966263, 492609224),), 1332932511: ((1332932511, 2823.718396737555, 492609224),), 1332932495: ((1332932495, 2280.2987466891072, 492609224),), 1332932503: ((1332932503, 2174.2053959979, 492609224),), 1332932508: ((1332932508, 1849.2984414606453, 2107751945),), 1332932490: ((1332932490, 864.6973179222988, 2107751945),)} output_args : {1332932490: [(1332932490, -0.08654831603479997, 496442774)], 1332932560: [(1332932560, -0.1797352664947871, 496442774)], 1332932503: [(1332932503, -0.19036639336076308, 496442774)], 1332932495: [(1332932495, -0.1978001704927894, 496442774)], 1332932498: [(1332932498, -0.20728687526910763, 496442774)], 1332932508: [(1332932508, -0.21841885304906003, 496442774)], 1332932544: [(1332932544, -0.25889489248919983, 496442774)], 1332932511: [(1332932511, -0.33698148498116265, 496442774)]} args : 1332932490 depend.output_id : 0 input_args_next_step : {1332932498: ((1332932498, 3943.212340628107, 492609224),), 1332932560: ((1332932560, 3064.0332685449803, 492609224),), 1332932544: ((1332932544, 2990.9779394966263, 492609224),), 1332932511: ((1332932511, 2823.718396737555, 492609224),), 1332932495: ((1332932495, 2280.2987466891072, 492609224),), 1332932503: ((1332932503, 2174.2053959979, 492609224),), 1332932508: ((1332932508, 1849.2984414606453, 2107751945),), 1332932490: ((1332932490, 864.6973179222988, 2107751945), (1332932490, -0.08654831603479997, 496442774))} output_args : {1332932490: [(1332932490, -0.08654831603479997, 496442774)], 1332932560: [(1332932560, -0.1797352664947871, 496442774)], 1332932503: [(1332932503, -0.19036639336076308, 496442774)], 1332932495: [(1332932495, -0.1978001704927894, 496442774)], 1332932498: [(1332932498, -0.20728687526910763, 496442774)], 1332932508: [(1332932508, -0.21841885304906003, 496442774)], 1332932544: [(1332932544, -0.25889489248919983, 496442774)], 1332932511: [(1332932511, -0.33698148498116265, 496442774)]} args : 1332932560 depend.output_id : 0 input_args_next_step : {1332932498: ((1332932498, 3943.212340628107, 492609224),), 1332932560: ((1332932560, 3064.0332685449803, 492609224), (1332932560, -0.1797352664947871, 496442774)), 1332932544: ((1332932544, 2990.9779394966263, 492609224),), 1332932511: ((1332932511, 2823.718396737555, 492609224),), 1332932495: ((1332932495, 2280.2987466891072, 492609224),), 1332932503: ((1332932503, 2174.2053959979, 492609224),), 1332932508: ((1332932508, 1849.2984414606453, 2107751945),), 1332932490: ((1332932490, 864.6973179222988, 2107751945), (1332932490, -0.08654831603479997, 496442774))} output_args : {1332932490: [(1332932490, -0.08654831603479997, 496442774)], 1332932560: [(1332932560, -0.1797352664947871, 496442774)], 1332932503: [(1332932503, -0.19036639336076308, 496442774)], 1332932495: [(1332932495, -0.1978001704927894, 496442774)], 1332932498: [(1332932498, -0.20728687526910763, 496442774)], 1332932508: [(1332932508, -0.21841885304906003, 496442774)], 1332932544: [(1332932544, -0.25889489248919983, 496442774)], 1332932511: [(1332932511, -0.33698148498116265, 496442774)]} args : 1332932503 depend.output_id : 0 input_args_next_step : {1332932498: ((1332932498, 3943.212340628107, 492609224),), 1332932560: ((1332932560, 3064.0332685449803, 492609224), (1332932560, -0.1797352664947871, 496442774)), 1332932544: ((1332932544, 2990.9779394966263, 492609224),), 1332932511: ((1332932511, 2823.718396737555, 492609224),), 1332932495: ((1332932495, 2280.2987466891072, 492609224),), 1332932503: ((1332932503, 2174.2053959979, 492609224), (1332932503, -0.19036639336076308, 496442774)), 1332932508: ((1332932508, 1849.2984414606453, 2107751945),), 1332932490: ((1332932490, 864.6973179222988, 2107751945), (1332932490, -0.08654831603479997, 496442774))} output_args : {1332932490: [(1332932490, -0.08654831603479997, 496442774)], 1332932560: [(1332932560, -0.1797352664947871, 496442774)], 1332932503: [(1332932503, -0.19036639336076308, 496442774)], 1332932495: [(1332932495, -0.1978001704927894, 496442774)], 1332932498: [(1332932498, -0.20728687526910763, 496442774)], 1332932508: [(1332932508, -0.21841885304906003, 496442774)], 1332932544: [(1332932544, -0.25889489248919983, 496442774)], 1332932511: [(1332932511, -0.33698148498116265, 496442774)]} args : 1332932495 depend.output_id : 0 input_args_next_step : {1332932498: ((1332932498, 3943.212340628107, 492609224),), 1332932560: ((1332932560, 3064.0332685449803, 492609224), (1332932560, -0.1797352664947871, 496442774)), 1332932544: ((1332932544, 2990.9779394966263, 492609224),), 1332932511: ((1332932511, 2823.718396737555, 492609224),), 1332932495: ((1332932495, 2280.2987466891072, 492609224), (1332932495, -0.1978001704927894, 496442774)), 1332932503: ((1332932503, 2174.2053959979, 492609224), (1332932503, -0.19036639336076308, 496442774)), 1332932508: ((1332932508, 1849.2984414606453, 2107751945),), 1332932490: ((1332932490, 864.6973179222988, 2107751945), (1332932490, -0.08654831603479997, 496442774))} output_args : {1332932490: [(1332932490, -0.08654831603479997, 496442774)], 1332932560: [(1332932560, -0.1797352664947871, 496442774)], 1332932503: [(1332932503, -0.19036639336076308, 496442774)], 1332932495: [(1332932495, -0.1978001704927894, 496442774)], 1332932498: [(1332932498, -0.20728687526910763, 496442774)], 1332932508: [(1332932508, -0.21841885304906003, 496442774)], 1332932544: [(1332932544, -0.25889489248919983, 496442774)], 1332932511: [(1332932511, -0.33698148498116265, 496442774)]} args : 1332932498 depend.output_id : 0 input_args_next_step : {1332932498: ((1332932498, 3943.212340628107, 492609224), (1332932498, -0.20728687526910763, 496442774)), 1332932560: ((1332932560, 3064.0332685449803, 492609224), (1332932560, -0.1797352664947871, 496442774)), 1332932544: ((1332932544, 2990.9779394966263, 492609224),), 1332932511: ((1332932511, 2823.718396737555, 492609224),), 1332932495: ((1332932495, 2280.2987466891072, 492609224), (1332932495, -0.1978001704927894, 496442774)), 1332932503: ((1332932503, 2174.2053959979, 492609224), (1332932503, -0.19036639336076308, 496442774)), 1332932508: ((1332932508, 1849.2984414606453, 2107751945),), 1332932490: ((1332932490, 864.6973179222988, 2107751945), (1332932490, -0.08654831603479997, 496442774))} output_args : {1332932490: [(1332932490, -0.08654831603479997, 496442774)], 1332932560: [(1332932560, -0.1797352664947871, 496442774)], 1332932503: [(1332932503, -0.19036639336076308, 496442774)], 1332932495: [(1332932495, -0.1978001704927894, 496442774)], 1332932498: [(1332932498, -0.20728687526910763, 496442774)], 1332932508: [(1332932508, -0.21841885304906003, 496442774)], 1332932544: [(1332932544, -0.25889489248919983, 496442774)], 1332932511: [(1332932511, -0.33698148498116265, 496442774)]} args : 1332932508 depend.output_id : 0 input_args_next_step : {1332932498: ((1332932498, 3943.212340628107, 492609224), (1332932498, -0.20728687526910763, 496442774)), 1332932560: ((1332932560, 3064.0332685449803, 492609224), (1332932560, -0.1797352664947871, 496442774)), 1332932544: ((1332932544, 2990.9779394966263, 492609224),), 1332932511: ((1332932511, 2823.718396737555, 492609224),), 1332932495: ((1332932495, 2280.2987466891072, 492609224), (1332932495, -0.1978001704927894, 496442774)), 1332932503: ((1332932503, 2174.2053959979, 492609224), (1332932503, -0.19036639336076308, 496442774)), 1332932508: ((1332932508, 1849.2984414606453, 2107751945), (1332932508, -0.21841885304906003, 496442774)), 1332932490: ((1332932490, 864.6973179222988, 2107751945), (1332932490, -0.08654831603479997, 496442774))} output_args : {1332932490: [(1332932490, -0.08654831603479997, 496442774)], 1332932560: [(1332932560, -0.1797352664947871, 496442774)], 1332932503: [(1332932503, -0.19036639336076308, 496442774)], 1332932495: [(1332932495, -0.1978001704927894, 496442774)], 1332932498: [(1332932498, -0.20728687526910763, 496442774)], 1332932508: [(1332932508, -0.21841885304906003, 496442774)], 1332932544: [(1332932544, -0.25889489248919983, 496442774)], 1332932511: [(1332932511, -0.33698148498116265, 496442774)]} args : 1332932544 depend.output_id : 0 input_args_next_step : {1332932498: ((1332932498, 3943.212340628107, 492609224), (1332932498, -0.20728687526910763, 496442774)), 1332932560: ((1332932560, 3064.0332685449803, 492609224), (1332932560, -0.1797352664947871, 496442774)), 1332932544: ((1332932544, 2990.9779394966263, 492609224), (1332932544, -0.25889489248919983, 496442774)), 1332932511: ((1332932511, 2823.718396737555, 492609224),), 1332932495: ((1332932495, 2280.2987466891072, 492609224), (1332932495, -0.1978001704927894, 496442774)), 1332932503: ((1332932503, 2174.2053959979, 492609224), (1332932503, -0.19036639336076308, 496442774)), 1332932508: ((1332932508, 1849.2984414606453, 2107751945), (1332932508, -0.21841885304906003, 496442774)), 1332932490: ((1332932490, 864.6973179222988, 2107751945), (1332932490, -0.08654831603479997, 496442774))} output_args : {1332932490: [(1332932490, -0.08654831603479997, 496442774)], 1332932560: [(1332932560, -0.1797352664947871, 496442774)], 1332932503: [(1332932503, -0.19036639336076308, 496442774)], 1332932495: [(1332932495, -0.1978001704927894, 496442774)], 1332932498: [(1332932498, -0.20728687526910763, 496442774)], 1332932508: [(1332932508, -0.21841885304906003, 496442774)], 1332932544: [(1332932544, -0.25889489248919983, 496442774)], 1332932511: [(1332932511, -0.33698148498116265, 496442774)]} args : 1332932511 depend.output_id : 0 complete output_args for input 2 : {1332932560: ('0.2509548301582073',), 1332932544: ('0.2509548301582073',), 1332932511: ('0.2509548301582073',), 1332932508: ('0.2509548301582073',), 1332932503: ('0.2509548301582073',), 1332932498: ('0.2509548301582073',), 1332932495: ('0.2509548301582073',), 1332932490: ('0.2509548301582073',)} input_args_next_step : {1332932498: ((1332932498, 3943.212340628107, 492609224), (1332932498, -0.20728687526910763, 496442774)), 1332932560: ((1332932560, 3064.0332685449803, 492609224), (1332932560, -0.1797352664947871, 496442774)), 1332932544: ((1332932544, 2990.9779394966263, 492609224), (1332932544, -0.25889489248919983, 496442774)), 1332932511: ((1332932511, 2823.718396737555, 492609224), (1332932511, -0.33698148498116265, 496442774)), 1332932495: ((1332932495, 2280.2987466891072, 492609224), (1332932495, -0.1978001704927894, 496442774)), 1332932503: ((1332932503, 2174.2053959979, 492609224), (1332932503, -0.19036639336076308, 496442774)), 1332932508: ((1332932508, 1849.2984414606453, 2107751945), (1332932508, -0.21841885304906003, 496442774)), 1332932490: ((1332932490, 864.6973179222988, 2107751945), (1332932490, -0.08654831603479997, 496442774))} output_args : {1332932560: ('0.2509548301582073',), 1332932544: ('0.2509548301582073',), 1332932511: ('0.2509548301582073',), 1332932508: ('0.2509548301582073',), 1332932503: ('0.2509548301582073',), 1332932498: ('0.2509548301582073',), 1332932495: ('0.2509548301582073',), 1332932490: ('0.2509548301582073',)} args : 1332932560 depend.output_id : 0 input_args_next_step : {1332932498: ((1332932498, 3943.212340628107, 492609224), (1332932498, -0.20728687526910763, 496442774)), 1332932560: ((1332932560, 3064.0332685449803, 492609224), (1332932560, -0.1797352664947871, 496442774), '0.2509548301582073'), 1332932544: ((1332932544, 2990.9779394966263, 492609224), (1332932544, -0.25889489248919983, 496442774)), 1332932511: ((1332932511, 2823.718396737555, 492609224), (1332932511, -0.33698148498116265, 496442774)), 1332932495: ((1332932495, 2280.2987466891072, 492609224), (1332932495, -0.1978001704927894, 496442774)), 1332932503: ((1332932503, 2174.2053959979, 492609224), (1332932503, -0.19036639336076308, 496442774)), 1332932508: ((1332932508, 1849.2984414606453, 2107751945), (1332932508, -0.21841885304906003, 496442774)), 1332932490: ((1332932490, 864.6973179222988, 2107751945), (1332932490, -0.08654831603479997, 496442774))} output_args : {1332932560: ('0.2509548301582073',), 1332932544: ('0.2509548301582073',), 1332932511: ('0.2509548301582073',), 1332932508: ('0.2509548301582073',), 1332932503: ('0.2509548301582073',), 1332932498: ('0.2509548301582073',), 1332932495: ('0.2509548301582073',), 1332932490: ('0.2509548301582073',)} args : 1332932544 depend.output_id : 0 input_args_next_step : {1332932498: ((1332932498, 3943.212340628107, 492609224), (1332932498, -0.20728687526910763, 496442774)), 1332932560: ((1332932560, 3064.0332685449803, 492609224), (1332932560, -0.1797352664947871, 496442774), '0.2509548301582073'), 1332932544: ((1332932544, 2990.9779394966263, 492609224), (1332932544, -0.25889489248919983, 496442774), '0.2509548301582073'), 1332932511: ((1332932511, 2823.718396737555, 492609224), (1332932511, -0.33698148498116265, 496442774)), 1332932495: ((1332932495, 2280.2987466891072, 492609224), (1332932495, -0.1978001704927894, 496442774)), 1332932503: ((1332932503, 2174.2053959979, 492609224), (1332932503, -0.19036639336076308, 496442774)), 1332932508: ((1332932508, 1849.2984414606453, 2107751945), (1332932508, -0.21841885304906003, 496442774)), 1332932490: ((1332932490, 864.6973179222988, 2107751945), (1332932490, -0.08654831603479997, 496442774))} output_args : {1332932560: ('0.2509548301582073',), 1332932544: ('0.2509548301582073',), 1332932511: ('0.2509548301582073',), 1332932508: ('0.2509548301582073',), 1332932503: ('0.2509548301582073',), 1332932498: ('0.2509548301582073',), 1332932495: ('0.2509548301582073',), 1332932490: ('0.2509548301582073',)} args : 1332932511 depend.output_id : 0 input_args_next_step : {1332932498: ((1332932498, 3943.212340628107, 492609224), (1332932498, -0.20728687526910763, 496442774)), 1332932560: ((1332932560, 3064.0332685449803, 492609224), (1332932560, -0.1797352664947871, 496442774), '0.2509548301582073'), 1332932544: ((1332932544, 2990.9779394966263, 492609224), (1332932544, -0.25889489248919983, 496442774), '0.2509548301582073'), 1332932511: ((1332932511, 2823.718396737555, 492609224), (1332932511, -0.33698148498116265, 496442774), '0.2509548301582073'), 1332932495: ((1332932495, 2280.2987466891072, 492609224), (1332932495, -0.1978001704927894, 496442774)), 1332932503: ((1332932503, 2174.2053959979, 492609224), (1332932503, -0.19036639336076308, 496442774)), 1332932508: ((1332932508, 1849.2984414606453, 2107751945), (1332932508, -0.21841885304906003, 496442774)), 1332932490: ((1332932490, 864.6973179222988, 2107751945), (1332932490, -0.08654831603479997, 496442774))} output_args : {1332932560: ('0.2509548301582073',), 1332932544: ('0.2509548301582073',), 1332932511: ('0.2509548301582073',), 1332932508: ('0.2509548301582073',), 1332932503: ('0.2509548301582073',), 1332932498: ('0.2509548301582073',), 1332932495: ('0.2509548301582073',), 1332932490: ('0.2509548301582073',)} args : 1332932508 depend.output_id : 0 input_args_next_step : {1332932498: ((1332932498, 3943.212340628107, 492609224), (1332932498, -0.20728687526910763, 496442774)), 1332932560: ((1332932560, 3064.0332685449803, 492609224), (1332932560, -0.1797352664947871, 496442774), '0.2509548301582073'), 1332932544: ((1332932544, 2990.9779394966263, 492609224), (1332932544, -0.25889489248919983, 496442774), '0.2509548301582073'), 1332932511: ((1332932511, 2823.718396737555, 492609224), (1332932511, -0.33698148498116265, 496442774), '0.2509548301582073'), 1332932495: ((1332932495, 2280.2987466891072, 492609224), (1332932495, -0.1978001704927894, 496442774)), 1332932503: ((1332932503, 2174.2053959979, 492609224), (1332932503, -0.19036639336076308, 496442774)), 1332932508: ((1332932508, 1849.2984414606453, 2107751945), (1332932508, -0.21841885304906003, 496442774), '0.2509548301582073'), 1332932490: ((1332932490, 864.6973179222988, 2107751945), (1332932490, -0.08654831603479997, 496442774))} output_args : {1332932560: ('0.2509548301582073',), 1332932544: ('0.2509548301582073',), 1332932511: ('0.2509548301582073',), 1332932508: ('0.2509548301582073',), 1332932503: ('0.2509548301582073',), 1332932498: ('0.2509548301582073',), 1332932495: ('0.2509548301582073',), 1332932490: ('0.2509548301582073',)} args : 1332932503 depend.output_id : 0 input_args_next_step : {1332932498: ((1332932498, 3943.212340628107, 492609224), (1332932498, -0.20728687526910763, 496442774)), 1332932560: ((1332932560, 3064.0332685449803, 492609224), (1332932560, -0.1797352664947871, 496442774), '0.2509548301582073'), 1332932544: ((1332932544, 2990.9779394966263, 492609224), (1332932544, -0.25889489248919983, 496442774), '0.2509548301582073'), 1332932511: ((1332932511, 2823.718396737555, 492609224), (1332932511, -0.33698148498116265, 496442774), '0.2509548301582073'), 1332932495: ((1332932495, 2280.2987466891072, 492609224), (1332932495, -0.1978001704927894, 496442774)), 1332932503: ((1332932503, 2174.2053959979, 492609224), (1332932503, -0.19036639336076308, 496442774), '0.2509548301582073'), 1332932508: ((1332932508, 1849.2984414606453, 2107751945), (1332932508, -0.21841885304906003, 496442774), '0.2509548301582073'), 1332932490: ((1332932490, 864.6973179222988, 2107751945), (1332932490, -0.08654831603479997, 496442774))} output_args : {1332932560: ('0.2509548301582073',), 1332932544: ('0.2509548301582073',), 1332932511: ('0.2509548301582073',), 1332932508: ('0.2509548301582073',), 1332932503: ('0.2509548301582073',), 1332932498: ('0.2509548301582073',), 1332932495: ('0.2509548301582073',), 1332932490: ('0.2509548301582073',)} args : 1332932498 depend.output_id : 0 input_args_next_step : {1332932498: ((1332932498, 3943.212340628107, 492609224), (1332932498, -0.20728687526910763, 496442774), '0.2509548301582073'), 1332932560: ((1332932560, 3064.0332685449803, 492609224), (1332932560, -0.1797352664947871, 496442774), '0.2509548301582073'), 1332932544: ((1332932544, 2990.9779394966263, 492609224), (1332932544, -0.25889489248919983, 496442774), '0.2509548301582073'), 1332932511: ((1332932511, 2823.718396737555, 492609224), (1332932511, -0.33698148498116265, 496442774), '0.2509548301582073'), 1332932495: ((1332932495, 2280.2987466891072, 492609224), (1332932495, -0.1978001704927894, 496442774)), 1332932503: ((1332932503, 2174.2053959979, 492609224), (1332932503, -0.19036639336076308, 496442774), '0.2509548301582073'), 1332932508: ((1332932508, 1849.2984414606453, 2107751945), (1332932508, -0.21841885304906003, 496442774), '0.2509548301582073'), 1332932490: ((1332932490, 864.6973179222988, 2107751945), (1332932490, -0.08654831603479997, 496442774))} output_args : {1332932560: ('0.2509548301582073',), 1332932544: ('0.2509548301582073',), 1332932511: ('0.2509548301582073',), 1332932508: ('0.2509548301582073',), 1332932503: ('0.2509548301582073',), 1332932498: ('0.2509548301582073',), 1332932495: ('0.2509548301582073',), 1332932490: ('0.2509548301582073',)} args : 1332932495 depend.output_id : 0 input_args_next_step : {1332932498: ((1332932498, 3943.212340628107, 492609224), (1332932498, -0.20728687526910763, 496442774), '0.2509548301582073'), 1332932560: ((1332932560, 3064.0332685449803, 492609224), (1332932560, -0.1797352664947871, 496442774), '0.2509548301582073'), 1332932544: ((1332932544, 2990.9779394966263, 492609224), (1332932544, -0.25889489248919983, 496442774), '0.2509548301582073'), 1332932511: ((1332932511, 2823.718396737555, 492609224), (1332932511, -0.33698148498116265, 496442774), '0.2509548301582073'), 1332932495: ((1332932495, 2280.2987466891072, 492609224), (1332932495, -0.1978001704927894, 496442774), '0.2509548301582073'), 1332932503: ((1332932503, 2174.2053959979, 492609224), (1332932503, -0.19036639336076308, 496442774), '0.2509548301582073'), 1332932508: ((1332932508, 1849.2984414606453, 2107751945), (1332932508, -0.21841885304906003, 496442774), '0.2509548301582073'), 1332932490: ((1332932490, 864.6973179222988, 2107751945), (1332932490, -0.08654831603479997, 496442774))} output_args : {1332932560: ('0.2509548301582073',), 1332932544: ('0.2509548301582073',), 1332932511: ('0.2509548301582073',), 1332932508: ('0.2509548301582073',), 1332932503: ('0.2509548301582073',), 1332932498: ('0.2509548301582073',), 1332932495: ('0.2509548301582073',), 1332932490: ('0.2509548301582073',)} args : 1332932490 depend.output_id : 0 Inconsistent number of input and output, step which parrallelize and manage error in input by avoiding sending an output for this data can't be used in tree dependencies of input and output complete output_args for input 3 : {20067960: [{'papier': 20095193, 'carton': 20095194, 'metal': 20095195, 'pet_clair': 20095196, 'pehd': 20095197, 'flux_dev': 20095198, 'film_dev_souple': 20095199, 'ela': 20095200, 'sac_om_plein': 20095201, 'textiles': 20095202, 'verre': 20095203, 'organique': 20095204, 'dasri': 20095205, 'masque': 20095206, 'encombrant': 20095207, 'autre_non_emballage': 20095208, 'environnement': 20095209, 'mal_croppe': 20095210, 'flou': 20095211, 'pet_fonce': 20095212, 'pet_opaque': 20095213, 'barquette_opaque': 20095214, 'film_plastique': 20095215, 'autre_emballage': 20095216, 'sac': 20095217}]} input_args_next_step : {1332932498: ((1332932498, 3943.212340628107, 492609224), (1332932498, -0.20728687526910763, 496442774), '0.2509548301582073'), 1332932560: ((1332932560, 3064.0332685449803, 492609224), (1332932560, -0.1797352664947871, 496442774), '0.2509548301582073'), 1332932544: ((1332932544, 2990.9779394966263, 492609224), (1332932544, -0.25889489248919983, 496442774), '0.2509548301582073'), 1332932511: ((1332932511, 2823.718396737555, 492609224), (1332932511, -0.33698148498116265, 496442774), '0.2509548301582073'), 1332932495: ((1332932495, 2280.2987466891072, 492609224), (1332932495, -0.1978001704927894, 496442774), '0.2509548301582073'), 1332932503: ((1332932503, 2174.2053959979, 492609224), (1332932503, -0.19036639336076308, 496442774), '0.2509548301582073'), 1332932508: ((1332932508, 1849.2984414606453, 2107751945), (1332932508, -0.21841885304906003, 496442774), '0.2509548301582073'), 1332932490: ((1332932490, 864.6973179222988, 2107751945), (1332932490, -0.08654831603479997, 496442774), '0.2509548301582073'), 20067960: ()} output_args : {20067960: [{'papier': 20095193, 'carton': 20095194, 'metal': 20095195, 'pet_clair': 20095196, 'pehd': 20095197, 'flux_dev': 20095198, 'film_dev_souple': 20095199, 'ela': 20095200, 'sac_om_plein': 20095201, 'textiles': 20095202, 'verre': 20095203, 'organique': 20095204, 'dasri': 20095205, 'masque': 20095206, 'encombrant': 20095207, 'autre_non_emballage': 20095208, 'environnement': 20095209, 'mal_croppe': 20095210, 'flou': 20095211, 'pet_fonce': 20095212, 'pet_opaque': 20095213, 'barquette_opaque': 20095214, 'film_plastique': 20095215, 'autre_emballage': 20095216, 'sac': 20095217}]} args : 20067960 depend.output_id : 0 We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :9, first value : ((1332932498, 3943.212340628107, 492609224), (1332932498, -0.20728687526910763, 496442774), '0.2509548301582073') After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20067960) Here we display some param of map_info ! map_filenames : {'temp/1738662509_3545601_1332932560_f825d98c90562b05a1d90f88c89aab48.jpg': 1332932560, 'temp/1738662509_3545601_1332932544_18f92c466b90686e9886610cb819e00c.jpg': 1332932544, 'temp/1738662509_3545601_1332932511_16c7da5397c785a490147ea41c78994c.jpg': 1332932511, 'temp/1738662509_3545601_1332932508_431fce3a404cfe9f48781244eedecee8.jpg': 1332932508, 'temp/1738662509_3545601_1332932503_e18e192d9a8485075f9df5dfc7878fbc.jpg': 1332932503, 'temp/1738662509_3545601_1332932498_96b62cb3e7176983ef294cbb501ab4eb.jpg': 1332932498, 'temp/1738662509_3545601_1332932495_637bfae6a2f7fcb8fd08da5c18932253.jpg': 1332932495, 'temp/1738662509_3545601_1332932490_87bc005fe949be1b8f9856a0f84c9bca.jpg': 1332932490} map_photo_id_path_extension : {1332932560: {'path': 'temp/1738662509_3545601_1332932560_f825d98c90562b05a1d90f88c89aab48.jpg', 'extension': 'jpg'}, 1332932544: {'path': 'temp/1738662509_3545601_1332932544_18f92c466b90686e9886610cb819e00c.jpg', 'extension': 'jpg'}, 1332932511: {'path': 'temp/1738662509_3545601_1332932511_16c7da5397c785a490147ea41c78994c.jpg', 'extension': 'jpg'}, 1332932508: {'path': 'temp/1738662509_3545601_1332932508_431fce3a404cfe9f48781244eedecee8.jpg', 'extension': 'jpg'}, 1332932503: {'path': 'temp/1738662509_3545601_1332932503_e18e192d9a8485075f9df5dfc7878fbc.jpg', 'extension': 'jpg'}, 1332932498: {'path': 'temp/1738662509_3545601_1332932498_96b62cb3e7176983ef294cbb501ab4eb.jpg', 'extension': 'jpg'}, 1332932495: {'path': 'temp/1738662509_3545601_1332932495_637bfae6a2f7fcb8fd08da5c18932253.jpg', 'extension': 'jpg'}, 1332932490: {'path': 'temp/1738662509_3545601_1332932490_87bc005fe949be1b8f9856a0f84c9bca.jpg', 'extension': 'jpg'}} map_subphoto_mainphoto : {} dans la step send mail cod work_area: /home/admin/workarea/git/Velours/python in order to get the selector url, please entre the license of selector results_COD_P20067960_04-02-2025_10_48_54.pdf 20095201 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=20095201 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1332952461: '1738228888_2065886_1332932511_16c7da5397c785a490147ea41c78994c_rle_crop_3644751453_0.png', 1332952462: '1738228888_2065886_1332932511_16c7da5397c785a490147ea41c78994c_rle_crop_3644751484_0.png', 1332952463: '1738228888_2065886_1332932508_431fce3a404cfe9f48781244eedecee8_rle_crop_3644754874_0.png', 1332952464: '1738228888_2065886_1332932508_431fce3a404cfe9f48781244eedecee8_rle_crop_3644754877_0.png', 1332952466: '1738228888_2065886_1332932508_431fce3a404cfe9f48781244eedecee8_rle_crop_3644754860_0.png', 1332952472: '1738228888_2065886_1332932498_96b62cb3e7176983ef294cbb501ab4eb_rle_crop_3644757433_0.png', 1332952473: '1738228888_2065886_1332932498_96b62cb3e7176983ef294cbb501ab4eb_rle_crop_3644757475_0.png', 1332952475: '1738228888_2065886_1332932495_637bfae6a2f7fcb8fd08da5c18932253_rle_crop_3644761403_0.png', 1332952477: '1738228888_2065886_1332932495_637bfae6a2f7fcb8fd08da5c18932253_rle_crop_3644761429_0.png', 1332952478: '1738228888_2065886_1332932495_637bfae6a2f7fcb8fd08da5c18932253_rle_crop_3644761422_0.png', 1332952486: '1738228888_2065886_1332932544_18f92c466b90686e9886610cb819e00c_rle_crop_3644742552_0.png', 1332952777: '1738228888_2065886_1332932511_16c7da5397c785a490147ea41c78994c_rle_crop_3644751490_0.png', 1332952787: '1738228888_2065886_1332932503_e18e192d9a8485075f9df5dfc7878fbc_rle_crop_3644757284_0.png', 1332952793: '1738228888_2065886_1332932498_96b62cb3e7176983ef294cbb501ab4eb_rle_crop_3644757464_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/30/60590810111b1feee03ca550d7bfe819_6257503.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/30/ad446479c0dd1d2a22d2d713a2d8b96d_17627817.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/30/d73aec3f0bb3343ee5784ca5bd379007_51564219.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/30/26c15b52f938d61502304f93e583e498_4086542.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/30/3b8bbd71669e6c2ba700e97ef0ee4d62_37873199.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/30/5c0f2a3b3b402f8df20ab3e2cb88a5b0_38429574.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/30/6bdbf2d5d6e205c4cd5db6e454d545e9_32440240.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/30/b88e2bdbe17edce2b7c5880b7a587d9a_91014222.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/30/8bcf8803195bc90438846df4177a8915_12803643.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/30/948a755e98e1352c69cec3d7f9ea307e_1024939.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/30/8b2de800bf65cb77cd327e761a37691e_35525844.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/30/ee45429930fe5c84e27c2120f1bef99d_41688079.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/30/0328f9fd6aac755b3b9b1b8340a6f673_72170122.png change filename to text .imagette200952011738662534/ imagette200952011738662534/1738228888_2065886_1332932498_96b62cb3e7176983ef294cbb501ab4eb_rle_crop_3644757433_0.png.png imagette200952011738662534/1738228888_2065886_1332932511_16c7da5397c785a490147ea41c78994c_rle_crop_3644751490_0.png.png imagette200952011738662534/1738228888_2065886_1332932508_431fce3a404cfe9f48781244eedecee8_rle_crop_3644754860_0.png.png imagette200952011738662534/1738228888_2065886_1332932498_96b62cb3e7176983ef294cbb501ab4eb_rle_crop_3644757475_0.png.png imagette200952011738662534/1738228888_2065886_1332932495_637bfae6a2f7fcb8fd08da5c18932253_rle_crop_3644761403_0.png.png imagette200952011738662534/1738228888_2065886_1332932508_431fce3a404cfe9f48781244eedecee8_rle_crop_3644754877_0.png.png imagette200952011738662534/1738228888_2065886_1332932498_96b62cb3e7176983ef294cbb501ab4eb_rle_crop_3644757464_0.png.png imagette200952011738662534/1738228888_2065886_1332932495_637bfae6a2f7fcb8fd08da5c18932253_rle_crop_3644761429_0.png.png imagette200952011738662534/1738228888_2065886_1332932511_16c7da5397c785a490147ea41c78994c_rle_crop_3644751484_0.png.png imagette200952011738662534/1738228888_2065886_1332932511_16c7da5397c785a490147ea41c78994c_rle_crop_3644751453_0.png.png imagette200952011738662534/1738228888_2065886_1332932503_e18e192d9a8485075f9df5dfc7878fbc_rle_crop_3644757284_0.png.png imagette200952011738662534/1738228888_2065886_1332932544_18f92c466b90686e9886610cb819e00c_rle_crop_3644742552_0.png.png imagette200952011738662534/1738228888_2065886_1332932508_431fce3a404cfe9f48781244eedecee8_rle_crop_3644754874_0.png.png imagette200952011738662534/1738228888_2065886_1332932495_637bfae6a2f7fcb8fd08da5c18932253_rle_crop_3644761422_0.png.png wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/30/4dca8b60b1fe918bb4d395fe3d927736_60289784.png imagette200952011738662534 20095202 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=20095202 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1332952778: '1738228888_2065886_1332932511_16c7da5397c785a490147ea41c78994c_rle_crop_3644751485_0.png'} change filename to text .imagette200952021738662536/ imagette200952021738662536/1738228888_2065886_1332932511_16c7da5397c785a490147ea41c78994c_rle_crop_3644751485_0.png.png wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/30/caa833c6e99eec4380c0b7f6ed8c2175_54822824.png imagette200952021738662536 20095203 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=20095203 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1332952225: '1738228888_2065886_1332932508_431fce3a404cfe9f48781244eedecee8_rle_crop_3644754871_0.png'} change filename to text .imagette200952031738662536/ imagette200952031738662536/1738228888_2065886_1332932508_431fce3a404cfe9f48781244eedecee8_rle_crop_3644754871_0.png.png imagette200952041738662536/ imagette200952051738662536/ imagette200952061738662536/ wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/30/a0e6cdc2ba790efd6825c4c90050bddb_360896.png imagette200952031738662536 20095204 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=20095204 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette200952041738662536 20095205 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=20095205 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette200952051738662536 20095206 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=20095206 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette200952061738662536 20095207 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=20095207 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1332951888: '1738228888_2065886_1332932495_637bfae6a2f7fcb8fd08da5c18932253_rle_crop_3644761440_0.png'} change filename to text .imagette200952071738662536/ imagette200952071738662536/1738228888_2065886_1332932495_637bfae6a2f7fcb8fd08da5c18932253_rle_crop_3644761440_0.png.png wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/30/eae73e24a69876c5abe218406b103249_71838808.png imagette200952071738662536 20095208 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=20095208 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1332951820: '1738228888_2065886_1332932511_16c7da5397c785a490147ea41c78994c_rle_crop_3644751487_0.png', 1332952227: '1738228888_2065886_1332932508_431fce3a404cfe9f48781244eedecee8_rle_crop_3644754882_0.png', 1332952366: '1738228888_2065886_1332932544_18f92c466b90686e9886610cb819e00c_rle_crop_3644742554_0.png', 1332952490: '1738228888_2065886_1332932503_e18e192d9a8485075f9df5dfc7878fbc_rle_crop_3644757286_0.png', 1332952811: '1738228888_2065886_1332932511_16c7da5397c785a490147ea41c78994c_rle_crop_3644751482_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/30/3b373dfb964688a7d4bc45e09cdcf0f8_991433.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/30/495f04afca0b534d2c7f13f12d5a27b7_56090703.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/30/826dcf1c6f44bb7a942300d79d212e5d_12375932.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/30/ae050efd1634f01bd52844c52c6788e5_39126895.png change filename to text .imagette200952081738662536/ imagette200952081738662536/1738228888_2065886_1332932508_431fce3a404cfe9f48781244eedecee8_rle_crop_3644754882_0.png.png imagette200952081738662536/1738228888_2065886_1332932511_16c7da5397c785a490147ea41c78994c_rle_crop_3644751487_0.png.png imagette200952081738662536/1738228888_2065886_1332932503_e18e192d9a8485075f9df5dfc7878fbc_rle_crop_3644757286_0.png.png imagette200952081738662536/1738228888_2065886_1332932511_16c7da5397c785a490147ea41c78994c_rle_crop_3644751482_0.png.png imagette200952081738662536/1738228888_2065886_1332932544_18f92c466b90686e9886610cb819e00c_rle_crop_3644742554_0.png.png imagette200952171738662537/ wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/30/91b3ae751c3057fc0a9691e7dd634961_6154481.png imagette200952081738662536 20095217 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=20095217 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette200952171738662537 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=20067960 and hashtag_type = 4857 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/20071221,20071222,20071223,20071224,20071225,20071230,20071232,20071233,20071234,20071235,20071236,20071237,20071239,20071240,20071242,20071243,20071244,20071245,20071246?tags=papier,carton,metal,pet_clair,pehd,ela,textiles,verre,organique,dasri,masque,encombrant,autre_non_emballage,environnement,flux_dev,mal_croppe,flou,film_dev_souple,sac_om_plein&datou_id_consolidate=4742&port_consolidate=20067960 your option no_mail is active, we will not send the real mail to your client args[1332932560] : ((1332932560, 3064.0332685449803, 492609224), (1332932560, -0.1797352664947871, 496442774), '0.2509548301582073') We are sending mail with results at kexin@fotonower.com args[1332932544] : ((1332932544, 2990.9779394966263, 492609224), (1332932544, -0.25889489248919983, 496442774), '0.2509548301582073') We are sending mail with results at kexin@fotonower.com args[1332932511] : ((1332932511, 2823.718396737555, 492609224), (1332932511, -0.33698148498116265, 496442774), '0.2509548301582073') We are sending mail with results at kexin@fotonower.com args[1332932508] : ((1332932508, 1849.2984414606453, 2107751945), (1332932508, -0.21841885304906003, 496442774), '0.2509548301582073') We are sending mail with results at kexin@fotonower.com args[1332932503] : ((1332932503, 2174.2053959979, 492609224), (1332932503, -0.19036639336076308, 496442774), '0.2509548301582073') We are sending mail with results at kexin@fotonower.com args[1332932498] : ((1332932498, 3943.212340628107, 492609224), (1332932498, -0.20728687526910763, 496442774), '0.2509548301582073') We are sending mail with results at kexin@fotonower.com args[1332932495] : ((1332932495, 2280.2987466891072, 492609224), (1332932495, -0.1978001704927894, 496442774), '0.2509548301582073') We are sending mail with results at kexin@fotonower.com args[1332932490] : ((1332932490, 864.6973179222988, 2107751945), (1332932490, -0.08654831603479997, 496442774), '0.2509548301582073') We are sending mail with results at kexin@fotonower.com refus_total : 0.2509548301582073 2022-04-13 10:29:59 0 start upload file to ovh https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_COD_P20067960_04-02-2025_10_48_54.pdf results_COD_P20067960_04-02-2025_10_48_54.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_COD_P20067960_04-02-2025_10_48_54.pdf start insert file to database insert into MTRUser.mtr_files (mtd_id,mtr_portfolio_id,text,url,format,tags,file_size,value) values ('4742','20067960','results_COD_P20067960_04-02-2025_10_48_54.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_COD_P20067960_04-02-2025_10_48_54.pdf','pdf','','1.03','0.2509548301582073') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([20067960]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1332932560, 1332932544, 1332932511, 1332932508, 1332932503, 1332932498, 1332932495, 1332932490] map_info['map_portfolio_photo'] : {20067960: [1332932560, 1332932544, 1332932511, 1332932508, 1332932503, 1332932498, 1332932495, 1332932490]} final : False mtd_id 4742 list_pids : [1332932560, 1332932544, 1332932511, 1332932508, 1332932503, 1332932498, 1332932495, 1332932490] Looping around the photos to save general results len do output : 0 before output type Used above Managing all output in save final without adding information in the mtr_datou_result ('4742', None, None, None, None, None, None, None, '2544296') ('4742', '20067960', '1332932560', None, None, None, None, None, '2544296') ('4742', None, None, None, None, None, None, None, '2544296') ('4742', '20067960', '1332932544', None, None, None, None, None, '2544296') ('4742', None, None, None, None, None, None, None, '2544296') ('4742', '20067960', '1332932511', None, None, None, None, None, '2544296') ('4742', None, None, None, None, None, None, None, '2544296') ('4742', '20067960', '1332932508', None, None, None, None, None, '2544296') ('4742', None, None, None, None, None, None, None, '2544296') ('4742', '20067960', '1332932503', None, None, None, None, None, '2544296') ('4742', None, None, None, None, None, None, None, '2544296') ('4742', '20067960', '1332932498', None, None, None, None, None, '2544296') ('4742', None, None, None, None, None, None, None, '2544296') ('4742', '20067960', '1332932495', None, None, None, None, None, '2544296') ('4742', None, None, None, None, None, None, None, '2544296') ('4742', '20067960', '1332932490', None, None, None, None, None, '2544296') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 8 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4742', '20067960', '1332932560', None, None, None, None, None, '2544296'), ('4742', '20067960', '1332932544', None, None, None, None, None, '2544296'), ('4742', '20067960', '1332932511', None, None, None, None, None, '2544296'), ('4742', '20067960', '1332932508', None, None, None, None, None, '2544296'), ('4742', '20067960', '1332932503', None, None, None, None, None, '2544296'), ('4742', '20067960', '1332932498', None, None, None, None, None, '2544296'), ('4742', '20067960', '1332932495', None, None, None, None, None, '2544296'), ('4742', '20067960', '1332932490', None, None, None, None, None, '2544296')] time used for this insertion : 0.013942956924438477 save_final save missing photos in datou_result : time spend for datou_step_exec : 6.159722089767456 time spend to save output : 0.014356374740600586 total time spend for step 8 : 6.174078464508057 step9:split_time_score Tue Feb 4 10:49:00 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! complete output_args for input 1 : VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :0, first value : [] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20067960) Here we display some param of map_info ! map_filenames : {'temp/1738662509_3545601_1332932560_f825d98c90562b05a1d90f88c89aab48.jpg': 1332932560, 'temp/1738662509_3545601_1332932544_18f92c466b90686e9886610cb819e00c.jpg': 1332932544, 'temp/1738662509_3545601_1332932511_16c7da5397c785a490147ea41c78994c.jpg': 1332932511, 'temp/1738662509_3545601_1332932508_431fce3a404cfe9f48781244eedecee8.jpg': 1332932508, 'temp/1738662509_3545601_1332932503_e18e192d9a8485075f9df5dfc7878fbc.jpg': 1332932503, 'temp/1738662509_3545601_1332932498_96b62cb3e7176983ef294cbb501ab4eb.jpg': 1332932498, 'temp/1738662509_3545601_1332932495_637bfae6a2f7fcb8fd08da5c18932253.jpg': 1332932495, 'temp/1738662509_3545601_1332932490_87bc005fe949be1b8f9856a0f84c9bca.jpg': 1332932490} map_photo_id_path_extension : {1332932560: {'path': 'temp/1738662509_3545601_1332932560_f825d98c90562b05a1d90f88c89aab48.jpg', 'extension': 'jpg'}, 1332932544: {'path': 'temp/1738662509_3545601_1332932544_18f92c466b90686e9886610cb819e00c.jpg', 'extension': 'jpg'}, 1332932511: {'path': 'temp/1738662509_3545601_1332932511_16c7da5397c785a490147ea41c78994c.jpg', 'extension': 'jpg'}, 1332932508: {'path': 'temp/1738662509_3545601_1332932508_431fce3a404cfe9f48781244eedecee8.jpg', 'extension': 'jpg'}, 1332932503: {'path': 'temp/1738662509_3545601_1332932503_e18e192d9a8485075f9df5dfc7878fbc.jpg', 'extension': 'jpg'}, 1332932498: {'path': 'temp/1738662509_3545601_1332932498_96b62cb3e7176983ef294cbb501ab4eb.jpg', 'extension': 'jpg'}, 1332932495: {'path': 'temp/1738662509_3545601_1332932495_637bfae6a2f7fcb8fd08da5c18932253.jpg', 'extension': 'jpg'}, 1332932490: {'path': 'temp/1738662509_3545601_1332932490_87bc005fe949be1b8f9856a0f84c9bca.jpg', 'extension': 'jpg'}} map_subphoto_mainphoto : {} begin split time score SELECT app_name, token FROM MTRUser.mtr_app_api_token WHERE mtr_user_id=1107 AND app_name="token_split_time_score" AND expire_at > NOW() select distinct dp.name from MTRPhoto.dashboard_entry_day ded, MTRPhoto.dashboard_places dp, MTRPhoto.dashboard_results dr where ded.dashboard_place_id = dp.id and ded.last_run_id = dr.dashboard_run_id and dp.id = ded.dashboard_place_id and dr.mtr_portfolio_id = 20067960; (('SyctomXV_Mask_23Q4',),) TODO : Insert select and so on Begin split_port_in_batch_balle thcls : [{'id': 861, 'mtr_user_id': 31, 'name': 'Rungis_class_dechets_1212', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': 'Rungis_Aluminium,Rungis_Carton,Rungis_Papier,Rungis_Plastique_clair,Rungis_Plastique_dur,Rungis_Plastique_fonce,Rungis_Tapis_vide,Rungis_Tetrapak', 'svm_portfolios_learning': '1160730,571842,571844,571839,571933,571840,571841,572307', 'photo_hashtag_type': 999, 'photo_desc_type': 3963, 'type_classification': 'caffe', 'hashtag_id_list': '2107751280,2107750907,2107750908,2107750909,2107750910,2107750911,2107750912,2107750913'}] thcls : [{'id': 758, 'mtr_user_id': 31, 'name': 'Rungis_amount_dechets_fall_2018_v2', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': '05102018_Papier_non_papier_dense,05102018_Papier_non_papier_peu_dense,05102018_Papier_non_papier_presque_vide,05102018_Papier_non_papier_tres_dense,05102018_Papier_non_papier_tres_peu_dense', 'svm_portfolios_learning': '1108385,1108386,1108388,1108384,1108387', 'photo_hashtag_type': 856, 'photo_desc_type': 3853, 'type_classification': 'caffe', 'hashtag_id_list': '2107751013,2107751014,2107751015,2107751016,2107751017'}] select SUBSTRING(ph.text,16,2) as h, count(*) from MTRUser.mtr_portfolio_photos mpp inner join MTRBack.photos ph on mpp.mtr_photo_id = ph.photo_id where mpp.mtr_portfolio_id = 20067960 group by h (('54', 1), ('55', 6), ('56', 1)) SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=20067960 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 100000 SELECT cps.photo_id, cps.score, h.hashtag, cps.hashtag_id, mpp1.mtr_portfolio_id FROM MTRPhoto.class_photo_score cps, MTRBack.hashtags h, MTRUser.mtr_portfolio_photos mpp1 where mpp1.mtr_photo_id=cps.photo_id AND h.hashtag_id=cps.hashtag_id AND mpp1.hide_status=0 AND mpp1.mtr_portfolio_id in (20067960) AND cps.thcl in (861) order by cps.score desc LIMIT 0, 100000 SELECT cps.photo_id, cps.score, h.hashtag, cps.hashtag_id, mpp1.mtr_portfolio_id FROM MTRPhoto.class_photo_score cps, MTRBack.hashtags h, MTRUser.mtr_portfolio_photos mpp1 where mpp1.mtr_photo_id=cps.photo_id AND h.hashtag_id=cps.hashtag_id AND mpp1.hide_status=0 AND mpp1.mtr_portfolio_id in (20067960) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 30012025 20067960 Nombre de photos uploadées : 8 / 23040 (0%) 30012025 20067960 Nombre de photos taguées (types de déchets): 0 / 8 (0%) 30012025 20067960 Nombre de photos taguées (volume) : 0 / 8 (0%) [{'photo_id': 1332932490, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/30/87bc005fe949be1b8f9856a0f84c9bca.jpg', 'username': None, 'uploaded_at': 1738224872, 'text': 'IMG_20250130_075415.jpg'}, {'photo_id': 1332932495, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/30/637bfae6a2f7fcb8fd08da5c18932253.jpg', 'username': None, 'uploaded_at': 1738224872, 'text': 'IMG_20250130_075511.jpg'}, {'photo_id': 1332932544, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/30/18f92c466b90686e9886610cb819e00c.jpg', 'username': None, 'uploaded_at': 1738224931, 'text': 'IMG_20250130_075553.jpg'}, {'photo_id': 1332932508, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/30/431fce3a404cfe9f48781244eedecee8.jpg', 'username': None, 'uploaded_at': 1738224872, 'text': 'IMG_20250130_075535.jpg'}] 0 [] elapsed_time : load_data_split_time_score 6.9141387939453125e-06 elapsed_time : order_list_meta_photo_and_scores 2.5987625122070312e-05 ???????? elapsed_time : fill_and_build_computed_from_old_data 0.0005667209625244141 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 188, 20067960, '2025-01-30' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1565665,1107,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.022357463836669922 We will return after consolidate but for now we need the day, how to get it, for now depending on the previous heavy steps SELECT dri.dashboard_entry_day, dr.dashboard_run_id, dr.mtr_portfolio_id, dr.id, dr.hashtag, dr.completion_json FROM MTRPhoto.dashboard_results dr, MTRPhoto.dashboard_run_ids dri, MTRPhoto.dashboard_entry_day ded WHERE ded.id= 1565665 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1565665, 'dashboard_run_id': 1573553, 'mtr_portfolio_id': 20067960, 'dashboard_result_id': 8594941, 'hashtag': '_______entrant', 'completion_json': "{'max_time_prod_two_photos': 0, 'car_plate': 'ED708MJ', 'plate_origin_photo': 1332932490, 'plate_crop_photo': 0, 'plate_crops': {'hashtag': 'plate_crops', 'sub_port_id': 0, 'pht': 4403}, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_COD_P20067960_03-02-2025_10_10_56.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 20095193, 'pht': 4857}, 'carton': {'hashtag': 'carton', 'sub_port_id': 20095194, 'pht': 4857}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20095195, 'pht': 4857}, 'pet_clair': {'hashtag': 'pet_clair', 'sub_port_id': 20095196, 'pht': 4857}, 'pehd': {'hashtag': 'pehd', 'sub_port_id': 20095197, 'pht': 4857}, 'pet_fonce': {'hashtag': 'pet_fonce', 'sub_port_id': 20095212, 'pht': 4857}, 'pet_opaque': {'hashtag': 'pet_opaque', 'sub_port_id': 20095213, 'pht': 4857}, 'barquette_opaque': {'hashtag': 'barquette_opaque', 'sub_port_id': 20095214, 'pht': 4857}, 'film_plastique': {'hashtag': 'film_plastique', 'sub_port_id': 20095215, 'pht': 4857}, 'ela': {'hashtag': 'ela', 'sub_port_id': 20095200, 'pht': 4857}, 'sac': {'hashtag': 'sac', 'sub_port_id': 20095217, 'pht': 4857}, 'textiles': {'hashtag': 'textiles', 'sub_port_id': 20095202, 'pht': 4857}, 'verre': {'hashtag': 'verre', 'sub_port_id': 20095203, 'pht': 4857}, 'organique': {'hashtag': 'organique', 'sub_port_id': 20095204, 'pht': 4857}, 'dasri': {'hashtag': 'dasri', 'sub_port_id': 20095205, 'pht': 4857}, 'masque': {'hashtag': 'masque', 'sub_port_id': 20095206, 'pht': 4857}, 'encombrant': {'hashtag': 'encombrant', 'sub_port_id': 20095207, 'pht': 4857}, 'autre_emballage': {'hashtag': 'autre_emballage', 'sub_port_id': 20095216, 'pht': 4857}, 'autre_non_emballage': {'hashtag': 'autre_non_emballage', 'sub_port_id': 20095208, 'pht': 4857}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20095209, 'pht': 4857}, 'autre': {'hashtag': 'autre', 'sub_port_id': 20071215, 'pht': 4855}, 'flux_dev': {'hashtag': 'flux_dev', 'sub_port_id': 20095198, 'pht': 4857}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20095210, 'pht': 4857}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20095211, 'pht': 4857}, 'film_dev_souple': {'hashtag': 'film_dev_souple', 'sub_port_id': 20095199, 'pht': 4857}, 'sac_om_plein': {'hashtag': 'sac_om_plein', 'sub_port_id': 20095201, 'pht': 4857}}"}, {'dashboat_entry_day': 1565665, 'dashboard_run_id': 1573553, 'mtr_portfolio_id': 20067961, 'dashboard_result_id': 8594942, 'hashtag': '_______entrant', 'completion_json': "{'max_time_prod_two_photos': 0, 'car_plate': 'FG666WC', 'plate_origin_photo': 1332932571, 'plate_crop_photo': 0, 'plate_crops': {'hashtag': 'plate_crops', 'sub_port_id': 0, 'pht': 4403}, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_COD_P20067961_31-01-2025_11_40_41.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 20095547, 'pht': 4857}, 'carton': {'hashtag': 'carton', 'sub_port_id': 20095548, 'pht': 4857}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20095549, 'pht': 4857}, 'pet_clair': {'hashtag': 'pet_clair', 'sub_port_id': 20095550, 'pht': 4857}, 'pehd': {'hashtag': 'pehd', 'sub_port_id': 20095551, 'pht': 4857}, 'pet_fonce': {'hashtag': 'pet_fonce', 'sub_port_id': 20095567, 'pht': 4857}, 'pet_opaque': {'hashtag': 'pet_opaque', 'sub_port_id': 20095568, 'pht': 4857}, 'barquette_opaque': {'hashtag': 'barquette_opaque', 'sub_port_id': 20095569, 'pht': 4857}, 'film_plastique': {'hashtag': 'film_plastique', 'sub_port_id': 20095570, 'pht': 4857}, 'ela': {'hashtag': 'ela', 'sub_port_id': 20095554, 'pht': 4857}, 'sac': {'hashtag': 'sac', 'sub_port_id': 20095572, 'pht': 4857}, 'textiles': {'hashtag': 'textiles', 'sub_port_id': 20095557, 'pht': 4857}, 'verre': {'hashtag': 'verre', 'sub_port_id': 20095558, 'pht': 4857}, 'organique': {'hashtag': 'organique', 'sub_port_id': 20095559, 'pht': 4857}, 'dasri': {'hashtag': 'dasri', 'sub_port_id': 20095560, 'pht': 4857}, 'masque': {'hashtag': 'masque', 'sub_port_id': 20095561, 'pht': 4857}, 'encombrant': {'hashtag': 'encombrant', 'sub_port_id': 20095562, 'pht': 4857}, 'autre_emballage': {'hashtag': 'autre_emballage', 'sub_port_id': 20095571, 'pht': 4857}, 'autre_non_emballage': {'hashtag': 'autre_non_emballage', 'sub_port_id': 20095563, 'pht': 4857}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20095564, 'pht': 4857}, 'autre': {'hashtag': 'autre', 'sub_port_id': 20070381, 'pht': 4855}, 'flux_dev': {'hashtag': 'flux_dev', 'sub_port_id': 20095552, 'pht': 4857}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20095565, 'pht': 4857}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20095566, 'pht': 4857}, 'film_dev_souple': {'hashtag': 'film_dev_souple', 'sub_port_id': 20095553, 'pht': 4857}, 'sac_om_plein': {'hashtag': 'sac_om_plein', 'sub_port_id': 20095556, 'pht': 4857}}"}, {'dashboat_entry_day': 1565665, 'dashboard_run_id': 1573553, 'mtr_portfolio_id': 20068020, 'dashboard_result_id': 8594943, 'hashtag': '_______entrant', 'completion_json': "{'max_time_prod_two_photos': 0, 'car_plate': 'FF330PK', 'plate_origin_photo': 1332932767, 'plate_crop_photo': 0, 'plate_crops': {'hashtag': 'plate_crops', 'sub_port_id': 0, 'pht': 4403}, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_COD_P20068020_31-01-2025_11_08_39.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 20077241, 'pht': 4857}, 'carton': {'hashtag': 'carton', 'sub_port_id': 20077242, 'pht': 4857}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20077243, 'pht': 4857}, 'pet_clair': {'hashtag': 'pet_clair', 'sub_port_id': 20077244, 'pht': 4857}, 'pehd': {'hashtag': 'pehd', 'sub_port_id': 20077245, 'pht': 4857}, 'pet_fonce': {'hashtag': 'pet_fonce', 'sub_port_id': 20077260, 'pht': 4857}, 'pet_opaque': {'hashtag': 'pet_opaque', 'sub_port_id': 20077261, 'pht': 4857}, 'barquette_opaque': {'hashtag': 'barquette_opaque', 'sub_port_id': 20077262, 'pht': 4857}, 'film_plastique': {'hashtag': 'film_plastique', 'sub_port_id': 20077263, 'pht': 4857}, 'ela': {'hashtag': 'ela', 'sub_port_id': 20077248, 'pht': 4857}, 'sac': {'hashtag': 'sac', 'sub_port_id': 20077265, 'pht': 4857}, 'textiles': {'hashtag': 'textiles', 'sub_port_id': 20077250, 'pht': 4857}, 'verre': {'hashtag': 'verre', 'sub_port_id': 20077251, 'pht': 4857}, 'organique': {'hashtag': 'organique', 'sub_port_id': 20077252, 'pht': 4857}, 'dasri': {'hashtag': 'dasri', 'sub_port_id': 20077253, 'pht': 4857}, 'masque': {'hashtag': 'masque', 'sub_port_id': 20077254, 'pht': 4857}, 'encombrant': {'hashtag': 'encombrant', 'sub_port_id': 20077255, 'pht': 4857}, 'autre_emballage': {'hashtag': 'autre_emballage', 'sub_port_id': 20077264, 'pht': 4857}, 'autre_non_emballage': {'hashtag': 'autre_non_emballage', 'sub_port_id': 20077256, 'pht': 4857}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20077257, 'pht': 4857}, 'autre': {'hashtag': 'autre', 'sub_port_id': 20068997, 'pht': 4855}, 'flux_dev': {'hashtag': 'flux_dev', 'sub_port_id': 20077246, 'pht': 4857}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20077258, 'pht': 4857}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20077259, 'pht': 4857}, 'film_dev_souple': {'hashtag': 'film_dev_souple', 'sub_port_id': 20077247, 'pht': 4857}, 'sac_om_plein': {'hashtag': 'sac_om_plein', 'sub_port_id': 20077249, 'pht': 4857}}"}, {'dashboat_entry_day': 1565665, 'dashboard_run_id': 1573553, 'mtr_portfolio_id': 20068021, 'dashboard_result_id': 8594944, 'hashtag': '_______entrant', 'completion_json': "{'max_time_prod_two_photos': 0, 'car_plate': 'FH669TV', 'plate_origin_photo': 1332932833, 'plate_crop_photo': 0, 'plate_crops': {'hashtag': 'plate_crops', 'sub_port_id': 0, 'pht': 4403}, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_COD_P20068021_31-01-2025_04_28_41.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 20074007, 'pht': 4857}, 'carton': {'hashtag': 'carton', 'sub_port_id': 20074008, 'pht': 4857}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20074009, 'pht': 4857}, 'pet_clair': {'hashtag': 'pet_clair', 'sub_port_id': 20074010, 'pht': 4857}, 'pehd': {'hashtag': 'pehd', 'sub_port_id': 20074011, 'pht': 4857}, 'pet_fonce': {'hashtag': 'pet_fonce', 'sub_port_id': 20074026, 'pht': 4857}, 'pet_opaque': {'hashtag': 'pet_opaque', 'sub_port_id': 20074027, 'pht': 4857}, 'barquette_opaque': {'hashtag': 'barquette_opaque', 'sub_port_id': 20074028, 'pht': 4857}, 'film_plastique': {'hashtag': 'film_plastique', 'sub_port_id': 20074029, 'pht': 4857}, 'ela': {'hashtag': 'ela', 'sub_port_id': 20074014, 'pht': 4857}, 'sac': {'hashtag': 'sac', 'sub_port_id': 20074031, 'pht': 4857}, 'textiles': {'hashtag': 'textiles', 'sub_port_id': 20074016, 'pht': 4857}, 'verre': {'hashtag': 'verre', 'sub_port_id': 20074017, 'pht': 4857}, 'organique': {'hashtag': 'organique', 'sub_port_id': 20074018, 'pht': 4857}, 'dasri': {'hashtag': 'dasri', 'sub_port_id': 20074019, 'pht': 4857}, 'masque': {'hashtag': 'masque', 'sub_port_id': 20074020, 'pht': 4857}, 'encombrant': {'hashtag': 'encombrant', 'sub_port_id': 20074021, 'pht': 4857}, 'autre_emballage': {'hashtag': 'autre_emballage', 'sub_port_id': 20074030, 'pht': 4857}, 'autre_non_emballage': {'hashtag': 'autre_non_emballage', 'sub_port_id': 20074022, 'pht': 4857}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20074023, 'pht': 4857}, 'autre': {'hashtag': 'autre', 'sub_port_id': 20069435, 'pht': 4855}, 'flux_dev': {'hashtag': 'flux_dev', 'sub_port_id': 20074012, 'pht': 4857}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20074024, 'pht': 4857}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20074025, 'pht': 4857}, 'film_dev_souple': {'hashtag': 'film_dev_souple', 'sub_port_id': 20074013, 'pht': 4857}, 'sac_om_plein': {'hashtag': 'sac_om_plein', 'sub_port_id': 20074015, 'pht': 4857}}"}, {'dashboat_entry_day': 1565665, 'dashboard_run_id': 1573553, 'mtr_portfolio_id': 20072575, 'dashboard_result_id': 8594945, 'hashtag': '_______entrant', 'completion_json': "{'max_time_prod_two_photos': 0, 'car_plate': 'EH034LG', 'plate_origin_photo': 1332974844, 'plate_crop_photo': 0, 'plate_crops': {'hashtag': 'plate_crops', 'sub_port_id': 0, 'pht': 4403}, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_COD_P20072575_04-02-2025_10_46_50.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 20095872, 'pht': 4857}, 'carton': {'hashtag': 'carton', 'sub_port_id': 20095873, 'pht': 4857}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20095874, 'pht': 4857}, 'pet_clair': {'hashtag': 'pet_clair', 'sub_port_id': 20095875, 'pht': 4857}, 'pehd': {'hashtag': 'pehd', 'sub_port_id': 20095876, 'pht': 4857}, 'pet_fonce': {'hashtag': 'pet_fonce', 'sub_port_id': 20095892, 'pht': 4857}, 'pet_opaque': {'hashtag': 'pet_opaque', 'sub_port_id': 20095893, 'pht': 4857}, 'barquette_opaque': {'hashtag': 'barquette_opaque', 'sub_port_id': 20095894, 'pht': 4857}, 'film_plastique': {'hashtag': 'film_plastique', 'sub_port_id': 20095895, 'pht': 4857}, 'ela': {'hashtag': 'ela', 'sub_port_id': 20095879, 'pht': 4857}, 'sac': {'hashtag': 'sac', 'sub_port_id': 20095897, 'pht': 4857}, 'textiles': {'hashtag': 'textiles', 'sub_port_id': 20095881, 'pht': 4857}, 'verre': {'hashtag': 'verre', 'sub_port_id': 20095882, 'pht': 4857}, 'organique': {'hashtag': 'organique', 'sub_port_id': 20095883, 'pht': 4857}, 'dasri': {'hashtag': 'dasri', 'sub_port_id': 20095884, 'pht': 4857}, 'masque': {'hashtag': 'masque', 'sub_port_id': 20095885, 'pht': 4857}, 'encombrant': {'hashtag': 'encombrant', 'sub_port_id': 20095886, 'pht': 4857}, 'autre_emballage': {'hashtag': 'autre_emballage', 'sub_port_id': 20095896, 'pht': 4857}, 'autre_non_emballage': {'hashtag': 'autre_non_emballage', 'sub_port_id': 20095887, 'pht': 4857}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20095888, 'pht': 4857}, 'autre': {'hashtag': 'autre', 'sub_port_id': 20073540, 'pht': 4855}, 'flux_dev': {'hashtag': 'flux_dev', 'sub_port_id': 20095877, 'pht': 4857}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20095889, 'pht': 4857}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20095891, 'pht': 4857}, 'film_dev_souple': {'hashtag': 'film_dev_souple', 'sub_port_id': 20095878, 'pht': 4857}, 'sac_om_plein': {'hashtag': 'sac_om_plein', 'sub_port_id': 20095880, 'pht': 4857}}"}] SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20067960 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4742 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4742, 'mtr_datou_current_id': 2544296, 'mtr_portfolio_id': 20067960, 'created_at': datetime.datetime(2025, 2, 4, 10, 48, 54), 'result': '0.2509548301582073', 'result_long': None, 'result_double': None}] Qualite : 0.2509548301582073 select url from MTRUser.mtr_files where mtd_id = 4742 and mtr_portfolio_id = 20067960 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_COD_P20067960_04-02-2025_10_48_54.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20067960 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'car_plate': 'ED708MJ', 'plate_origin_photo': 1332932490, 'plate_crop_photo': 0, 'plate_crops': {'hashtag': 'plate_crops', 'sub_port_id': 0, 'pht': 4403}, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_COD_P20067960_04-02-2025_10_48_54.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 20095193, 'pht': 4857}, 'carton': {'hashtag': 'carton', 'sub_port_id': 20095194, 'pht': 4857}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20095195, 'pht': 4857}, 'pet_clair': {'hashtag': 'pet_clair', 'sub_port_id': 20095196, 'pht': 4857}, 'pehd': {'hashtag': 'pehd', 'sub_port_id': 20095197, 'pht': 4857}, 'pet_fonce': {'hashtag': 'pet_fonce', 'sub_port_id': 20095212, 'pht': 4857}, 'pet_opaque': {'hashtag': 'pet_opaque', 'sub_port_id': 20095213, 'pht': 4857}, 'barquette_opaque': {'hashtag': 'barquette_opaque', 'sub_port_id': 20095214, 'pht': 4857}, 'film_plastique': {'hashtag': 'film_plastique', 'sub_port_id': 20095215, 'pht': 4857}, 'ela': {'hashtag': 'ela', 'sub_port_id': 20095200, 'pht': 4857}, 'sac': {'hashtag': 'sac', 'sub_port_id': 20095217, 'pht': 4857}, 'textiles': {'hashtag': 'textiles', 'sub_port_id': 20095202, 'pht': 4857}, 'verre': {'hashtag': 'verre', 'sub_port_id': 20095203, 'pht': 4857}, 'organique': {'hashtag': 'organique', 'sub_port_id': 20095204, 'pht': 4857}, 'dasri': {'hashtag': 'dasri', 'sub_port_id': 20095205, 'pht': 4857}, 'masque': {'hashtag': 'masque', 'sub_port_id': 20095206, 'pht': 4857}, 'encombrant': {'hashtag': 'encombrant', 'sub_port_id': 20095207, 'pht': 4857}, 'autre_emballage': {'hashtag': 'autre_emballage', 'sub_port_id': 20095216, 'pht': 4857}, 'autre_non_emballage': {'hashtag': 'autre_non_emballage', 'sub_port_id': 20095208, 'pht': 4857}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20095209, 'pht': 4857}, 'autre': {'hashtag': 'autre', 'sub_port_id': 20071215, 'pht': 4855}, 'flux_dev': {'hashtag': 'flux_dev', 'sub_port_id': 20095198, 'pht': 4857}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20095210, 'pht': 4857}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20095211, 'pht': 4857}, 'film_dev_souple': {'hashtag': 'film_dev_souple', 'sub_port_id': 20095199, 'pht': 4857}, 'sac_om_plein': {'hashtag': 'sac_om_plein', 'sub_port_id': 20095201, 'pht': 4857}}" where mtr_portfolio_id = 20067960 and dashboard_run_id = 1573553 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4742 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4742 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4742 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4742 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13169 copy_chis is not consistent : 2 used against 1 in the step definition ! WARNING : number of outputs for step 13170 consolidate_hashtags_from_manual_portfolio is not consistent : 2 used against 1 in the step definition ! WARNING : number of inputs for step 13167 rle_unique_nms_with_priority is not consistent : 3 used against 1 in the step definition ! WARNING : number of outputs for step 13167 rle_unique_nms_with_priority is not consistent : 2 used against 1 in the step definition ! WARNING : number of outputs for step 13174 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 13168 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! Step 13171 blur_detection have less inputs used (0) than in the step definition (1) : maybe we manage optionnal inputs ! Step 13172 brightness have less inputs used (0) than in the step definition (1) : maybe we manage optionnal inputs ! Step 13173 send_mail_cod have less inputs used (4) than in the step definition (5) : maybe we manage optionnal inputs ! Step 13175 split_time_score have less inputs used (1) than in the step definition (2) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13169 have datatype=11 whereas input 0 of step 13167 have datatype=2 WARNING : type of output 1 of step 13170 doesn't seem to be define in the database( WARNING : type of input 3 of step 13168 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : type of output 1 of step 13170 doesn't seem to be define in the database( WARNING : type of input 1 of step 13167 doesn't seem to be define in the database( WARNING : output 0 of step 13174 have datatype=10 whereas input 3 of step 13173 have datatype=6 WARNING : type of input 1 of step 13174 doesn't seem to be define in the database( WARNING : output 1 of step 13167 have datatype=7 whereas input 1 of step 13174 have datatype=None WARNING : type of output 1 of step 13174 doesn't seem to be define in the database( WARNING : type of input 4 of step 13168 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : type of output 1 of step 13169 doesn't seem to be define in the database( WARNING : type of input 1 of step 13170 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20067960 AND mptpi.`type`=4857 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8594941, 0.2509548301582073, "{'max_time_prod_two_photos': 0, 'car_plate': 'ED708MJ', 'plate_origin_photo': 1332932490, 'plate_crop_photo': 0, 'plate_crops': {'hashtag': 'plate_crops', 'sub_port_id': 0, 'pht': 4403}, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_COD_P20067960_04-02-2025_10_48_54.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 20095193, 'pht': 4857}, 'carton': {'hashtag': 'carton', 'sub_port_id': 20095194, 'pht': 4857}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20095195, 'pht': 4857}, 'pet_clair': {'hashtag': 'pet_clair', 'sub_port_id': 20095196, 'pht': 4857}, 'pehd': {'hashtag': 'pehd', 'sub_port_id': 20095197, 'pht': 4857}, 'pet_fonce': {'hashtag': 'pet_fonce', 'sub_port_id': 20095212, 'pht': 4857}, 'pet_opaque': {'hashtag': 'pet_opaque', 'sub_port_id': 20095213, 'pht': 4857}, 'barquette_opaque': {'hashtag': 'barquette_opaque', 'sub_port_id': 20095214, 'pht': 4857}, 'film_plastique': {'hashtag': 'film_plastique', 'sub_port_id': 20095215, 'pht': 4857}, 'ela': {'hashtag': 'ela', 'sub_port_id': 20095200, 'pht': 4857}, 'sac': {'hashtag': 'sac', 'sub_port_id': 20095217, 'pht': 4857}, 'textiles': {'hashtag': 'textiles', 'sub_port_id': 20095202, 'pht': 4857}, 'verre': {'hashtag': 'verre', 'sub_port_id': 20095203, 'pht': 4857}, 'organique': {'hashtag': 'organique', 'sub_port_id': 20095204, 'pht': 4857}, 'dasri': {'hashtag': 'dasri', 'sub_port_id': 20095205, 'pht': 4857}, 'masque': {'hashtag': 'masque', 'sub_port_id': 20095206, 'pht': 4857}, 'encombrant': {'hashtag': 'encombrant', 'sub_port_id': 20095207, 'pht': 4857}, 'autre_emballage': {'hashtag': 'autre_emballage', 'sub_port_id': 20095216, 'pht': 4857}, 'autre_non_emballage': {'hashtag': 'autre_non_emballage', 'sub_port_id': 20095208, 'pht': 4857}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20095209, 'pht': 4857}, 'autre': {'hashtag': 'autre', 'sub_port_id': 20071215, 'pht': 4855}, 'flux_dev': {'hashtag': 'flux_dev', 'sub_port_id': 20095198, 'pht': 4857}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20095210, 'pht': 4857}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20095211, 'pht': 4857}, 'film_dev_souple': {'hashtag': 'film_dev_souple', 'sub_port_id': 20095199, 'pht': 4857}, 'sac_om_plein': {'hashtag': 'sac_om_plein', 'sub_port_id': 20095201, 'pht': 4857}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20067961 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4742 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4742, 'mtr_datou_current_id': 2534079, 'mtr_portfolio_id': 20067961, 'created_at': datetime.datetime(2025, 1, 31, 11, 40, 41), 'result': '0.38016544487689985', 'result_long': None, 'result_double': None}] Qualite : 0.38016544487689985 select url from MTRUser.mtr_files where mtd_id = 4742 and mtr_portfolio_id = 20067961 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_COD_P20067961_31-01-2025_11_40_41.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20067961 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'car_plate': 'FG666WC', 'plate_origin_photo': 1332932571, 'plate_crop_photo': 0, 'plate_crops': {'hashtag': 'plate_crops', 'sub_port_id': 0, 'pht': 4403}, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_COD_P20067961_31-01-2025_11_40_41.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 20095547, 'pht': 4857}, 'carton': {'hashtag': 'carton', 'sub_port_id': 20095548, 'pht': 4857}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20095549, 'pht': 4857}, 'pet_clair': {'hashtag': 'pet_clair', 'sub_port_id': 20095550, 'pht': 4857}, 'pehd': {'hashtag': 'pehd', 'sub_port_id': 20095551, 'pht': 4857}, 'pet_fonce': {'hashtag': 'pet_fonce', 'sub_port_id': 20095567, 'pht': 4857}, 'pet_opaque': {'hashtag': 'pet_opaque', 'sub_port_id': 20095568, 'pht': 4857}, 'barquette_opaque': {'hashtag': 'barquette_opaque', 'sub_port_id': 20095569, 'pht': 4857}, 'film_plastique': {'hashtag': 'film_plastique', 'sub_port_id': 20095570, 'pht': 4857}, 'ela': {'hashtag': 'ela', 'sub_port_id': 20095554, 'pht': 4857}, 'sac': {'hashtag': 'sac', 'sub_port_id': 20095572, 'pht': 4857}, 'textiles': {'hashtag': 'textiles', 'sub_port_id': 20095557, 'pht': 4857}, 'verre': {'hashtag': 'verre', 'sub_port_id': 20095558, 'pht': 4857}, 'organique': {'hashtag': 'organique', 'sub_port_id': 20095559, 'pht': 4857}, 'dasri': {'hashtag': 'dasri', 'sub_port_id': 20095560, 'pht': 4857}, 'masque': {'hashtag': 'masque', 'sub_port_id': 20095561, 'pht': 4857}, 'encombrant': {'hashtag': 'encombrant', 'sub_port_id': 20095562, 'pht': 4857}, 'autre_emballage': {'hashtag': 'autre_emballage', 'sub_port_id': 20095571, 'pht': 4857}, 'autre_non_emballage': {'hashtag': 'autre_non_emballage', 'sub_port_id': 20095563, 'pht': 4857}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20095564, 'pht': 4857}, 'autre': {'hashtag': 'autre', 'sub_port_id': 20070381, 'pht': 4855}, 'flux_dev': {'hashtag': 'flux_dev', 'sub_port_id': 20095552, 'pht': 4857}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20095565, 'pht': 4857}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20095566, 'pht': 4857}, 'film_dev_souple': {'hashtag': 'film_dev_souple', 'sub_port_id': 20095553, 'pht': 4857}, 'sac_om_plein': {'hashtag': 'sac_om_plein', 'sub_port_id': 20095556, 'pht': 4857}}" where mtr_portfolio_id = 20067961 and dashboard_run_id = 1573553 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4742 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4742 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4742 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4742 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13169 copy_chis is not consistent : 2 used against 1 in the step definition ! WARNING : number of outputs for step 13170 consolidate_hashtags_from_manual_portfolio is not consistent : 2 used against 1 in the step definition ! WARNING : number of inputs for step 13167 rle_unique_nms_with_priority is not consistent : 3 used against 1 in the step definition ! WARNING : number of outputs for step 13167 rle_unique_nms_with_priority is not consistent : 2 used against 1 in the step definition ! WARNING : number of outputs for step 13174 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 13168 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! Step 13171 blur_detection have less inputs used (0) than in the step definition (1) : maybe we manage optionnal inputs ! Step 13172 brightness have less inputs used (0) than in the step definition (1) : maybe we manage optionnal inputs ! Step 13173 send_mail_cod have less inputs used (4) than in the step definition (5) : maybe we manage optionnal inputs ! Step 13175 split_time_score have less inputs used (1) than in the step definition (2) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13169 have datatype=11 whereas input 0 of step 13167 have datatype=2 WARNING : type of output 1 of step 13170 doesn't seem to be define in the database( WARNING : type of input 3 of step 13168 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : type of output 1 of step 13170 doesn't seem to be define in the database( WARNING : type of input 1 of step 13167 doesn't seem to be define in the database( WARNING : output 0 of step 13174 have datatype=10 whereas input 3 of step 13173 have datatype=6 WARNING : type of input 1 of step 13174 doesn't seem to be define in the database( WARNING : output 1 of step 13167 have datatype=7 whereas input 1 of step 13174 have datatype=None WARNING : type of output 1 of step 13174 doesn't seem to be define in the database( WARNING : type of input 4 of step 13168 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : type of output 1 of step 13169 doesn't seem to be define in the database( WARNING : type of input 1 of step 13170 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20067961 AND mptpi.`type`=4857 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8594942, 0.38016544487689985, "{'max_time_prod_two_photos': 0, 'car_plate': 'FG666WC', 'plate_origin_photo': 1332932571, 'plate_crop_photo': 0, 'plate_crops': {'hashtag': 'plate_crops', 'sub_port_id': 0, 'pht': 4403}, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_COD_P20067961_31-01-2025_11_40_41.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 20095547, 'pht': 4857}, 'carton': {'hashtag': 'carton', 'sub_port_id': 20095548, 'pht': 4857}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20095549, 'pht': 4857}, 'pet_clair': {'hashtag': 'pet_clair', 'sub_port_id': 20095550, 'pht': 4857}, 'pehd': {'hashtag': 'pehd', 'sub_port_id': 20095551, 'pht': 4857}, 'pet_fonce': {'hashtag': 'pet_fonce', 'sub_port_id': 20095567, 'pht': 4857}, 'pet_opaque': {'hashtag': 'pet_opaque', 'sub_port_id': 20095568, 'pht': 4857}, 'barquette_opaque': {'hashtag': 'barquette_opaque', 'sub_port_id': 20095569, 'pht': 4857}, 'film_plastique': {'hashtag': 'film_plastique', 'sub_port_id': 20095570, 'pht': 4857}, 'ela': {'hashtag': 'ela', 'sub_port_id': 20095554, 'pht': 4857}, 'sac': {'hashtag': 'sac', 'sub_port_id': 20095572, 'pht': 4857}, 'textiles': {'hashtag': 'textiles', 'sub_port_id': 20095557, 'pht': 4857}, 'verre': {'hashtag': 'verre', 'sub_port_id': 20095558, 'pht': 4857}, 'organique': {'hashtag': 'organique', 'sub_port_id': 20095559, 'pht': 4857}, 'dasri': {'hashtag': 'dasri', 'sub_port_id': 20095560, 'pht': 4857}, 'masque': {'hashtag': 'masque', 'sub_port_id': 20095561, 'pht': 4857}, 'encombrant': {'hashtag': 'encombrant', 'sub_port_id': 20095562, 'pht': 4857}, 'autre_emballage': {'hashtag': 'autre_emballage', 'sub_port_id': 20095571, 'pht': 4857}, 'autre_non_emballage': {'hashtag': 'autre_non_emballage', 'sub_port_id': 20095563, 'pht': 4857}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20095564, 'pht': 4857}, 'autre': {'hashtag': 'autre', 'sub_port_id': 20070381, 'pht': 4855}, 'flux_dev': {'hashtag': 'flux_dev', 'sub_port_id': 20095552, 'pht': 4857}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20095565, 'pht': 4857}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20095566, 'pht': 4857}, 'film_dev_souple': {'hashtag': 'film_dev_souple', 'sub_port_id': 20095553, 'pht': 4857}, 'sac_om_plein': {'hashtag': 'sac_om_plein', 'sub_port_id': 20095556, 'pht': 4857}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20068020 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4742 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4742, 'mtr_datou_current_id': 2533904, 'mtr_portfolio_id': 20068020, 'created_at': datetime.datetime(2025, 1, 31, 11, 8, 39), 'result': '0.21234606488967767', 'result_long': None, 'result_double': None}] Qualite : 0.21234606488967767 select url from MTRUser.mtr_files where mtd_id = 4742 and mtr_portfolio_id = 20068020 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_COD_P20068020_31-01-2025_11_08_39.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20068020 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'car_plate': 'FF330PK', 'plate_origin_photo': 1332932767, 'plate_crop_photo': 0, 'plate_crops': {'hashtag': 'plate_crops', 'sub_port_id': 0, 'pht': 4403}, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_COD_P20068020_31-01-2025_11_08_39.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 20077241, 'pht': 4857}, 'carton': {'hashtag': 'carton', 'sub_port_id': 20077242, 'pht': 4857}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20077243, 'pht': 4857}, 'pet_clair': {'hashtag': 'pet_clair', 'sub_port_id': 20077244, 'pht': 4857}, 'pehd': {'hashtag': 'pehd', 'sub_port_id': 20077245, 'pht': 4857}, 'pet_fonce': {'hashtag': 'pet_fonce', 'sub_port_id': 20077260, 'pht': 4857}, 'pet_opaque': {'hashtag': 'pet_opaque', 'sub_port_id': 20077261, 'pht': 4857}, 'barquette_opaque': {'hashtag': 'barquette_opaque', 'sub_port_id': 20077262, 'pht': 4857}, 'film_plastique': {'hashtag': 'film_plastique', 'sub_port_id': 20077263, 'pht': 4857}, 'ela': {'hashtag': 'ela', 'sub_port_id': 20077248, 'pht': 4857}, 'sac': {'hashtag': 'sac', 'sub_port_id': 20077265, 'pht': 4857}, 'textiles': {'hashtag': 'textiles', 'sub_port_id': 20077250, 'pht': 4857}, 'verre': {'hashtag': 'verre', 'sub_port_id': 20077251, 'pht': 4857}, 'organique': {'hashtag': 'organique', 'sub_port_id': 20077252, 'pht': 4857}, 'dasri': {'hashtag': 'dasri', 'sub_port_id': 20077253, 'pht': 4857}, 'masque': {'hashtag': 'masque', 'sub_port_id': 20077254, 'pht': 4857}, 'encombrant': {'hashtag': 'encombrant', 'sub_port_id': 20077255, 'pht': 4857}, 'autre_emballage': {'hashtag': 'autre_emballage', 'sub_port_id': 20077264, 'pht': 4857}, 'autre_non_emballage': {'hashtag': 'autre_non_emballage', 'sub_port_id': 20077256, 'pht': 4857}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20077257, 'pht': 4857}, 'autre': {'hashtag': 'autre', 'sub_port_id': 20068997, 'pht': 4855}, 'flux_dev': {'hashtag': 'flux_dev', 'sub_port_id': 20077246, 'pht': 4857}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20077258, 'pht': 4857}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20077259, 'pht': 4857}, 'film_dev_souple': {'hashtag': 'film_dev_souple', 'sub_port_id': 20077247, 'pht': 4857}, 'sac_om_plein': {'hashtag': 'sac_om_plein', 'sub_port_id': 20077249, 'pht': 4857}}" where mtr_portfolio_id = 20068020 and dashboard_run_id = 1573553 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4742 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4742 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4742 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4742 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13169 copy_chis is not consistent : 2 used against 1 in the step definition ! WARNING : number of outputs for step 13170 consolidate_hashtags_from_manual_portfolio is not consistent : 2 used against 1 in the step definition ! WARNING : number of inputs for step 13167 rle_unique_nms_with_priority is not consistent : 3 used against 1 in the step definition ! WARNING : number of outputs for step 13167 rle_unique_nms_with_priority is not consistent : 2 used against 1 in the step definition ! WARNING : number of outputs for step 13174 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 13168 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! Step 13171 blur_detection have less inputs used (0) than in the step definition (1) : maybe we manage optionnal inputs ! Step 13172 brightness have less inputs used (0) than in the step definition (1) : maybe we manage optionnal inputs ! Step 13173 send_mail_cod have less inputs used (4) than in the step definition (5) : maybe we manage optionnal inputs ! Step 13175 split_time_score have less inputs used (1) than in the step definition (2) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13169 have datatype=11 whereas input 0 of step 13167 have datatype=2 WARNING : type of output 1 of step 13170 doesn't seem to be define in the database( WARNING : type of input 3 of step 13168 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : type of output 1 of step 13170 doesn't seem to be define in the database( WARNING : type of input 1 of step 13167 doesn't seem to be define in the database( WARNING : output 0 of step 13174 have datatype=10 whereas input 3 of step 13173 have datatype=6 WARNING : type of input 1 of step 13174 doesn't seem to be define in the database( WARNING : output 1 of step 13167 have datatype=7 whereas input 1 of step 13174 have datatype=None WARNING : type of output 1 of step 13174 doesn't seem to be define in the database( WARNING : type of input 4 of step 13168 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : type of output 1 of step 13169 doesn't seem to be define in the database( WARNING : type of input 1 of step 13170 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20068020 AND mptpi.`type`=4857 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8594943, 0.21234606488967767, "{'max_time_prod_two_photos': 0, 'car_plate': 'FF330PK', 'plate_origin_photo': 1332932767, 'plate_crop_photo': 0, 'plate_crops': {'hashtag': 'plate_crops', 'sub_port_id': 0, 'pht': 4403}, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_COD_P20068020_31-01-2025_11_08_39.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 20077241, 'pht': 4857}, 'carton': {'hashtag': 'carton', 'sub_port_id': 20077242, 'pht': 4857}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20077243, 'pht': 4857}, 'pet_clair': {'hashtag': 'pet_clair', 'sub_port_id': 20077244, 'pht': 4857}, 'pehd': {'hashtag': 'pehd', 'sub_port_id': 20077245, 'pht': 4857}, 'pet_fonce': {'hashtag': 'pet_fonce', 'sub_port_id': 20077260, 'pht': 4857}, 'pet_opaque': {'hashtag': 'pet_opaque', 'sub_port_id': 20077261, 'pht': 4857}, 'barquette_opaque': {'hashtag': 'barquette_opaque', 'sub_port_id': 20077262, 'pht': 4857}, 'film_plastique': {'hashtag': 'film_plastique', 'sub_port_id': 20077263, 'pht': 4857}, 'ela': {'hashtag': 'ela', 'sub_port_id': 20077248, 'pht': 4857}, 'sac': {'hashtag': 'sac', 'sub_port_id': 20077265, 'pht': 4857}, 'textiles': {'hashtag': 'textiles', 'sub_port_id': 20077250, 'pht': 4857}, 'verre': {'hashtag': 'verre', 'sub_port_id': 20077251, 'pht': 4857}, 'organique': {'hashtag': 'organique', 'sub_port_id': 20077252, 'pht': 4857}, 'dasri': {'hashtag': 'dasri', 'sub_port_id': 20077253, 'pht': 4857}, 'masque': {'hashtag': 'masque', 'sub_port_id': 20077254, 'pht': 4857}, 'encombrant': {'hashtag': 'encombrant', 'sub_port_id': 20077255, 'pht': 4857}, 'autre_emballage': {'hashtag': 'autre_emballage', 'sub_port_id': 20077264, 'pht': 4857}, 'autre_non_emballage': {'hashtag': 'autre_non_emballage', 'sub_port_id': 20077256, 'pht': 4857}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20077257, 'pht': 4857}, 'autre': {'hashtag': 'autre', 'sub_port_id': 20068997, 'pht': 4855}, 'flux_dev': {'hashtag': 'flux_dev', 'sub_port_id': 20077246, 'pht': 4857}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20077258, 'pht': 4857}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20077259, 'pht': 4857}, 'film_dev_souple': {'hashtag': 'film_dev_souple', 'sub_port_id': 20077247, 'pht': 4857}, 'sac_om_plein': {'hashtag': 'sac_om_plein', 'sub_port_id': 20077249, 'pht': 4857}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20068021 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4742 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4742, 'mtr_datou_current_id': 2531421, 'mtr_portfolio_id': 20068021, 'created_at': datetime.datetime(2025, 1, 31, 4, 28, 40), 'result': '0.33537558370077986', 'result_long': None, 'result_double': None}] Qualite : 0.33537558370077986 select url from MTRUser.mtr_files where mtd_id = 4742 and mtr_portfolio_id = 20068021 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_COD_P20068021_31-01-2025_04_28_41.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20068021 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'car_plate': 'FH669TV', 'plate_origin_photo': 1332932833, 'plate_crop_photo': 0, 'plate_crops': {'hashtag': 'plate_crops', 'sub_port_id': 0, 'pht': 4403}, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_COD_P20068021_31-01-2025_04_28_41.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 20074007, 'pht': 4857}, 'carton': {'hashtag': 'carton', 'sub_port_id': 20074008, 'pht': 4857}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20074009, 'pht': 4857}, 'pet_clair': {'hashtag': 'pet_clair', 'sub_port_id': 20074010, 'pht': 4857}, 'pehd': {'hashtag': 'pehd', 'sub_port_id': 20074011, 'pht': 4857}, 'pet_fonce': {'hashtag': 'pet_fonce', 'sub_port_id': 20074026, 'pht': 4857}, 'pet_opaque': {'hashtag': 'pet_opaque', 'sub_port_id': 20074027, 'pht': 4857}, 'barquette_opaque': {'hashtag': 'barquette_opaque', 'sub_port_id': 20074028, 'pht': 4857}, 'film_plastique': {'hashtag': 'film_plastique', 'sub_port_id': 20074029, 'pht': 4857}, 'ela': {'hashtag': 'ela', 'sub_port_id': 20074014, 'pht': 4857}, 'sac': {'hashtag': 'sac', 'sub_port_id': 20074031, 'pht': 4857}, 'textiles': {'hashtag': 'textiles', 'sub_port_id': 20074016, 'pht': 4857}, 'verre': {'hashtag': 'verre', 'sub_port_id': 20074017, 'pht': 4857}, 'organique': {'hashtag': 'organique', 'sub_port_id': 20074018, 'pht': 4857}, 'dasri': {'hashtag': 'dasri', 'sub_port_id': 20074019, 'pht': 4857}, 'masque': {'hashtag': 'masque', 'sub_port_id': 20074020, 'pht': 4857}, 'encombrant': {'hashtag': 'encombrant', 'sub_port_id': 20074021, 'pht': 4857}, 'autre_emballage': {'hashtag': 'autre_emballage', 'sub_port_id': 20074030, 'pht': 4857}, 'autre_non_emballage': {'hashtag': 'autre_non_emballage', 'sub_port_id': 20074022, 'pht': 4857}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20074023, 'pht': 4857}, 'autre': {'hashtag': 'autre', 'sub_port_id': 20069435, 'pht': 4855}, 'flux_dev': {'hashtag': 'flux_dev', 'sub_port_id': 20074012, 'pht': 4857}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20074024, 'pht': 4857}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20074025, 'pht': 4857}, 'film_dev_souple': {'hashtag': 'film_dev_souple', 'sub_port_id': 20074013, 'pht': 4857}, 'sac_om_plein': {'hashtag': 'sac_om_plein', 'sub_port_id': 20074015, 'pht': 4857}}" where mtr_portfolio_id = 20068021 and dashboard_run_id = 1573553 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4742 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4742 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4742 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4742 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13169 copy_chis is not consistent : 2 used against 1 in the step definition ! WARNING : number of outputs for step 13170 consolidate_hashtags_from_manual_portfolio is not consistent : 2 used against 1 in the step definition ! WARNING : number of inputs for step 13167 rle_unique_nms_with_priority is not consistent : 3 used against 1 in the step definition ! WARNING : number of outputs for step 13167 rle_unique_nms_with_priority is not consistent : 2 used against 1 in the step definition ! WARNING : number of outputs for step 13174 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 13168 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! Step 13171 blur_detection have less inputs used (0) than in the step definition (1) : maybe we manage optionnal inputs ! Step 13172 brightness have less inputs used (0) than in the step definition (1) : maybe we manage optionnal inputs ! Step 13173 send_mail_cod have less inputs used (4) than in the step definition (5) : maybe we manage optionnal inputs ! Step 13175 split_time_score have less inputs used (1) than in the step definition (2) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13169 have datatype=11 whereas input 0 of step 13167 have datatype=2 WARNING : type of output 1 of step 13170 doesn't seem to be define in the database( WARNING : type of input 3 of step 13168 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : type of output 1 of step 13170 doesn't seem to be define in the database( WARNING : type of input 1 of step 13167 doesn't seem to be define in the database( WARNING : output 0 of step 13174 have datatype=10 whereas input 3 of step 13173 have datatype=6 WARNING : type of input 1 of step 13174 doesn't seem to be define in the database( WARNING : output 1 of step 13167 have datatype=7 whereas input 1 of step 13174 have datatype=None WARNING : type of output 1 of step 13174 doesn't seem to be define in the database( WARNING : type of input 4 of step 13168 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : type of output 1 of step 13169 doesn't seem to be define in the database( WARNING : type of input 1 of step 13170 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20068021 AND mptpi.`type`=4857 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8594944, 0.33537558370077986, "{'max_time_prod_two_photos': 0, 'car_plate': 'FH669TV', 'plate_origin_photo': 1332932833, 'plate_crop_photo': 0, 'plate_crops': {'hashtag': 'plate_crops', 'sub_port_id': 0, 'pht': 4403}, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_COD_P20068021_31-01-2025_04_28_41.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 20074007, 'pht': 4857}, 'carton': {'hashtag': 'carton', 'sub_port_id': 20074008, 'pht': 4857}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20074009, 'pht': 4857}, 'pet_clair': {'hashtag': 'pet_clair', 'sub_port_id': 20074010, 'pht': 4857}, 'pehd': {'hashtag': 'pehd', 'sub_port_id': 20074011, 'pht': 4857}, 'pet_fonce': {'hashtag': 'pet_fonce', 'sub_port_id': 20074026, 'pht': 4857}, 'pet_opaque': {'hashtag': 'pet_opaque', 'sub_port_id': 20074027, 'pht': 4857}, 'barquette_opaque': {'hashtag': 'barquette_opaque', 'sub_port_id': 20074028, 'pht': 4857}, 'film_plastique': {'hashtag': 'film_plastique', 'sub_port_id': 20074029, 'pht': 4857}, 'ela': {'hashtag': 'ela', 'sub_port_id': 20074014, 'pht': 4857}, 'sac': {'hashtag': 'sac', 'sub_port_id': 20074031, 'pht': 4857}, 'textiles': {'hashtag': 'textiles', 'sub_port_id': 20074016, 'pht': 4857}, 'verre': {'hashtag': 'verre', 'sub_port_id': 20074017, 'pht': 4857}, 'organique': {'hashtag': 'organique', 'sub_port_id': 20074018, 'pht': 4857}, 'dasri': {'hashtag': 'dasri', 'sub_port_id': 20074019, 'pht': 4857}, 'masque': {'hashtag': 'masque', 'sub_port_id': 20074020, 'pht': 4857}, 'encombrant': {'hashtag': 'encombrant', 'sub_port_id': 20074021, 'pht': 4857}, 'autre_emballage': {'hashtag': 'autre_emballage', 'sub_port_id': 20074030, 'pht': 4857}, 'autre_non_emballage': {'hashtag': 'autre_non_emballage', 'sub_port_id': 20074022, 'pht': 4857}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20074023, 'pht': 4857}, 'autre': {'hashtag': 'autre', 'sub_port_id': 20069435, 'pht': 4855}, 'flux_dev': {'hashtag': 'flux_dev', 'sub_port_id': 20074012, 'pht': 4857}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20074024, 'pht': 4857}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20074025, 'pht': 4857}, 'film_dev_souple': {'hashtag': 'film_dev_souple', 'sub_port_id': 20074013, 'pht': 4857}, 'sac_om_plein': {'hashtag': 'sac_om_plein', 'sub_port_id': 20074015, 'pht': 4857}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20072575 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4742 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4742, 'mtr_datou_current_id': 2544299, 'mtr_portfolio_id': 20072575, 'created_at': datetime.datetime(2025, 2, 4, 10, 46, 50), 'result': '0.1314256812598909', 'result_long': None, 'result_double': None}] Qualite : 0.1314256812598909 select url from MTRUser.mtr_files where mtd_id = 4742 and mtr_portfolio_id = 20072575 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_COD_P20072575_04-02-2025_10_46_50.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20072575 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'car_plate': 'EH034LG', 'plate_origin_photo': 1332974844, 'plate_crop_photo': 0, 'plate_crops': {'hashtag': 'plate_crops', 'sub_port_id': 0, 'pht': 4403}, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_COD_P20072575_04-02-2025_10_46_50.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 20095872, 'pht': 4857}, 'carton': {'hashtag': 'carton', 'sub_port_id': 20095873, 'pht': 4857}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20095874, 'pht': 4857}, 'pet_clair': {'hashtag': 'pet_clair', 'sub_port_id': 20095875, 'pht': 4857}, 'pehd': {'hashtag': 'pehd', 'sub_port_id': 20095876, 'pht': 4857}, 'pet_fonce': {'hashtag': 'pet_fonce', 'sub_port_id': 20095892, 'pht': 4857}, 'pet_opaque': {'hashtag': 'pet_opaque', 'sub_port_id': 20095893, 'pht': 4857}, 'barquette_opaque': {'hashtag': 'barquette_opaque', 'sub_port_id': 20095894, 'pht': 4857}, 'film_plastique': {'hashtag': 'film_plastique', 'sub_port_id': 20095895, 'pht': 4857}, 'ela': {'hashtag': 'ela', 'sub_port_id': 20095879, 'pht': 4857}, 'sac': {'hashtag': 'sac', 'sub_port_id': 20095897, 'pht': 4857}, 'textiles': {'hashtag': 'textiles', 'sub_port_id': 20095881, 'pht': 4857}, 'verre': {'hashtag': 'verre', 'sub_port_id': 20095882, 'pht': 4857}, 'organique': {'hashtag': 'organique', 'sub_port_id': 20095883, 'pht': 4857}, 'dasri': {'hashtag': 'dasri', 'sub_port_id': 20095884, 'pht': 4857}, 'masque': {'hashtag': 'masque', 'sub_port_id': 20095885, 'pht': 4857}, 'encombrant': {'hashtag': 'encombrant', 'sub_port_id': 20095886, 'pht': 4857}, 'autre_emballage': {'hashtag': 'autre_emballage', 'sub_port_id': 20095896, 'pht': 4857}, 'autre_non_emballage': {'hashtag': 'autre_non_emballage', 'sub_port_id': 20095887, 'pht': 4857}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20095888, 'pht': 4857}, 'autre': {'hashtag': 'autre', 'sub_port_id': 20073540, 'pht': 4855}, 'flux_dev': {'hashtag': 'flux_dev', 'sub_port_id': 20095877, 'pht': 4857}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20095889, 'pht': 4857}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20095891, 'pht': 4857}, 'film_dev_souple': {'hashtag': 'film_dev_souple', 'sub_port_id': 20095878, 'pht': 4857}, 'sac_om_plein': {'hashtag': 'sac_om_plein', 'sub_port_id': 20095880, 'pht': 4857}}" where mtr_portfolio_id = 20072575 and dashboard_run_id = 1573553 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4742 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4742 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4742 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4742 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13169 copy_chis is not consistent : 2 used against 1 in the step definition ! WARNING : number of outputs for step 13170 consolidate_hashtags_from_manual_portfolio is not consistent : 2 used against 1 in the step definition ! WARNING : number of inputs for step 13167 rle_unique_nms_with_priority is not consistent : 3 used against 1 in the step definition ! WARNING : number of outputs for step 13167 rle_unique_nms_with_priority is not consistent : 2 used against 1 in the step definition ! WARNING : number of outputs for step 13174 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 13168 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! Step 13171 blur_detection have less inputs used (0) than in the step definition (1) : maybe we manage optionnal inputs ! Step 13172 brightness have less inputs used (0) than in the step definition (1) : maybe we manage optionnal inputs ! Step 13173 send_mail_cod have less inputs used (4) than in the step definition (5) : maybe we manage optionnal inputs ! Step 13175 split_time_score have less inputs used (1) than in the step definition (2) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13169 have datatype=11 whereas input 0 of step 13167 have datatype=2 WARNING : type of output 1 of step 13170 doesn't seem to be define in the database( WARNING : type of input 3 of step 13168 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : type of output 1 of step 13170 doesn't seem to be define in the database( WARNING : type of input 1 of step 13167 doesn't seem to be define in the database( WARNING : output 0 of step 13174 have datatype=10 whereas input 3 of step 13173 have datatype=6 WARNING : type of input 1 of step 13174 doesn't seem to be define in the database( WARNING : output 1 of step 13167 have datatype=7 whereas input 1 of step 13174 have datatype=None WARNING : type of output 1 of step 13174 doesn't seem to be define in the database( WARNING : type of input 4 of step 13168 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : type of output 1 of step 13169 doesn't seem to be define in the database( WARNING : type of input 1 of step 13170 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20072575 AND mptpi.`type`=4857 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8594945, 0.1314256812598909, "{'max_time_prod_two_photos': 0, 'car_plate': 'EH034LG', 'plate_origin_photo': 1332974844, 'plate_crop_photo': 0, 'plate_crops': {'hashtag': 'plate_crops', 'sub_port_id': 0, 'pht': 4403}, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_COD_P20072575_04-02-2025_10_46_50.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 20095872, 'pht': 4857}, 'carton': {'hashtag': 'carton', 'sub_port_id': 20095873, 'pht': 4857}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20095874, 'pht': 4857}, 'pet_clair': {'hashtag': 'pet_clair', 'sub_port_id': 20095875, 'pht': 4857}, 'pehd': {'hashtag': 'pehd', 'sub_port_id': 20095876, 'pht': 4857}, 'pet_fonce': {'hashtag': 'pet_fonce', 'sub_port_id': 20095892, 'pht': 4857}, 'pet_opaque': {'hashtag': 'pet_opaque', 'sub_port_id': 20095893, 'pht': 4857}, 'barquette_opaque': {'hashtag': 'barquette_opaque', 'sub_port_id': 20095894, 'pht': 4857}, 'film_plastique': {'hashtag': 'film_plastique', 'sub_port_id': 20095895, 'pht': 4857}, 'ela': {'hashtag': 'ela', 'sub_port_id': 20095879, 'pht': 4857}, 'sac': {'hashtag': 'sac', 'sub_port_id': 20095897, 'pht': 4857}, 'textiles': {'hashtag': 'textiles', 'sub_port_id': 20095881, 'pht': 4857}, 'verre': {'hashtag': 'verre', 'sub_port_id': 20095882, 'pht': 4857}, 'organique': {'hashtag': 'organique', 'sub_port_id': 20095883, 'pht': 4857}, 'dasri': {'hashtag': 'dasri', 'sub_port_id': 20095884, 'pht': 4857}, 'masque': {'hashtag': 'masque', 'sub_port_id': 20095885, 'pht': 4857}, 'encombrant': {'hashtag': 'encombrant', 'sub_port_id': 20095886, 'pht': 4857}, 'autre_emballage': {'hashtag': 'autre_emballage', 'sub_port_id': 20095896, 'pht': 4857}, 'autre_non_emballage': {'hashtag': 'autre_non_emballage', 'sub_port_id': 20095887, 'pht': 4857}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20095888, 'pht': 4857}, 'autre': {'hashtag': 'autre', 'sub_port_id': 20073540, 'pht': 4855}, 'flux_dev': {'hashtag': 'flux_dev', 'sub_port_id': 20095877, 'pht': 4857}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20095889, 'pht': 4857}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20095891, 'pht': 4857}, 'film_dev_souple': {'hashtag': 'film_dev_souple', 'sub_port_id': 20095878, 'pht': 4857}, 'sac_om_plein': {'hashtag': 'sac_om_plein', 'sub_port_id': 20095880, 'pht': 4857}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20067960,20067961,20068020,20068021,20072575) result : ((1332932490,), (1332932495,), (1332932498,), (1332932503,), (1332932508,), (1332932511,), (1332932544,), (1332932560,), (1332932571,), (1332932576,), (1332932579,), (1332932582,), (1332932754,), (1332932756,), (1332932760,), (1332932767,), (1332932778,), (1332932784,), (1332932816,), (1332932819,), (1332932824,), (1332932828,), (1332932833,), (1332932836,), (1332933117,), (1332933120,), (1332933174,), (1332933364,), (1332933544,), (1332933746,), (1332974844,), (1332974847,), (1332974852,), (1332974855,), (1332974860,), (1332974865,), (1332974893,), (1332974895,), (1332974901,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'30012025': {'nb_upload': 8, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([20067960]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1332932560, 1332932544, 1332932511, 1332932508, 1332932503, 1332932498, 1332932495, 1332932490] map_info['map_portfolio_photo'] : {20067960: [1332932560, 1332932544, 1332932511, 1332932508, 1332932503, 1332932498, 1332932495, 1332932490]} final : True mtd_id 4742 list_pids : [1332932560, 1332932544, 1332932511, 1332932508, 1332932503, 1332932498, 1332932495, 1332932490] Looping around the photos to save general results len do output : 1 /20067960Didn't retrieve data . before output type Here is an output not treated by saveGeneral : Managing all output in save final without adding information in the mtr_datou_result ('4742', None, None, None, None, None, None, None, '2544296') ('4742', '20067960', '1332932560', None, None, None, None, None, '2544296') ('4742', None, None, None, None, None, None, None, '2544296') ('4742', '20067960', '1332932544', None, None, None, None, None, '2544296') ('4742', None, None, None, None, None, None, None, '2544296') ('4742', '20067960', '1332932511', None, None, None, None, None, '2544296') ('4742', None, None, None, None, None, None, None, '2544296') ('4742', '20067960', '1332932508', None, None, None, None, None, '2544296') ('4742', None, None, None, None, None, None, None, '2544296') ('4742', '20067960', '1332932503', None, None, None, None, None, '2544296') ('4742', None, None, None, None, None, None, None, '2544296') ('4742', '20067960', '1332932498', None, None, None, None, None, '2544296') ('4742', None, None, None, None, None, None, None, '2544296') ('4742', '20067960', '1332932495', None, None, None, None, None, '2544296') ('4742', None, None, None, None, None, None, None, '2544296') ('4742', '20067960', '1332932490', None, None, None, None, None, '2544296') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 9 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4742', None, '20067960', 'None', None, None, None, None, '2544296'), ('4742', '20067960', '1332932560', None, None, None, None, None, '2544296'), ('4742', '20067960', '1332932544', None, None, None, None, None, '2544296'), ('4742', '20067960', '1332932511', None, None, None, None, None, '2544296'), ('4742', '20067960', '1332932508', None, None, None, None, None, '2544296'), ('4742', '20067960', '1332932503', None, None, None, None, None, '2544296'), ('4742', '20067960', '1332932498', None, None, None, None, None, '2544296'), ('4742', '20067960', '1332932495', None, None, None, None, None, '2544296'), ('4742', '20067960', '1332932490', None, None, None, None, None, '2544296')] time used for this insertion : 0.014278650283813477 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.48308324813842773 time spend to save output : 0.014700889587402344 total time spend for step 9 : 0.4977841377258301 caffe_path_current : About to save ! 2 After save, about to update current ! ret : 2 len(input) + len(total_photo_id_missing) : 8 set_done_treatment DELETE from MTRPhoto.mtr_datou_current where id in (2544296) 5.67user 3.59system 0:35.91elapsed 25%CPU (0avgtext+0avgdata 216924maxresident)k 73992inputs+98952outputs (46major+328822minor)pagefaults 0swaps