Agent(before new mail arrives) time delay

I found the status of mail pending.That caused by an agent, before new mail arrives agent.

I used the agent profiler and the result is below.

Elapse time : 14054 msec

Total measured time: 487 msec

Help me what caused the long elapsed time.

Subject: What is your code doing?

Subject: Read check & count

It is used to read count.Agent Process is

  1. check person if aleady read.

(check another DB contains about 0.6 milion doc)

  1. if new → count up and document save

  2. if new → create doc for duplicate check

  3. if new → create count doc to the other DB

(will be sent to DB2)

Why use before mail arrives agent

is the elapsed time was so long to service.

Subject: You’ll want to add debug to your agent

to figure out which part of the agent is taking a long time.