XMPP Openfire Messages inserting late in database

▼魔方 西西 提交于 2019-12-23 01:52:37

问题


Goal:- Inserting messages in faster way to database.

I have integrated xmpp openfire one-to-one chat over my website.

I am using Monitoring Service plugin for storing messages into the database.

What i am facing is when user send a message from one user to another user at that time messages are stored in the database.

Now messages are stored, but i am facing issue of inserting messages late into the database.

I am loading messages via ajax call when user clicks on another user message thread but if the messages does not store in the database ofcourse it will not be returned in ajax call history.

I have done following configuration settings for Monitoring Service plugin.

I've find alternative solution of modifying Monitoring Service plugin's jar file and decrements inserting seconds but ultimately it will affect database.

Eg. Every minute 50 users send 10 messages at that time database may hanged.

Any help would be appreciated if i can store the messages into the database as faster way!

来源:https://stackoverflow.com/questions/37346341/xmpp-openfire-messages-inserting-late-in-database

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!