title: changing a table to array
body: <p>I have a temp table which I fill and clear it in a loop in my code.<br>
  becouse of using database, it takes musch time. I want to change it to an array to run my app quicker.<br>
  here is my table columns:  </p>
  
  <pre><code>ID ( int) , Type (string ), Amount (int)
  </code></pre>
  
  <p><strong>reson</strong> : I have a loop which is repeated 700 times! I have some tables tu have store my data. now I finished my project and I just need one of those tables &amp; the others are useless. I want to optimize my code to run it quicker.<br>
  THANKS.</p>