How many messages can be stored on server?

Hi, just as the title, I wondering how many messages can be stored on server? If the number of messages is limited can I modify it from somewhere?

@JX001 By messages are you referring to chat channel message history? If so that’s only limited by available database storage space. We usually recommend periodically deleting messages older than some given age - most projects tend to delete any chat history older than 30 days.

Can you tell me more about how to delete message on server? Is that server side setting or can be set in Nakama system?

There is no server setting for this. You should set up something like a CRON job to delete message history using a SQL query, for example this should work:

DELETE FROM message WHERE (now() - create_time) > INTERVAL '30 days'
1 Like