"union all" is the right solution, but can be costly, resource / time. I would recommend creating a table with two partitions, one for table A and the other for table B. Thus, there is no need to combine (or combine everything). A merged table is available as soon as both sections are filled.
source share