Hello,

I  am experiencing a certain sluggishness with my site and made some
tests...

    [Transactional]
    public class TrialController : Controller
    {
        private readonly IThemeDao themeDao;

        public override void Initialize()
        {
            CancelView();
        }

        public TrialController(IThemeDao themeDao)
        {
            this.themeDao = themeDao;
        }

        public void Nothing()
        { }

        [Transaction(TransactionMode.Requires)]
        public virtual void NothingT()
        { }

        public void Something()
        {
            var t = themeDao.GetAllShopThemes();
            Response.Write(string.Format("{0} themes loaded", t.Count));
        }

        [Transaction(TransactionMode.Requires)]
        public virtual void SomethingT()
        {
            Something();
        }
    }

with these results...

2009-07-02 12:02:33,067 [10] INFO  Default - Request for
http://localhost:15968/trial/nothing.aspr took 7ms.
2009-07-02 12:02:38,493 [10] INFO  Default - Request for
http://localhost:15968/trial/nothing.aspr took 7ms.
2009-07-02 12:02:39,158 [10] INFO  Default - Request for
http://localhost:15968/trial/nothing.aspr took 7ms.
2009-07-02 12:02:42,640 [4] INFO  Default - Request for
http://localhost:15968/trial/nothing.aspr took 14ms.
2009-07-02 12:02:44,955 [4] INFO  Default - Request for
http://localhost:15968/trial/nothingt.aspr took 7ms.
2009-07-02 12:02:46,282 [4] INFO  Default - Request for
http://localhost:15968/trial/nothingt.aspr took 6ms.
2009-07-02 12:02:48,159 [4] INFO  Default - Request for
http://localhost:15968/trial/nothingt.aspr took 6ms.
2009-07-02 12:02:52,362 [4] INFO  Default - Request for
http://localhost:15968/trial/something.aspr took 125ms.
2009-07-02 12:02:54,371 [4] INFO  Default - Request for
http://localhost:15968/trial/something.aspr took 124ms.
2009-07-02 12:02:55,115 [8] INFO  Default - Request for
http://localhost:15968/trial/something.aspr took 116ms.
2009-07-02 12:02:58,838 [8] INFO  Default - Request for
http://localhost:15968/trial/somethingt.aspr took 477ms.
2009-07-02 12:03:00,215 [4] INFO  Default - Request for
http://localhost:15968/trial/somethingt.aspr took 406ms.
2009-07-02 12:03:01,227 [8] INFO  Default - Request for
http://localhost:15968/trial/somethingt.aspr took 411ms.


That is quite a dramatic difference....

What could I do about this?

Thanks!!
-- 
Jan

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Castle Project Users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/castle-project-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to