title: Enhancing the performance of insert query from multiple tables using UNION
body: <p>I want to insert multiples tables into 1 tables at once.</p>
  
  <p>Before this, I tried to union all the tables and create a new tables from it, but it takes hours.</p>
  
  <pre><code>select * from tables_1_1
  union
  select * from tables_1_2
  union
  select * from tables_1_3
  union
  select * from tables_2_1
  ...
  until
  tables_35_3
  </code></pre>
  
  <p>I thought, insert maybe the solution, or is there any better method to do this?</p>