I'm looking at replacing a cold fusion page that has a cfgrid with a flash page that has a DataGrid. It is taking the cfgrid about 10 seconds to load with all of the data and I want to speed that up through flash remoting and a CFC. The grid displays information on our 2500 employees.
I created a simple flash movie with a datagrid that populates itself with the output from the CFC. It takes the flash movie about 7 seconds to load.
The query only takes 140ms to execute. If I display the plain text in just a cold fusion page, it only takes about 500ms to load.
Now my question: Is there a faster way to use flash remoting other than going through a CFC? Also, is there a way to get the datagrid to populate in groups, like download and populate 100 records at a time until the 2500 item list is complete.
Thanks,
James
Sacramento, CA
You can use the Flash.Pagesize in a CFC.
Read up
http://livedocs.macromedia.com/coldfusion/6/Developing_ColdFusion_MX_Application
s_with_CFML/usingSalsaN3.htm#1160826
http://livedocs.macromedia.com/coldfusion/6.1/htmldocs/usingsa7.htm
Or even better buy the excellent book Flash Remoting: The Definitive Guide
by Tom Muck and read Chapter Five or surf to
http://www.flash-remoting.com/examples/master.cfm and download the code
called customers.
Jens
> I'm looking at replacing a cold fusion page that has a cfgrid with a flash page that has a DataGrid. It is taking the cfgrid about 10 seconds to load
with all of the data and I want to speed that up through flash remoting and
a CFC. The grid displays information on our 2500 employees.
> I created a simple flash movie with a datagrid that populates itself with the output from the CFC. It takes the flash movie about 7 seconds to load.
>
> The query only takes 140ms to execute. If I display the plain text in just a cold fusion page, it only takes about 500ms to load.
>
> Now my question: Is there a faster way to use flash remoting other than going through a CFC? Also, is there a way to get the datagrid to populate
in groups, like download and populate 100 records at a time until the 2500
item list is complete.
> Thanks,
>
> James
> Sacramento, CA
unleashed - 18 Nov 2003 18:54 GMT
Thanks for the information. I'll go pick up that book today.