Re: contrib:Table very slow - sorry for insisting

2006-05-29 Thread Mark

Hello Rui,

have you found the reason for your performance problems?
I have a similar problem just now, my first time using the contrib:table 
component.
It works nicely for a while, but after refreshing the same page 10 or 20 
times, everything request that navigates from or to this page is really 
slow...
I have not started debugging yet, but it seems like most of the time is 
lost before and after the query - the entire list only contains 5 
elements...


Thanks,

MARK


Rui Pacheco wrote:

I am sorry for insisting on this, but its really confusing me.

I am using a normal table, fed from a ResultSet with 30 rows. I've set 
the

table to show 10 rows at each iteraction.
The problem is, after navigating back and forth on the data 3 or 4 times,
the page becomes unusable. It simply wont load.

I think the problem is not with my connection to the database because 
I only
do the query when the page is loaded, on my pageBeginRender, so the 
query is

not called again during the navigation.

I dont have any error messages on my logs, and so its very hard to see 
whats

happening. Can anyone help me shed some light into this?




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: contrib:Table very slow - sorry for insisting

2006-05-24 Thread James Carman
To verify you hunch, why not try replacing your query with a static list
of objects rather than something that's retrieved from the db.  If it's
still slow, then maybe it's something you're doing wrong with the table
classes.  If not, then I'd look into your query again.

-Original Message-
From: Rui Pacheco [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, May 24, 2006 10:09 AM
To: Tapestry users; Tapestry users
Subject: contrib:Table very slow - sorry for insisting

I am sorry for insisting on this, but its really confusing me.

I am using a normal table, fed from a ResultSet with 30 rows. I've set the
table to show 10 rows at each iteraction.
The problem is, after navigating back and forth on the data 3 or 4 times,
the page becomes unusable. It simply wont load.

I think the problem is not with my connection to the database because I only
do the query when the page is loaded, on my pageBeginRender, so the query is
not called again during the navigation.

I dont have any error messages on my logs, and so its very hard to see whats
happening. Can anyone help me shed some light into this?

-- 
Cumprimentos,
Rui Pacheco



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: contrib:Table very slow - sorry for insisting

2006-05-24 Thread Mike Snare

pageBeginRender gets run every time the page renders -- which happens
every time the user navigates the table.  Check that.

Have you tried the standard System.out.println debugging or -- better
yet -- real debugging?

-Mike

On 5/24/06, Rui Pacheco [EMAIL PROTECTED] wrote:

I am sorry for insisting on this, but its really confusing me.

I am using a normal table, fed from a ResultSet with 30 rows. I've set the
table to show 10 rows at each iteraction.
The problem is, after navigating back and forth on the data 3 or 4 times,
the page becomes unusable. It simply wont load.

I think the problem is not with my connection to the database because I only
do the query when the page is loaded, on my pageBeginRender, so the query is
not called again during the navigation.

I dont have any error messages on my logs, and so its very hard to see whats
happening. Can anyone help me shed some light into this?

--
Cumprimentos,
Rui Pacheco




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]