On Mar 13, 1:13 am, Roedy Green <see_webs...@[EMAIL PROTECTED]
>
wrote:
> On Wed, 12 Mar 2008 08:55:24 -0700 (PDT), rhino1130
> <rboeckm...@[EMAIL PROTECTED]
> wrote, quoted or indirectly quoted
> someone who said :
>
> > So I convert the hits to a dataset and that to xml. To
> >complicate things, the term searched in my boolean query is returning
> >32,000 records. Do I need them all? Probably not but I have to return
> >them in my webservice.
>
> You problem is a grabbed too much stuff. Think about what you could
> do to your query to prune that list down.
> --
>
> Roedy Green Canadian Mind Products
> The Java Glossaryhttp://mindprod.com
I'm not familiar with this particular technology but it looks like you
are marshaling all of the data on the server before passing it through
to the client. It should be possible to push the data to the client
one (or some number of records) at a time.
Instead of:
for(int i=0;i<n;i++) {
Collection data = putDataInSomeCollection();
}
sendDataToClient(data);
Something like:
for(int i=0;i<n;i++) {
Object obj putSingleRecordIntoSomeDataStructure();
sendSmallDataStructureToClient();
}
Hope this helps,
John


|