How long does it take for the server call to complete , i.e what amount of time does it take to push out all of that XML. How long does it take to parse all of that XML on the Flex side. In addition , if you are using a databinding on your datagrid which I assume you are , that could be adding some slow-up to the process. Since the collection fires an update event for each item added.
Server-side probably isn't the problem. What does the Flex side look like?
Are you converting the XML to objects? That can take a while.
Hey HarUI ,
This should probably be another post but I have a question that is semi-related. Lets say I have a large number of objects ( think millions ) that I get parse from XML and place into an array. Now if I have an arraycollection and I do ac.source = itemArray , does the collection fire 1 single update event , or does it fire a whole bunch.
About a year ago , I saw a video where people where talking about the performance hit incurred by the data-binding on the arraycollection and was wondering if this was a way around it.
I don't mind putting this in another post if you would like the points.
1 person found this helpful
Its better to use DataGrid paging by displaying a maximum number of records and fetch the results only for the displayed results based on the pageIndex (by querying based on startIndex and endIndex in backend database).
This way you could far better reduce the time delay as you are not fetching the total results one time but only getting the feew results based on the results per page.
Hope it helps...
If this post answers your question or helps, please kindly mark it as such.
Thanx Ubu ,HarUI and Bhasker Chari, i am pretty much aware of the fact that paging takes much less to display records, but the problem here is I need to show user all the record on single page. It took 10-15 mins for the datagrid to populate 18,850 records even from single DB table.
1 person found this helpful
Remember that DataGrid only makes as many renderers as are visible. Since
there is no way to show all 18,850 records at once, one option is to bring
in a bunch and then get more later.
However, it must also be noted that the Flash Player has a maximum 60 second
timeout. If any loop or recursion does not complete in 60 seconds, the
application will be halted and continue on the next frame. Therefore it
seems possible that something else is going on.
Try using the profiler to see where all that time is going.
So you have a app, that will show a user 18500 records all at once?
ignoring the load time, how does all that data even fit all on the screen at a time.
you have a app that's 1900x1200?
yes, you are right. I am using 1920x1200 screen resolution. But I will try profiler, lets see how it goes.