Last post Feb 08, 2019 08:37 AM by Brando ZWZ
Feb 07, 2019 11:30 AM|gold18|LINK
My list has contained 4 nodes and each node take 1 min to complete any request.
my problem is when I tried the below way it takes more the 4 min for response and it is too much for client
so I want a optimized way which reduce the response time atleast 50 %.
foreach (var data in list)
foreach (var node in data.Nodes)
Please help me on this
Thanks in advance.
Feb 07, 2019 03:10 PM|bruce (sqlwork.com)|LINK
Feb 07, 2019 05:28 PM|PatriceSc|LINK
This is expected? You are processing a huge amount of data ? you are ending up in showing that as well in the web page ? Before any action I would try to understand where this time is spent.
Feb 08, 2019 08:37 AM|Brando ZWZ|LINK
I suggest you could try to start new thread to run some function, like below:
public static void someFunction()
// do some work
public static void StartWorker()
Thread worker = new Thread(someFunction);
worker.IsBackground = true;