Skip to content

Commit

Permalink
Merge pull request #2155 from esl/pubsub-cache-doc
Browse files Browse the repository at this point in the history
[skip ci] Add note about cache backend for pubsub_last_item
  • Loading branch information
michalwski committed Dec 7, 2018
2 parents 10fc447 + 45a7df7 commit 7c44ceb
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions doc/modules/mod_pubsub.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,16 +35,24 @@ Node configuration still uses the default configuration defined by the node plug

#### Note about RDBMS backend

Current RDBMS backend replaces `pubsub_state` and `pubsub_item` Mnesia tables with RDBMS equivalents.
Current RDBMS backend replaces `pubsub_node`, `pubsub_state` and `pubsub_item` Mnesia tables with RDBMS equivalents.
Due to a fact that some data is still maintained in Mnesia, there is a certain risk of data becoming inconsistent.
The schema used by this backend may change until it reaches stable status.

#### Cache Backend

Although it is not a default setting, the cache backend can be configured
to use Mnesia or RDBMS. It allows storing the `pubsub_last_item` table
separately. For example you can configure `backend` to use `rdbms` and
`last_item_cache` to use `mnesia`.

### Example Configuration

```
{mod_pubsub, [{access_createnode, pubsub_createnode},
{ignore_pep_from_offline, false},
{last_item_cache, true},
{backend, rdbms},
{last_item_cache, mnesia},
{max_items_node, 1000},
{plugins, [<<"flat">>, <<"pep">>]}
]},
Expand Down

0 comments on commit 7c44ceb

Please sign in to comment.