J
Joanna Carter [TeamB]
Hi
We are considering creating a large number of parameterised SQLCommand
objects (approx 4000). The point is that we can preset the SQL text once
only and gain performance by only populating the parameters prior to
execution.
We were thinking of creating one command for each of the four SQL statements
and then repeating these for each of around 900 types.
We may use lazy instantiation to avoid creating them all at once, but are
still worried about taking too many unmanaged resources for the entire run
of the program.
Joanna
We are considering creating a large number of parameterised SQLCommand
objects (approx 4000). The point is that we can preset the SQL text once
only and gain performance by only populating the parameters prior to
execution.
We were thinking of creating one command for each of the four SQL statements
and then repeating these for each of around 900 types.
We may use lazy instantiation to avoid creating them all at once, but are
still worried about taking too many unmanaged resources for the entire run
of the program.
Joanna