Incrementing a variable in memory
I have an older application that is querying a list, pulling out an AD from the list, then incrementing the database by +1 with every pull. The site has grown very popular and now the traffic is creating a ton of deadlocks. I tried using CFLOCK but that made things worse.
Instead of writing each increment to the DB, I want to write it to memory and then run a routine which collects that value at some interval and update the DB.
How would I do this? Would I use an Array or some other method? I am not all that familiar with CF. Thanks in advance.
