Also, if your grid is displaying many entities and those entities contains
many eager-loaded relations, you are retrieving a lot of data that may not
be necessary.  Perhaps you should consider a view-only entity that is
restricted to the actual displayed columns, and retrieve those entities with
some manual SQL.  Other options include setting the result set size
(setMaxResults) and displaying an information message where the result set
is larger than the limit to prompt the user to be more specific in their
search criteria, or using a grid where the pages of results are loaded on
demand, rather than the entire list loaded upon initial display.

Regards,
Jim.

-----Original Message-----
From: Matheus Eduardo Machado Moreira [mailto:matheus....@gmail.com] 
Sent: 28 December 2010 10:50
To: Tapestry users
Subject: Re: Grid with Scroll synchronization + Customization

   You could probably remove the TimingFilter that is present in your
AppModule. This service is part of the app that is generated by the
quickstart archetype and serve as an example of how to build and contribute
services. Just comment out the methods buildTimingFilter() and
contributeRequestHandler() (if the timing filter is the only contribution)
and you have 2624 ms gain in you app. :-)

   Atenciosamente,

Matheus Eduardo Machado Moreira
matheus....@gmail.com

*Good cooking takes time. If you are made to wait, it is to serve you
better, and to please you.*
Menu do Restaurant Antoine, New Orleans



2010/12/28 Duruk_Kab <durgesh.ka...@nuware.com>

>
> Thanks Thiago for pointing out logger issue. It was really very helpful.
>
> Now, the application takes around 5-6 seconds instead of 12-13 seconds it
> was taking before. But still have to figure out why it is taking 5-6
> seconds
> in Tapestry.
>
> The log says:
> [2010-12-28 03:53:51.247] server-tomcat-thread-13
> System.out I **** ScrollableDataGrid - step 4 -:Tue Dec 28 03:53:51 EST
> 2010
> [2010-12-28 03:53:51.257] server-tomcat-thread-13
> System.out I **** ScrollableDataGrid - step 3 -:Tue Dec 28 03:53:51 EST
> 2010
> [2010-12-28 03:53:51.257] server-tomcat-thread-13
> System.out I **** ScrollableDataGrid - step 4 -:Tue Dec 28 03:53:51 EST
> 2010
> [2010-12-28 03:53:51.377] server-tomcat-thread-13
> .cfs.raa.web.services.AppModule.TimingFilter.unknown I Request time: 2624
> ms
> [2010-12-28 03:53:57.436] server-tomcat-thread-14
> .cfs.raa.web.services.AppModule.TimingFilter.unknown I Request time: 0 ms
> [2010-12-28 03:53:57.456] server-tomcat-thread-13
> .cfs.raa.web.services.AppModule.TimingFilter.unknown I Request time: 0 ms
> [2010-12-28 03:54:02.894] server-tomcat-thread-13
> .cfs.raa.web.services.AppModule.TimingFilter.unknown I Request time: 0 ms
>
>
> It says TimingFilter took 2624ms. Any idea???
>
> I have below method in my AppModule which uses TiminigFilter:
> public void contributeRequestHandler(OrderedConfiguration<RequestFilter>
> configuration, @InjectService("TimingFilter") RequestFilter filter) {
>
> // Each contribution to an ordered configuration has a name, When
> necessary,
> you may
> // set constraints to precisely control the invocation order of the
> contributed filter
> // within the pipeline.
>
> configuration.add("Timing", filter);
> }
>
> Please help me to find out the root cause so that I can resolve this
> performance issue.
>
> @ DK
> --
> View this message in context:
>
http://tapestry-users.832.n2.nabble.com/Grid-with-Scroll-synchronization-Cus
tomization-tp5863225p5871361.html
> Sent from the Tapestry Users mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org

Reply via email to