You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Duruk_Kab <du...@nuware.com> on 2010/12/24 10:08:48 UTC
Grid with Scroll synchronization + Customization
Hi,
I have below requirements for Tapestry grid, I am using Tapestry 5.1.0.5:
- Reduce the grid size (Say to display in half of the page) with 50 records
per page
-> I can handle showing records per page but to reduce the grid size, I
could not get any example.
- I have around 50 columns to display in the grid with different widht based
on the source type (Date, String, Amount etc.)
- I have to manage Vertical + Horizontal synchronization for the grid, like
if i move to right side of the grid both columns as well as Content should
scroll.
- I have to manage pagination.
-> This shold be managed automatically, i guess. I have got the source of
Tapestry GridDataSource, based on that I can handle pagination with number
of records.
Can you please guide me to handle all these requrements efficiently without
compromizing on perfomance issues? That will be really helpful. I did have a
look at JumpStart but it did not help me to fulfull all my requirements.
(http://202.177.217.122:8080/jumpstart/)
Thanks,
DK
--
View this message in context: http://tapestry-users.832.n2.nabble.com/Grid-with-Scroll-synchronization-Customization-tp5863225p5863225.html
Sent from the Tapestry Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
RE: Grid with Scroll synchronization + Customization
Posted by Jim O'Callaghan <jc...@yahoo.co.uk>.
Can you wrap the grid in a div with fixed height / width and set its
overflow css property to "both"? Specify a pager for both the top and
bottom of the grid and use some custom css to make their positions absolute?
I'm not sure there is a need to be altering the GridDataSource for this
requirement unless I'm missing something.
Regards,
Jim.
-----Original Message-----
From: Duruk_Kab [mailto:durgesh.kabra@nuware.com]
Sent: 24 December 2010 09:09
To: users@tapestry.apache.org
Subject: Grid with Scroll synchronization + Customization
Hi,
I have below requirements for Tapestry grid, I am using Tapestry 5.1.0.5:
- Reduce the grid size (Say to display in half of the page) with 50 records
per page
-> I can handle showing records per page but to reduce the grid size, I
could not get any example.
- I have around 50 columns to display in the grid with different widht based
on the source type (Date, String, Amount etc.)
- I have to manage Vertical + Horizontal synchronization for the grid, like
if i move to right side of the grid both columns as well as Content should
scroll.
- I have to manage pagination.
-> This shold be managed automatically, i guess. I have got the source of
Tapestry GridDataSource, based on that I can handle pagination with number
of records.
Can you please guide me to handle all these requrements efficiently without
compromizing on perfomance issues? That will be really helpful. I did have a
look at JumpStart but it did not help me to fulfull all my requirements.
(http://202.177.217.122:8080/jumpstart/)
Thanks,
DK
--
View this message in context:
http://tapestry-users.832.n2.nabble.com/Grid-with-Scroll-synchronization-Cus
tomization-tp5863225p5863225.html
Sent from the Tapestry Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: Grid with Scroll synchronization + Customization
Posted by Nourredine <no...@yahoo.com>.
Tawus wrote:
>
> Hi
>
> This is something you should have a look at
>
> http://docs.jboss.org/hibernate/core/3.3/reference/en/html/performance.html
> <http://docs.jboss.org/hibernate/core/3.3/reference/en/html/performance.html>
> As an example, in one of our projects we had basic audit fields like
> creator
> user and modifier user in every table.
>
> Each time a grid was displayed, because of Eager Fetching, user table rows
> were fetched along with
> the other table rows. We could not go for lazy loading as the creator and
> modifier were to be displayed too
>
>
>
Hi,
Actually, for join queries, the pagination is not effective when you use the
"fetch" syntax (even if you use the setMaxResult...).
See here for more details :
http://java.dzone.com/articles/hibernate-tuning-queries-using?page=0,2
A solution is to get the result in 2 times : get the paginated data without
"fetching" , then get joined data from the previous list (using the "IN"
syntax and taking into account the sorting in the 2 queries)
Nourredine.
--
View this message in context: http://tapestry.1045711.n5.nabble.com/Grid-with-Scroll-synchronization-Customization-tp3317448p3322702.html
Sent from the Tapestry - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: Grid with Scroll synchronization + Customization
Posted by Taha Hafeez <ta...@gmail.com>.
Hi
This is something you should have a look at
http://docs.jboss.org/hibernate/core/3.3/reference/en/html/performance.html
<http://docs.jboss.org/hibernate/core/3.3/reference/en/html/performance.html>
As an example, in one of our projects we had basic audit fields like creator
user and modifier user in every table.
Each time a grid was displayed, because of Eager Fetching, user table rows
were fetched along with
the other table rows. We could not go for lazy loading as the creator and
modifier were to be displayed too
Finally what we did was break @ManyToOne relationship of those tables with
user table and directly place
the business key (which in that case was username) into those tables.
e.g
class Transaction {
.... Fields ...
@ManyToOne
private User creator;
@ManyToOne
private User modifier;
}
changed to
class Transaction {
private String creatorName;
private String modifierName;
}
Hope it helps
regards
Taha
On Wed, Dec 29, 2010 at 4:04 PM, Duruk_Kab <du...@nuware.com> wrote:
>
> Hi All, Thanks alot for your suggestions.
>
> I have implemented GridDataSource so I am retrieving only required data
> from
> the back end to be displayed on the grid. (SetMaxResults + Pagination)
>
> But I do have many things associated with the Grid as Error image, Check
> boxes with JavaScript validation, Formatting for Amount / Date, Editable
> grid, Have more than 50 columns and 50 rows etc.
>
> http://tapestry-users.832.n2.nabble.com/file/n5874184/Detail.bmp
>
> Is it taking 3-4 seconds to load the grid because of all these features? I
> could trace that codebase takes maximum 2 seconds to retrieve the data from
> the back end. Is this issue is related to the Browser?
>
> Taha, Can you give me any reference regarding Lazy Loading and even at
> times
> removing hibernate based table relationships... as you pointed out?
>
> Please help me to conclude on what is taking time as I dont think I have
> any
> issues with the code base.
>
> @ DK
> --
> View this message in context:
> http://tapestry-users.832.n2.nabble.com/Grid-with-Scroll-synchronization-Customization-tp5863225p5874184.html
> Sent from the Tapestry Users mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>
Re: Grid with Scroll synchronization + Customization
Posted by Duruk_Kab <du...@nuware.com>.
Hi All, Thanks alot for your suggestions.
I have implemented GridDataSource so I am retrieving only required data from
the back end to be displayed on the grid. (SetMaxResults + Pagination)
But I do have many things associated with the Grid as Error image, Check
boxes with JavaScript validation, Formatting for Amount / Date, Editable
grid, Have more than 50 columns and 50 rows etc.
http://tapestry-users.832.n2.nabble.com/file/n5874184/Detail.bmp
Is it taking 3-4 seconds to load the grid because of all these features? I
could trace that codebase takes maximum 2 seconds to retrieve the data from
the back end. Is this issue is related to the Browser?
Taha, Can you give me any reference regarding Lazy Loading and even at times
removing hibernate based table relationships... as you pointed out?
Please help me to conclude on what is taking time as I dont think I have any
issues with the code base.
@ DK
--
View this message in context: http://tapestry-users.832.n2.nabble.com/Grid-with-Scroll-synchronization-Customization-tp5863225p5874184.html
Sent from the Tapestry Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: Grid with Scroll synchronization + Customization
Posted by Taha Hafeez <ta...@gmail.com>.
Hi,
I think what Jim was also pointing out was Eager Loading which is really
something to be taken very seriously.
I remember we had a performance issue in one of our applications and after
monitoring the generated SQL
(we were using hibernate) we found a lot of eager loading in our grids.We
resolved the issue by using a
combination of Lazy Loading and even at times removing hibernate based table
relationships
and using business key of one table replace foreign key in other tables.
regards
Taha
On Tue, Dec 28, 2010 at 6:42 PM, Nicolas Barrera <nb...@gmail.com> wrote:
> Jim,
>
> I think Duruk said that he's already managing pagination... so I think that
> he's already using setMaxResults...
>
> unless he's using pagination only in the view side but not paginating the
> query... (using maxresult).
>
>
> Duruk,
>
> if you 're not using max result in your queries, you 're just paginating
> the
> data being displayed on the grid..., and querying the full table.
> So let's say you have a database table with 1M rows, and you want to show
> the user a grid with 10 rows per page. Then while you just show
> 10 rows... a query to the database will query for 1M rows and bring them up
> to memory in form of objects, that will always hit performance.
>
> If you paginate your queries too, you will ask for the 1M rows... but only
> 10 at a time... so memory and db cpu will be fine.
>
> I leave a link I found useful for tapestry/hibernate pagination, perhaps
> there 're better links around there this is just one:
>
>
> http://www.sencha.com/forum/showthread.php?30595-extjs2-tapestry5.11-spring-hibernate%28grid-paging..-....%29
>
>
> hope it helps,
> cheers.
>
>
> Nicolás.-
>
>
> On Tue, Dec 28, 2010 at 8:10 AM, Jim O'Callaghan <jc1000001@yahoo.co.uk
> >wrote:
>
> > 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.emm@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.emm@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 <du...@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<
> http://tapestry-users.832.n2.nabble.com/Grid-with-Scroll-synchronization-Cus%0Atomization-tp5863225p5871361.html
> >
> > > Sent from the Tapestry Users mailing list archive at Nabble.com.
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> > > For additional commands, e-mail: users-help@tapestry.apache.org
> > >
> > >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> > For additional commands, e-mail: users-help@tapestry.apache.org
> >
> >
>
Re: Grid with Scroll synchronization + Customization
Posted by Nicolas Barrera <nb...@gmail.com>.
Jim,
I think Duruk said that he's already managing pagination... so I think that
he's already using setMaxResults...
unless he's using pagination only in the view side but not paginating the
query... (using maxresult).
Duruk,
if you 're not using max result in your queries, you 're just paginating the
data being displayed on the grid..., and querying the full table.
So let's say you have a database table with 1M rows, and you want to show
the user a grid with 10 rows per page. Then while you just show
10 rows... a query to the database will query for 1M rows and bring them up
to memory in form of objects, that will always hit performance.
If you paginate your queries too, you will ask for the 1M rows... but only
10 at a time... so memory and db cpu will be fine.
I leave a link I found useful for tapestry/hibernate pagination, perhaps
there 're better links around there this is just one:
http://www.sencha.com/forum/showthread.php?30595-extjs2-tapestry5.11-spring-hibernate%28grid-paging..-....%29
hope it helps,
cheers.
Nicolás.-
On Tue, Dec 28, 2010 at 8:10 AM, Jim O'Callaghan <jc...@yahoo.co.uk>wrote:
> 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.emm@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.emm@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 <du...@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<http://tapestry-users.832.n2.nabble.com/Grid-with-Scroll-synchronization-Cus%0Atomization-tp5863225p5871361.html>
> > Sent from the Tapestry Users mailing list archive at Nabble.com.
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> > For additional commands, e-mail: users-help@tapestry.apache.org
> >
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>
RE: Grid with Scroll synchronization + Customization
Posted by Jim O'Callaghan <jc...@yahoo.co.uk>.
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.emm@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.emm@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 <du...@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-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: Grid with Scroll synchronization + Customization
Posted by Matheus Eduardo Machado Moreira <ma...@gmail.com>.
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.emm@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 <du...@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-Customization-tp5863225p5871361.html
> Sent from the Tapestry Users mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>
Re: Grid with Scroll synchronization + Customization
Posted by Duruk_Kab <du...@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-Customization-tp5863225p5871361.html
Sent from the Tapestry Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: Grid with Scroll synchronization + Customization
Posted by "Thiago H. de Paula Figueiredo" <th...@gmail.com>.
On Mon, 27 Dec 2010 10:38:08 -0200, Duruk_Kab <du...@nuware.com>
wrote:
> I have used the same JavaScript + CSS code for synchronization purpose,
> the main problem with this is, we are facing many perfomance issues.
Most probably it's in the database. Turning the log level so low as you
did hurts performance a lot.
--
Thiago H. de Paula Figueiredo
Independent Java, Apache Tapestry 5 and Hibernate consultant, developer,
and instructor
Owner, Ars Machina Tecnologia da Informação Ltda.
http://www.arsmachina.com.br
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: Grid with Scroll synchronization + Customization
Posted by Duruk_Kab <du...@nuware.com>.
Thanks for the help.
I have used the same JavaScript + CSS code for synchronization purpose, the
main problem with this is, we are facing many perfomance issues.
I have put SOPs to figure out which part of code is taking huge time and
found out that, it is tapestry which is taking most part of the time. That
is the reason thought of asking if there is any other way to achieve the
same or am I doing something wrong.
I have attached the log for your reference. Please have a look and let me
know if you see something fishy...
Log file: http://tapestry-users.832.n2.nabble.com/file/n5869243/trace.log
trace.log
Thanks,
DK
--
View this message in context: http://tapestry-users.832.n2.nabble.com/Grid-with-Scroll-synchronization-Customization-tp5863225p5869243.html
Sent from the Tapestry Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: Grid with Scroll synchronization + Customization
Posted by "Thiago H. de Paula Figueiredo" <th...@gmail.com>.
On Fri, 24 Dec 2010 07:08:48 -0200, Duruk_Kab <du...@nuware.com>
wrote:
> Hi,
Hi!
> I have below requirements for Tapestry grid, I am using Tapestry 5.1.0.5:
> - Reduce the grid size (Say to display in half of the page) with 50
> records
> per page
> -> I can handle showing records per page but to reduce the grid size,
> I could not get any example.
This isn't related to Tapestry at all. Just use CSS for that.
> - I have around 50 columns to display in the grid with different widht
> based on the source type (Date, String, Amount etc.)
> - I have to manage Vertical + Horizontal synchronization for the grid,
> like if i move to right side of the grid both columns as well as Content
> should scroll.
This isn't related to Tapestry at all. Use a combination of CSS and
JavaScript for that.
> - I have to manage pagination.
> -> This shold be managed automatically, i guess. I have got the
> source of Tapestry GridDataSource, based on that I can handle pagination
> with number of records.
You answered your own question here. :) Just implement a GridDataSource
and use it as the source parameter of Grid.
--
Thiago H. de Paula Figueiredo
Independent Java, Apache Tapestry 5 and Hibernate consultant, developer,
and instructor
Owner, Ars Machina Tecnologia da Informação Ltda.
http://www.arsmachina.com.br
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org