title: read SQL data from multiple threads
body: <p>I have a simple task - to read data from SQL table, process it, and once finished - update a field in DB (set processed=true), so every record should be processed only once.</p>
  
  <p>Can you advise me, what technique can I use to do it multi-threaded? It means, read data from table in multiple threads.</p>