I have an Sql query that returns me more than half a million rows for processing ... The process does not take very long, but I would like to speed it up a bit with some multiprocessing. Given the code below, is multithreaded something like this possible?
using (SqlDataReader reader = command.ExecuteReader()) { while (reader.Read()) {
It would be ideal if I could just get the cursor at the beginning and in the middle of the list of results. That way, I could process the records with two threads. However, SqlDataReader does not allow me to do this ...
Any idea how I could achieve this?
Martin
source share