I am using the Monitoring service plugin to save one-to-one chats in the db (mysql). But i observe that there is some delay of about 20-30sec between the time when message is received and when it gets stored in the db. I cant find any settings for this in the Archive settings page of the admin console. May be openfire is using some internal caching or batching mechanism to store chunk of data at one. Is there any way to avoid this as I need to get the recent chat between two people as soon as any one of them refreshes the page.