Answered
Array bottleneck...need assistance
OK, I have a bit of code that is BOGGING down my app. I need
some ideas for smoothing it out. Basically, I need to be able to
reference an array by 3 elements (id, qstn_id, zone_id). In a query
later, I sum up the data and assign it to the proper position in
the array (ie zone1[6552][124747][16543] = 2). When you create an
array, does it create all of the elements below the element I have
created? For the example above, does CF have to create positions
for 1-6551 for the first element, 1-124746 for the second, etc?
Would it help any to reference the position in the original
reference list rather than the actual IDs? Ex. instead of
zone1[6552][124747][16543], it would be zone1[1][1][1].
I'm not married to the idea of the array. My other idea was to assign dynamic variables to the zones, but I don't think it would help.
Any help/ideas will be appreciated.
I'm not married to the idea of the array. My other idea was to assign dynamic variables to the zones, but I don't think it would help.
Any help/ideas will be appreciated.
