mysql - Performance between trigger and ordinary update query -
i in great confusion performance between trigger , ordinary update query. in site running cron operation in consists of 2 tables 1. cron log table 2. metadata table crons runs every minute. there 2 ways(i think) update both table,
i fetching datas cron log table , calling wistia api upload files. after getting response wistia can update status in both tables via code.
i fetching datas cron log table , calling wistia api upload files. after getting response wistia can update status in "cron" table via code , can use trigger update "metadata" table after cron table update.
i don't know whether right hit metadata table regualarly when site fetching datas there. in 2nd step in confusion trigger may take time fetch data , update metadata table. trigger has no control on there. please suggest me steps high performance. better trigger or update ?
Comments
Post a Comment