[ejabberd] pubsub_item.DAT getting big

Christophe Romain cromain at process-one.net
Mon Sep 29 20:55:06 MSD 2008

here is what ejabberd's pubsub is doing by now:

if pubsub#persist_items is true
	stores only pubsub#max_items items
if pubsub#persist_items is false
	stores no items if send_last_published_item is set to never
	else stores only 1 item

so, having #persist_items=0 or #max_items=1, you should not see 10  
items on each node.
this node configuration is to be done on each node.
you can also define your own node type with default max_items set to  
1 or 2

you can disable pep plugin in ejabberd.cfg like this:
  {mod_pubsub,   [
                   {access_createnode, pubsub_createnode},
                   {plugins, ["default"]}
(when disabling pep, you can also disable mod_caps)

when publishing more items than max_items, only the last Nth allowed  
items are stored
publishing another item deletes the oldest one.

More information about the ejabberd mailing list