large celltable pagination question

47 views
Skip to first unread message

mapaa

unread,
Oct 20, 2011, 3:16:47 PM10/20/11
to Google Web Toolkit
I have datasets of 500 + that I need to display in celltable. I have
paging set up for 5 rows per page but it is just as slow as displaying
500 + rows without pagination. If I load all of the data at once but
have pagination set up does gwt still render the entire celltable?

Uemit

unread,
Oct 21, 2011, 11:32:10 AM10/21/11
to google-we...@googlegroups.com
No, CellTable will only render the visible part. 
Fetching 500 rows from the server should take too long either.
I assume that the slowness is not related to the rendering in the CellTable but probably due to fetching and parsing of the 500 rows because you don't see any difference when you render 5 rows or 500. 
So it clearly must be something else. 

There are 3 possible bottlenecks:

  1. Fetching the data from the backend: if you use JSON and don't transfer many fields then 500 rows shouldn't be a big issue (you can verfiy it by using Firebug and checking the payload size)
  2. Parsing the fetched data: Again with JSON it should be fast enough to parse 500 rows (not sure about XML)
  3. Rendering the data in a CellTable: if there is no performance difference between 500 rows and 5 rows then the bottleneck must lie in one of the previous areas.

I have no performance problems fetching around 2000 rows and displaying 50 of them (using SimplePager). 


Grant Rettke

unread,
Oct 21, 2011, 12:05:30 PM10/21/11
to google-we...@googlegroups.com
http://googlewebtoolkit.blogspot.com/2008/11/profiling-gwt-application-performance.html

> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/google-web-toolkit/-/4F6zBx7p3BkJ.
> To post to this group, send email to google-we...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-tool...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>

--
http://www.wisdomandwonder.com/
ACM, AMA, COG, IEEE

misty periard

unread,
Oct 21, 2011, 12:45:59 PM10/21/11
to google-we...@googlegroups.com
Thanks very much for the info. It looks like my bottleneck is number 2.

misty periard

unread,
Oct 24, 2011, 2:22:45 PM10/24/11
to google-we...@googlegroups.com
Uemit-

Are you using Javascript Overlay Types or JSONParser to parse your data?

Thanks!

On Fri, Oct 21, 2011 at 11:32 AM, Uemit <uemit...@gmail.com> wrote:

Uemit

unread,
Oct 24, 2011, 2:31:24 PM10/24/11
to google-we...@googlegroups.com
I am actually using piriti to convert JSON to my DTOs.  Piriti uses Generator and JSONParser internally to convert JSON to DTOs 


Reply all
Reply to author
Forward
0 new messages