how to display progress while CF is busy


dear all:

my site has perform 30 cfif logics on estimated average of 30,000 entries, subsequent form submission. that's 600,000 subsequent processes.

to avoid request timeout, staggered process. form submits page1, runs 10 of 30 cfif, , in cfloop batches of 100. upon completion of first 100, cflocation reloads page1 next 100 entries. when has completed 30,000 entries ( = 300 times cflocation, followed cfloop loop count of 100x), cflocation page2, follows same procedure, time on cfif routines 11 20. , after page3, cfif routines 21-30 completed , cflocation generates results page.

all of works beautiful , pretty fast too. done under 60 seconds or so. but.... 60 seconds pc user, online, long time.

all time, form submit page visible. dynamic gif or flash freezes , progress bar in bottom of browser showing eager display next page. then, after 60 seconds results page sohws up.

question: there way display progress bar or that? tried iframe, doesn't work. syspect frameset not want frameset. , popup work not want popup either ;-)

don't spend hours on it, let me know if know trick.

thanks much!

hans

have played <cfflush...>

it allows incremental delivery of content client.
theoretically output in each loop and|or cflocation. using
<cfflush..> output delivered browser while
processing continues.

p.s. aware of <cfsetting requesttimeout="seconds"> property
that allow eliminate <cflocations...> used avoid
the timeout. set 60 seconds or whatever need run
request.

also if have access enterprise cf server there async
gateways off load processing separate requests not
tying 1 user using @ all. can done
<cfhttp...> timeout="0" parameter. more sophisticated
methods deliver final product need be developed
these solutions.






More discussions in ColdFusion


adobe

Comments

Popular posts from this blog

CAN'T INSTALL MAMBELFISH 1.5 FROM DIRECTORY - Joomla! Forum - community, help and support

error: expected initializer before 'void'

CPU load monitoring using GPIO and leds - Raspberry Pi Forums