Hi,

My web application designed with c#,.NET 2.0, MYSQL and IBATIS.NET is too
slow and I just ran the performance profiler and figured out that the
slowest methods in my entire web application are IBATIS methods.

In the following chunk of code, _daoManager =
ServiceConfig.GetInstance().DaoManager
takes 4.0225 seconds to execute.

 public class ArticleService
   {
       #region Fields

       private static readonly ArticleService _instance = new
ArticleService();
       private IDaoManager _daoManager = null;
       private IArticleDao _articleDao = null;

       #endregion //Fields

       #region Constructor

       private ArticleService()
       {
           _daoManager = ServiceConfig.GetInstance().DaoManager;
           _articleDao = (IArticleDao)_daoManager[typeof(IArticleDao)];
       }


Please let me know how to get rid of this and improve performance.

Thanks,
Kiran.

Reply via email to