hi, i am currently writting a C# windows service that is time critical.
As a breif introduction, the application receives messages from a source, from that message, it is passed in a thread from the thread pool.
Here the message is decrypted, and has some processing done to it.
Once the processing is done the data is stored into a MS SQL 2005 Database using a stored proc, the whole process takes about 350 milliseconds, which is not accectable from my point of view. I would like it to take appox 100 milliseconds.
If i remove the line
dbQuery.ExecuteNonQuery();
it only takes about 80 - 100 milliseconds which would be great.
The connection is created, not reused, just before the execution but doesnt seem to slow the process.
is there any way of making this process faster, or is there any links i can use for Stored Procedure optimization?
and other ideas would be awesome as well.
Cheers