eventstore
Advanced tools
Comparing version 1.14.41 to 1.14.42
@@ -98,2 +98,3 @@ var util = require('util'), | ||
defaultOpt.autoReconnect = false; | ||
defaultOpt.useNewUrlParser = true; | ||
_.defaults(options.options, defaultOpt); | ||
@@ -201,2 +202,4 @@ } else { | ||
function (err) { if (err) { debug(err); } }); | ||
self.events[ensureIndex]({ aggregate: 1, aggregateId: 1, commitStamp: -1, streamRevision: -1, commitSequence: -1 }, | ||
function (err) { if (err) { debug(err); } }); | ||
@@ -203,0 +206,0 @@ if (options.positionsCollectionName) { |
@@ -44,2 +44,6 @@ var util = require('util'), | ||
function (err) { if (err) { debug(err); } }); | ||
this.events.ensureIndex({ commitStamp: 1, streamRevision: 1, commitSequence: 1 }, | ||
function (err) { if (err) { debug(err); } }); | ||
this.events.ensureIndex({ aggregate: 1, aggregateId: 1, commitStamp: -1, streamRevision: -1, commitSequence: -1 }, | ||
function (err) { if (err) { debug(err); } }); | ||
@@ -46,0 +50,0 @@ this.snapshots = this.db.collection(options.snapshotsCollectionName + '.tingo'); |
{ | ||
"author": "adrai", | ||
"name": "eventstore", | ||
"version": "1.14.41", | ||
"version": "1.14.42", | ||
"contributors": [ | ||
@@ -6,0 +6,0 @@ { |
@@ -308,3 +308,3 @@ # Introduction | ||
es.getFromSnapshot('streamId' || {/* query */}, revMax, function(err, stream) { | ||
es.getFromSnapshot('streamId' || {/* query */}, revMax, function(err, snapshot, stream) { | ||
var snap = snapshot.data; | ||
@@ -311,0 +311,0 @@ var history = stream.events; // events history from given snapshot |
@@ -1,2 +0,4 @@ | ||
#### [v1.14.4](https://github.com/adrai/node-eventstore/compare/v1.40.4...v1.14.3) | ||
#### [v1.14.42](https://github.com/adrai/node-eventstore/compare/v1.14.41...v1.14.42) | ||
- mongodb: speedup getLastEvent by adding a new index [#147](https://github.com/adrai/node-eventstore/pull/147) thanks to [robinfehr](https://github.com/robinfehr) | ||
#### [v1.14.41](https://github.com/adrai/node-eventstore/compare/v1.14.40...v1.14.41) | ||
@@ -3,0 +5,0 @@ - update deps |
201376
4838