Skip to content

Commit 7ec4e32

Browse files
committed
add position option to readme
1 parent 21101da commit 7ec4e32

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff 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

6162
example 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
541550
Inserting multiple events (documents) in mongodb, is not atomic.

0 commit comments

Comments
 (0)