C M Higgins 25.Jun.12 04:10 AM a Web browser Domino DesignerAll ReleasesWindows 2003
Hi,
I have any agent which needs to process over 70,000 documents, during which the exection time limit is being exceeded. We don't want to increase the agent run time in Server doc as its the main server for operation.
I'm looking for advice on the best way to address this issue.
I was going to stop the agent after it had processed 25,000 doc ; Agent 1
Dim session as notessession..........
dim doccount as integer
doccount=0
loop thu documents
call doc.save
doccount=doccount +1
if doccount=25000 then
GoTo Finish
End if
set doc=view .getnextdocument(doc)
Wend
and set the next agent to begin processing at 25,001 document; Agent 2
Dim session as notessession..........
set view=db.getview("ViewName")
set doc=view.GetNthdocument(25001)
dim doccount as integer
doccount=0
loop thu documents
call doc.save
doccount=doccount +1
if doccount=25000 then
GoTo Finish
End if
set doc=view .getnextdocument(doc)
Wend