I would like to solve this question early.
2012年4月30日月曜日 16時33分47秒 UTC+9 tong123123:
Sorry, I am not quite understanding your reply.--
anyway, I found that if my search results return near 10,000 records, the time spent in sql (DAO class) is only 4 seconds, but the time to return to the first line of method onSuccess (RPC call, async callback method, onSuceess method) need about 2 minutes. and once enter the first line in onSuceess method, then the time spent to go to the last line of onSuccess method is near 0 second!!
so where is these 2 minutes spent?
I think is these the time spent from copy 10,000 records from server to client?
and I think if I use asyncDataProvider, will these 2 minutes decrease dramatically?
On Monday, April 30, 2012 11:15:23 AM UTC+8, Robert W wrote:ListDataProvider with view creates only item renderer count neccesary to fill view. You can override simple pager to implement eg constant row count com.google.gwt.view.client.
HasRows in while searching
On Sunday, April 29, 2012 8:08:08 AM UTC+2, tong123123 wrote:in a search page, assume the result return many record like 8000 records, and in the simplepager, each page display only 10 records, if using ListDataProvider, the 8000 records will be sent to client at once time and then render the celtable with all 8000 records in one time, the result is static.
if using AsyncDataProvider, each time the server only sent 10 records to client.
1) so AsyncDataProvider response is much faster, is this correct?
2) but how about if the user press the "last button" in the simplepager when the celltable using AsyncDataProvider? the speed is still similar to get the first page? that is, it only fetch records from 7990 to 8000 records only, bypass all the others (record before 7990)?
3) assume user input criteria fieldA = "XXX", if using asyncDataProvider, while searching, other user may enter record which fulfill the criteria fieldA = "XXX", so the total number of records in simpepager is continually changing? and so the first ten records in first page is keep continually changing?
4) anyway, in my case (searching with result return thousands records), AsyncDataProvider is more suitable then using ListDataProvider?
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/-/_pYeB5c1beAJ.
To post to this group, send email to firstname.lastname@example.org.
To unsubscribe from this group, send email to email@example.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Post a Comment