title: Possible to batch sql queries?
body: <p>I'm a novice MySQL user so could really use a little advice here. I've inherited a program that currently processes text files consisting of approximately 100,000 records each. Each line is it's own record and gets processed. A file like this can be completed in about a minute as nothing to intense is being done, mostly just string comparisons.</p>
  
  <p>Anyway, now some SQL queries have to be added to the process without slowing things down too much. Essentially, it's possible that each of those 100,000 lines will now need to make a SQL select statement to query a DB and see if more data is accessible. I threw together a rough start and it takes the processing time from a minute to about an hour. Definitely unacceptable. My question is, is there even way to speed this up? (I'm sure there is)</p>
  
  <p>I'm only opening one connection object but I don't see any way around making that individual SQL query for each record. Is there a way to batch select statements? Any advice would be very helpful, thank you.</p>
  
  <p><strong>UPDATE</strong></p>
  
  <p>Sorry, I should have been more explicit. This is for SQL select statements. I know how to do batch Inserts, that's no problem. I don't understand if batch select statements are possible or how to speed them up.</p>
  
  <p>Also, someone mentioned Indexes, but I don't know anything about indexes. Could someone provide me some info on them?</p>