Lazy loading. Send the data over the wire from the server side as
needed in small chunks, and send it pre-processed.

I've even gone as far as delimiting the data server side and then just
running a split on the client side to fill in the table.

If you're dealing with static data, you could also store records
client side in a HashMap. When performing a search I'd just pull back
the IDs to the client side, figure out which records didn't exist in
the map, and then query the server for the missing data.

But if you're pushing Gigs of data, that probably wont work for you.
Split it up into much smaller chunks if you can.

When displaying the data, I also didn't need a lot of functionality. I
just needed to display a table. So I built one using plain old HTML
and StringBuilder. Once the table was built I'd plop the HTML onto the
page. If you use a Grid or (shudder) FlexTable then the DOM
manipulation can take forever. I'm not sure if CellTable solves the
DOM problem or not, but I'd thought I'd mention that one method.

-Steve

On Aug 9, 7:33 am, vaibhav bhalke <[email protected]> wrote:
> Hi folks,
>
> Which are the Best practices to send huge amount of data from  server to
> client in GWT?
>
> Right now we are facing performance issue in GWT code.
>
> Our server side is sending huge xml (Size in MB/GB) to client side, our
> client side parses that xml and using parsed data, beans are formed for
> populating data in Celltable grid.
> We are filling 1k + / 10k+ records in CellTable grid.
>
> Is there any effective way/ Best practices followed while dealing with such
> a huge data?
> If we parse the data at server side and formed the beans at server side, Is
> this good? or any alternative way..
>
> Any help or guidance in this matter would be appreciated.
>
> --
> Best Regards,
> Vaibhav Bhalke
>
> <http://about.me/vaibhavbhalke>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

Reply via email to