Very slow message history retrieval

I’ve just deployed an Openfire server in a 20 user environment. When users log on and joins a group chat, the message history trickles in one message every two seconds or so. It’s currently taking a few minutes to catch up with real-time messages.

Does anyone have any suggestions for fixing this?

I think group chat history is not stored in Offline messages table and is held in memory. Can’t say why is it slow.

Ah, that makes sense. Is there any way to disable it?

I’ve found the option to disabled it under Group Chat > Settings > Message History.

Any tips from anyone for getting it to work faster would be great, though.