Mitch
The only problem is that half of my components run under Windows scheduler, therefore I cannot use caching
If it is 3x performance degradation, why MS recommends in all white papers to keep connection strings in *.config files
If framework really does IO each time, it is pretty bad, because I get config string from AppSettings on each method call..
Of course it depends on ratio between getting config settings and actual method run time. In my case the methods run time is relatively short (10 - 100 ms), so the impact of using ConfigurationSettings may be significant..
Thanks for your reply
-Sta
----- Mitch Ruebush wrote: ----
Hi Stan
If it is like the web.config file then it is not read from memory. You ca
gain about a 3x performance gain if you do use something like th
System.Web.Caching.Cache object to hold the values. I would create
"Settings" object to wrap the Cache object so you could change it
implementation in the future, while minimizing the impact to you
application. This would have private methods that would try to read th
value from the Cache object, if it wasn't there it would insert it into th
Cache object from the ConfigurationSettings.AppSetting. Provide a publi
function or property on your Settings object like getConnStr() to access th
values
Mitc
Mitch Ruebus
Microsoft Regional Director -
http://www.microsoftregionaldirectors.co
Visual Developer - .NET MVP -
http://mvp.support.microsoft.com
Architect | Evangelist | Teache
Online Consulting, Inc. -
http://www.onlc.co
MCSD, MCAD, MCDBA, MCSE, MC
Stan said:
I get AppSettings property System.Configuration.ConfigurationSettings o
each method call in order to determine an entry from machine.config in
stateless classConfigurationSettings.AppSetting actually do IO to read machine.config or i
caches the data somewhere