i'm holding huge transactions data on daily multi tables according the business date. trascation_20140101 trascation_20140102 trascation_20140103..
the process flow is like that: 1.i''m loading the batch of new files that that arrive to temp table 2.i group by the transcation_date field in order to notice on which date is belong - for each date i query the temp table on this date and insert it to the proper trasaction_YYYYMMDD table. 3.i'm doing part 2 in parallel in order to save time, because the temp table might contain data that belong to 20 days..
my challenge is what to do if one these process failed and other not.. i can't run it all again , since it will cause for duplications for the table that been already successfully update.
i solve these issue by managing this update, but it's seems to be too complex.
Is this best practice to deal with multi tables? i will be glad to get some best practice in order to understand how others deals when they need to load the data to multi tables according to business date and Not just insert date(this is easy..)