You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user-cs@ibatis.apache.org by Milivoj Milani <mi...@gzr.hr> on 2008/09/10 15:14:13 UTC

DomDaoManagerBuilder.Configure is too slow

Hi,
 
we are using iBatis.NET DataMapper and DataAccessManager and according to ANTS profiler initial loading (reading) of configuration files takes 12+ seconds. I don't know what is the reason for that, and is there a way to speed things up?
 
Code excerpt below.
 
Thanks in advance.
 
private static DataSourceAgent _instance;

private static DomDaoManagerBuilder _builder;

private static IDaoManager _manager;

private DataSourceAgent()

{

_builder = new DomDaoManagerBuilder();

_builder.Configure();  // 12 seconds loading time, see attached screenshot

_manager = DaoManager.GetInstance();

}

 

 


RE: DomDaoManagerBuilder.Configure is too slow

Posted by Milivoj Milani <mi...@gzr.hr>.
Hi,

thanks for your help. I've attached the DataAccessLayer part + Maps
(XML) and config files. 

We're using Oracle Database 10.2.0.3 version. Oracle DDL SQL scripts are
attached.

If you need anything else, let me know. To test, try referencing
IPS.Common.DaoFactory.Instance. It's a singleton class doing the
initialization part.

You might want to disable the web caching code in that class as you will
probably not try it in a web project.

If you need anything else, let me know.

Cheers,

Milivoj

-----Original Message-----
From: Luke Bakken [mailto:luke.bakken@gmail.com] 
Sent: Wednesday, September 10, 2008 5:15 PM
To: Milivoj Milani
Subject: Re: DomDaoManagerBuilder.Configure is too slow

Just the bare minimum amount of code to reproduce the 12 second startup
time.

On Wed, Sep 10, 2008 at 8:11 AM, Milivoj Milani <mi...@gzr.hr> wrote:
> Well, solution is huge plus it would only clutter diagnosis. Which 
> layers are you interested in ? Only data access layer ?
>
>
> -----Original Message-----
> From: Luke Bakken [mailto:luke.bakken@gmail.com]
> Sent: Wednesday, September 10, 2008 4:48 PM
> To: user-cs@ibatis.apache.org
> Subject: Re: DomDaoManagerBuilder.Configure is too slow
>
> Without more code, diagnosis of this issue is impossible.
>
> Can you provide a complete solution that reproduces this issue?
>
> On Wed, Sep 10, 2008 at 6:14 AM, Milivoj Milani <mi...@gzr.hr>
wrote:
>> Hi,
>>
>> we are using iBatis.NET DataMapper and DataAccessManager and 
>> according
>
>> to ANTS profiler initial loading (reading) of configuration files 
>> takes 12+ seconds. I don't know what is the reason for that, and is 
>> there a way to speed things up?
>>
>> Code excerpt below.
>>
>> Thanks in advance.
>>
>>
>> private static DataSourceAgent _instance;
>>
>> private static DomDaoManagerBuilder _builder;
>>
>> private static IDaoManager _manager;
>>
>> private DataSourceAgent()
>>
>> {
>>
>> _builder = new DomDaoManagerBuilder();
>>
>> _builder.Configure();  // 12 seconds loading time, see attached 
>> screenshot
>>
>> _manager = DaoManager.GetInstance();
>>
>> }
>>
>>
>>
>>
>

RE: DomDaoManagerBuilder.Configure is too slow

Posted by Milivoj Milani <mi...@gzr.hr>.
Well, solution is huge plus it would only clutter diagnosis. Which
layers are you interested in ? Only data access layer ?


-----Original Message-----
From: Luke Bakken [mailto:luke.bakken@gmail.com] 
Sent: Wednesday, September 10, 2008 4:48 PM
To: user-cs@ibatis.apache.org
Subject: Re: DomDaoManagerBuilder.Configure is too slow

Without more code, diagnosis of this issue is impossible.

Can you provide a complete solution that reproduces this issue?

On Wed, Sep 10, 2008 at 6:14 AM, Milivoj Milani <mi...@gzr.hr> wrote:
> Hi,
>
> we are using iBatis.NET DataMapper and DataAccessManager and according

> to ANTS profiler initial loading (reading) of configuration files 
> takes 12+ seconds. I don't know what is the reason for that, and is 
> there a way to speed things up?
>
> Code excerpt below.
>
> Thanks in advance.
>
>
> private static DataSourceAgent _instance;
>
> private static DomDaoManagerBuilder _builder;
>
> private static IDaoManager _manager;
>
> private DataSourceAgent()
>
> {
>
> _builder = new DomDaoManagerBuilder();
>
> _builder.Configure();  // 12 seconds loading time, see attached 
> screenshot
>
> _manager = DaoManager.GetInstance();
>
> }
>
>
>
>

Re: DomDaoManagerBuilder.Configure is too slow

Posted by Luke Bakken <lu...@gmail.com>.
Without more code, diagnosis of this issue is impossible.

Can you provide a complete solution that reproduces this issue?

On Wed, Sep 10, 2008 at 6:14 AM, Milivoj Milani <mi...@gzr.hr> wrote:
> Hi,
>
> we are using iBatis.NET DataMapper and DataAccessManager and according to
> ANTS profiler initial loading (reading) of configuration files takes 12+
> seconds. I don't know what is the reason for that, and is there a way to
> speed things up?
>
> Code excerpt below.
>
> Thanks in advance.
>
>
> private static DataSourceAgent _instance;
>
> private static DomDaoManagerBuilder _builder;
>
> private static IDaoManager _manager;
>
> private DataSourceAgent()
>
> {
>
> _builder = new DomDaoManagerBuilder();
>
> _builder.Configure();  // 12 seconds loading time, see attached screenshot
>
> _manager = DaoManager.GetInstance();
>
> }
>
>
>
>