How long does it take to save message to MAM database (Monitoring Service plugin)

Hi everyone,

I’m new to develop xmpp client. I’m using Strophe to build a web chat client with OpenFire and Monitoring Service plugin. I realize that it takes about 1-2 minutes to store a message to MAM Database. That’s why I can’t see latest messages after retrieving archive message.

So my question is: Is there anyway to make Monitoring Service store the message to DB immediately???

Thank you.