Coldfusion OutOfMemoryError (CF9/Wheels)

后端 未结 2 1687
南方客
南方客 2021-01-24 07:29

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 ther

2条回答
  •  广开言路
    2021-01-24 08:21

    Don't use cfinvoke to create your Item component every iteration of your fixItems query. Create it once before that using createObject and simply call the updateCode method each time directly on the object.

提交回复
热议问题