File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -56,6 +56,7 @@ example with mongodb:
5656 // username: 'technicalDbUser', // optional
5757 // password: 'secret' // optional
5858 // url: 'mongodb://user:pass@host:port/db?opts // optional
59+ // positionsCollectionName: 'positions' // optioanl, defaultly wont keep position
5960 });
6061
6162example with redis:
@@ -536,6 +537,14 @@ for example to obtain the last revision nr
536537 console.log('the new id is: ' + newId);
537538 });
538539
540+ ## position of event in store
541+
542+ some db implementations support writing the position of the event in the whole store additional to the streamRevision.
543+
544+ currently those implementations support this:
545+
546+ 1 . inmemory ( by setting ```trackPosition`` option )
547+ 2 . mongodb ( by setting ``` positionsCollectionName ``` option)
539548
540549## special scaling handling with mongodb
541550Inserting multiple events (documents) in mongodb, is not atomic.
You can’t perform that action at this time.
0 commit comments