we've so many tables and everyday we upsert this tables with their own macros and keeping history. One macro can sometimes be run twice or more . sometime later, when I check the data I can see there're duplicate records or wrong history or many other problem in those tables. so what I try to do is how many times in a day macro is executed for a table. I can check this log table every day and see which macros are executed more than once and instantly I can take action to make data consistent.
we've so many tables and everyday we upsert this tables with their own macros and keeping history. One macro can sometimes be run twice or more . sometime later, when I check the data I can see there're duplicate records or wrong history or many other problem in those tables. so what I try to do is how many times in a day macro is executed for a table. I can check this log table every day and see which macros are executed more than once and instantly I can take action to make data consistent.