You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@turbine.apache.org by je...@brel.com on 2001/09/27 15:18:44 UTC

Re: slow performance... help

Dear Turbine users

We have managed to find out the following findings - one of the reason why the 
performance for our web app is slow.

Timing for the following API,
acl=TurbineSecurity.getacl (data.getuser());

takes about 3 seconds when there are 
- 4000 records in the group table.
- 30 permissions
- 5 users
- 8 roles

Question is as follows:-
- is it possible to have an API for acl where we can send the list of group ids so 
that the system only construct lists of items that we need. We actually only need to 
find out who are users with specific permission. 

The reason why the above API is called is because we need to use the following method.
pass=acl.haspermission (myscreen, TurbineSecurity.getallGroups());

Your help will be much appreciated.

Thanks in advanced.

Regards,



------------------------
  From: Jason van Zyl <jv...@apache.org>
  Subject: Re: slow performance... help 
  Date: Sat, 22 Sep 2001 15:43:05 -0400 
  To: turbine-user@jakarta.apache.org


On 9/22/01 2:16 PM, "Jessica Kung" <je...@yahoo.com.sg> wrote:

> Dear Turbine users
> 
> We are in the midst of implementing a turbine app for
> a content mgmt tool. However, performance is terribly
> slow that it takes more than 30 secs for each  screen
> to appear.

So you have profiled your application and you are certain that it is
Turbine? I have no problem looking at the code if you have used a profiler
and know the bottleneck is in Turbine but I've never seen it take 30 seconds
to have a screen execute.
 
> Your help will be much appreciated. Encl pls find a
> portion of the source code.

Please include a link to your profiler output as well please. If there is
indeed a bottleneck I'll take a look and see what might be done.
 
> Thks in advanced.
> 
> __________________________________________________
> Do You Yahoo!?
> Yahoo! Y! Pages - Search or browse for business listings.
> http://yp.yahoo.com.sg/
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: turbine-user-help@jakarta.apache.org

-- 

jvz.

Jason van Zyl

http://tambora.zenplex.org
http://jakarta.apache.org/turbine
http://jakarta.apache.org/velocity
http://jakarta.apache.org/alexandria
http://jakarta.apache.org/commons



---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-user-help@jakarta.apache.org


---------------End of Original Message-----------------

........................................................

Jessica Kung                           jesskung@brel.com.sg
Brel Software Pte Ltd                  Tel: 65-272-6800
Blk 1003 Bukit Merah Central           Fax: 65-272-2811
#07-01/02                              http://www.brel.com
Singapore 159836                       09/27/01 21:18:44
                    
           Pls call us for the following services
         Web Creation, Web, Email & Domain Hosting
                 B2B B2C ASP CMS E-Commerce


---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-user-help@jakarta.apache.org


RE: Dynamic uri and null values

Posted by Gareth Coltman <ga...@majorband.co.uk>.
I've now implemented by own templatelink class, and it just simply doesn't add the key/value pair to the path/query string if the
value is null or of length zero. Seems to work fine for me.

Gareth

> -----Original Message-----
> From: Gareth Coltman [mailto:gareth_coltman@majorband.co.uk]
> Sent: Thursday, September 27, 2001 14:51
> To: turbine-user@jakarta.apache.org
> Subject: Dynamic uri and null values
>
>
> Hi,
>
>
> Found something odd (silly?) in the Turbine DyanamicURI code
> (v 1.1.1.1). When rendering the uri, empty strings (ie string with
> length 0) are rendered as "null". Why? Surely they should
> just not be rendered at all ie:
>
> &key1=&key2=&
>
> etc
>
> If you are creating a GET request with a lot of params, this
> just bulks up the html size. The parameter parser handles
> "null" and ""
> in the same way, so what is this all about????
>
> Apparently Jon Stevens and Jason wrote this, so guys.....?
>
> Gareth
>
> > -----Original Message-----
> > From: jesskung@brel.com [mailto:jesskung@brel.com]
> > Sent: Thursday, September 27, 2001 14:19
> > To: turbine-user@jakarta.apache.org
> > Subject: Re: slow performance... help
> >
> >
> > Dear Turbine users
> >
> > We have managed to find out the following findings - one of
> > the reason why the
> > performance for our web app is slow.
> >
> > Timing for the following API,
> > acl=TurbineSecurity.getacl (data.getuser());
> >
> > takes about 3 seconds when there are
> > - 4000 records in the group table.
> > - 30 permissions
> > - 5 users
> > - 8 roles
> >
> > Question is as follows:-
> > - is it possible to have an API for acl where we can send the
> > list of group ids so
> > that the system only construct lists of items that we need.
> > We actually only need to
> > find out who are users with specific permission.
> >
> > The reason why the above API is called is because we need to
> > use the following method.
> > pass=acl.haspermission (myscreen, TurbineSecurity.getallGroups());
> >
> > Your help will be much appreciated.
> >
> > Thanks in advanced.
> >
> > Regards,
> >
> >
> >
> > ------------------------
> >   From: Jason van Zyl <jv...@apache.org>
> >   Subject: Re: slow performance... help
> >   Date: Sat, 22 Sep 2001 15:43:05 -0400
> >   To: turbine-user@jakarta.apache.org
> >
> >
> > On 9/22/01 2:16 PM, "Jessica Kung" <je...@yahoo.com.sg> wrote:
> >
> > > Dear Turbine users
> > >
> > > We are in the midst of implementing a turbine app for
> > > a content mgmt tool. However, performance is terribly
> > > slow that it takes more than 30 secs for each  screen
> > > to appear.
> >
> > So you have profiled your application and you are certain that it is
> > Turbine? I have no problem looking at the code if you have
> > used a profiler
> > and know the bottleneck is in Turbine but I've never seen it
> > take 30 seconds
> > to have a screen execute.
> >
> > > Your help will be much appreciated. Encl pls find a
> > > portion of the source code.
> >
> > Please include a link to your profiler output as well please.
> > If there is
> > indeed a bottleneck I'll take a look and see what might be done.
> >
> > > Thks in advanced.
> > >
> > > __________________________________________________
> > > Do You Yahoo!?
> > > Yahoo! Y! Pages - Search or browse for business listings.
> > > http://yp.yahoo.com.sg/
> > >
> >
> ---------------------------------------------------------------------
> > > To unsubscribe, e-mail:
> turbine-user-unsubscribe@jakarta.apache.org
> > > For additional commands, e-mail:
> > turbine-user-help@jakarta.apache.org
> >
> > --
> >
> > jvz.
> >
> > Jason van Zyl
> >
> > http://tambora.zenplex.org
> > http://jakarta.apache.org/turbine
> > http://jakarta.apache.org/velocity
> > http://jakarta.apache.org/alexandria
> > http://jakarta.apache.org/commons
> >
> >
> >
> >
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail:
> turbine-user-help@jakarta.apache.org
> >
> >
> > ---------------End of Original Message-----------------
> >
> > ........................................................
> >
> > Jessica Kung                           jesskung@brel.com.sg
> > Brel Software Pte Ltd                  Tel: 65-272-6800
> > Blk 1003 Bukit Merah Central           Fax: 65-272-2811
> > #07-01/02                              http://www.brel.com
> > Singapore 159836                       09/27/01 21:18:44
> >
> >            Pls call us for the following services
> >          Web Creation, Web, Email & Domain Hosting
> >                  B2B B2C ASP CMS E-Commerce
> >
> >
> >
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail:
> turbine-user-help@jakarta.apache.org
> >
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: turbine-user-help@jakarta.apache.org
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-user-help@jakarta.apache.org


Dynamic uri and null values

Posted by Gareth Coltman <ga...@majorband.co.uk>.
Hi,


Found something odd (silly?) in the Turbine DyanamicURI code (v 1.1.1.1). When rendering the uri, empty strings (ie string with
length 0) are rendered as "null". Why? Surely they should just not be rendered at all ie:

&key1=&key2=&

etc

If you are creating a GET request with a lot of params, this just bulks up the html size. The parameter parser handles "null" and ""
in the same way, so what is this all about????

Apparently Jon Stevens and Jason wrote this, so guys.....?

Gareth

> -----Original Message-----
> From: jesskung@brel.com [mailto:jesskung@brel.com]
> Sent: Thursday, September 27, 2001 14:19
> To: turbine-user@jakarta.apache.org
> Subject: Re: slow performance... help
>
>
> Dear Turbine users
>
> We have managed to find out the following findings - one of
> the reason why the
> performance for our web app is slow.
>
> Timing for the following API,
> acl=TurbineSecurity.getacl (data.getuser());
>
> takes about 3 seconds when there are
> - 4000 records in the group table.
> - 30 permissions
> - 5 users
> - 8 roles
>
> Question is as follows:-
> - is it possible to have an API for acl where we can send the
> list of group ids so
> that the system only construct lists of items that we need.
> We actually only need to
> find out who are users with specific permission.
>
> The reason why the above API is called is because we need to
> use the following method.
> pass=acl.haspermission (myscreen, TurbineSecurity.getallGroups());
>
> Your help will be much appreciated.
>
> Thanks in advanced.
>
> Regards,
>
>
>
> ------------------------
>   From: Jason van Zyl <jv...@apache.org>
>   Subject: Re: slow performance... help
>   Date: Sat, 22 Sep 2001 15:43:05 -0400
>   To: turbine-user@jakarta.apache.org
>
>
> On 9/22/01 2:16 PM, "Jessica Kung" <je...@yahoo.com.sg> wrote:
>
> > Dear Turbine users
> >
> > We are in the midst of implementing a turbine app for
> > a content mgmt tool. However, performance is terribly
> > slow that it takes more than 30 secs for each  screen
> > to appear.
>
> So you have profiled your application and you are certain that it is
> Turbine? I have no problem looking at the code if you have
> used a profiler
> and know the bottleneck is in Turbine but I've never seen it
> take 30 seconds
> to have a screen execute.
>
> > Your help will be much appreciated. Encl pls find a
> > portion of the source code.
>
> Please include a link to your profiler output as well please.
> If there is
> indeed a bottleneck I'll take a look and see what might be done.
>
> > Thks in advanced.
> >
> > __________________________________________________
> > Do You Yahoo!?
> > Yahoo! Y! Pages - Search or browse for business listings.
> > http://yp.yahoo.com.sg/
> >
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail:
> turbine-user-help@jakarta.apache.org
>
> --
>
> jvz.
>
> Jason van Zyl
>
> http://tambora.zenplex.org
> http://jakarta.apache.org/turbine
> http://jakarta.apache.org/velocity
> http://jakarta.apache.org/alexandria
> http://jakarta.apache.org/commons
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: turbine-user-help@jakarta.apache.org
>
>
> ---------------End of Original Message-----------------
>
> ........................................................
>
> Jessica Kung                           jesskung@brel.com.sg
> Brel Software Pte Ltd                  Tel: 65-272-6800
> Blk 1003 Bukit Merah Central           Fax: 65-272-2811
> #07-01/02                              http://www.brel.com
> Singapore 159836                       09/27/01 21:18:44
>
>            Pls call us for the following services
>          Web Creation, Web, Email & Domain Hosting
>                  B2B B2C ASP CMS E-Commerce
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: turbine-user-help@jakarta.apache.org
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-user-help@jakarta.apache.org