Is there a reason why you are using an iterator instead of a query? If you
are showing a lot of reacords, an iterator is definitely not the best way to
do it as it will create a full Reactor record object for every element in
the iterator. And if you are then creating more iterators for each of those
objects, yes, this could get very slow very quickly.
Basically if you're just showing the district names and circuit names, you
probably want to be using a query and not iterators.
On 7/16/07, Dave Phipps <[EMAIL PROTECTED]> wrote:
Many thanks Brian, that makes perfect sense.
I am guessing that in Development mode I should increase my timeouts a
bit. I am playing with some Iterator Objects running through one
iterator to output a list of districts and then within the loop setting
up another iterator to loop through for circuits within a given
district. I keep getting timeout errors on both the cfloop and cfoutput.
I increased the timeout and this solved the problem. Is this only a dev
mode issue or am I doing something fundamentally wrong with reactor,
pseudo example:
DistrictIter = District.getweb_districtsIterator()
loop condition = DistrictIter.hasMore()
thisdistrict = DistrictIter.getNext()
output: thisdistrict.getName()
if thisdistrict.getDistrictID() eq 7927
CircuitIter = thisdistrict.getweb_circuitsIterator()
loop condition = CircuitIter.hasMore()
thiscircuit = CircuitIter.getNext()
output: thiscircuit.getCircuitname()
endloop
endif
endloop
If necessary I can paste the actual code snippet. I am about to leave
for home and have shutdown eclipse!!
Cheers,
Dave
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
Reactor for ColdFusion Mailing List
[EMAIL PROTECTED]
Archives at: http://www.mail-archive.com/reactor%40doughughes.net/
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --