Hi felixs51477447,
When you use Javascript to process large amounts of data you must take some precautions to avoid
memory leaks. Otherwise the server may become unresponsive after a while.
Queries in Javascript (queryDef) results should be limited in number. Do not create a querydef result
of more than 10,000 (ten thousand) records. Use the “lineCount” attribute when loading a large
table. If you have more than 10,000 records to process, it's possible, but requires a special technique.
Exit the Javascript interpreter every 10,000 lines, then start again from the line where you stopped.
Use parseInt(), parseFloat() and toString() to cast the XML types to normal Javascript types before
using them.
For instance : var iRecipientId = parseInt(ctx.recipient.@id); process(iRecipientId).
Otherwise it could create errors on comparison of values, because they are not of the same type.
Regards,
Venu