I have a task where I need to generate approx 30,000 pdf files.
I have a function in my page that I call over and over which will generate a single file.
I'm trying to improve the speed of generating these files by spinning up multiple threads like this:
var t = new Thread(() => LoadReportBulkRun(startID, endID));
var t2 = new Thread(() => LoadReportBulkRun(startID, endID));
I've tried running it with 1 thread and it takes about 10 hours. It only slightly improves if I run approx 5-10 threads.
Is there a better way of simulatneously generating these PDFs?