XMPP Openfire Messages Inserting Latest Databases

Purpose: - Insert messages faster into the database.

I have built-in xmpp openfire one-on-one chat on my site.

I use the Monitoring Service plugin to store messages in a database.

What I came across is when a user sends a message from one user to another user, while the messages are stored in the database.

Messages are now saved, but I am facing the problem of inserting messages into the database.

I load messages through an ajax call when the user clicks on another user message stream, but if the messages are not stored in the database, it will not be returned in the ajax call history.

I made the following configuration settings for the Monitoring Service .

Messages stored later in the database.

I found an alternative solution for modifying the Plugin-Frame Monitoring Service file and reduces the insertion time of seconds, but this will ultimately affect the database.

Eg. Every minute 50 users send 10 messages, while the database can hang.

Any help would be appreciated if I can store messages in a database as quickly as possible!

+2
source share

Source: https://habr.com/ru/post/984374/


All Articles