open connection before every single nonquery or one connection for the whole?
问题 If I have about 2000 record and I make a multiple insert. Which method has better performance than the other? connection with each single insert .and close after the insertion . one connection for the whole bulk and close the connection at the end. and what about the connection timeout in this case. Notes : The database is informix db. It takes about 3.5 to 4 minutes to insert about 6000 record.(with the first method) 回答1: Application connection pooling will largely make this question