I have a listArray with the following structure:
listArray[0] insert_idlist = listArray (value, value, value, ect)
This array contains about 2000 values in each dimension.
var string_list = "'" + string.Join("', '", insert_idlist[0]) + "'";
//var string_list = "'0169624'";
For db query purposes I am trying to concate the first dimension into a string as above. However when deployed this causes the program to hang, and based on previous experience with the deployment enviroment I suspect the large number of values is the cause.
when the commented line is enabled instead the code runs as expected.
Can anyone suggest an alternative method of concating that will provide a performance improvement?