Coldfusion OutOfMemoryError (CF9/Wheels)
问题 I have a function which loops over a query and updates a database row for each item. After about 7000 iterations it's throwing an out of memory error - Java heap space. Is there anything obviously wrong with this code ? <cfloop query=loc.fixItems> <cfset loc.count = loc.count + 1> <cfset var categoryName = loc.fixItems.categoryName> <cfinvoke component="Item" method="updateCode" itemId="#loc.fixItems.itemId#" code="#loc.fixItems.newCode#"/> <!--- Increment counter for category ---> <cfif