Using mod_mam to retrieve room history causes mnesia to crash with a few hundred chats

I am using mnesia internal database to store data and i am querying mod_mam to retrieve room history after 100 concurrent chats ejabberd crashes and i get

Mnesia(ejabberd@localhost): ** WARNING ** Mnesia is overloaded: {dump_log,write_threshold}

in ejabberd.yml file i have set

mod_mam:
db_type: mnesia
default: always

should i use an external database or is it my configuration

Syndicate content