eventstore
Advanced tools
Comparing version 1.0.1 to 1.0.2
@@ -85,7 +85,7 @@ 'use strict'; | ||
self.events = new mongo.Collection(client, options.eventsCollectionName); | ||
self.events.ensureIndex({ streamId: 1, aggregateId: 1, aggregate: 1, context: 1, commitId: 1 }, | ||
self.events.ensureIndex({ streamId: 1, aggregateId: 1, aggregate: 1, context: 1, commitId: 1, commitStamp: 1, commitSequence: 1 }, | ||
function (err) { if (err) { debug(err); } }); | ||
self.snapshots = new mongo.Collection(client, options.snapshotsCollectionName); | ||
self.snapshots.ensureIndex({ streamId: 1, aggregateId: 1, aggregate: 1, context: 1 }, | ||
self.snapshots.ensureIndex({ streamId: 1, aggregateId: 1, aggregate: 1, context: 1, commitStamp: 1, revision: 1, version: 1 }, | ||
function (err) { if (err) { debug(err); } }); | ||
@@ -92,0 +92,0 @@ |
@@ -40,7 +40,7 @@ 'use strict'; | ||
this.events = this.db.collection(options.eventsCollectionName + '.tingo'); | ||
this.events.ensureIndex({ streamId: 1, aggregateId: 1, aggregate: 1, context: 1, commitId: 1 }, | ||
this.events.ensureIndex({ streamId: 1, aggregateId: 1, aggregate: 1, context: 1, commitId: 1, commitStamp: 1, commitSequence: 1 }, | ||
function (err) { if (err) { debug(err); } }); | ||
this.snapshots = this.db.collection(options.snapshotsCollectionName + '.tingo'); | ||
this.snapshots.ensureIndex({ streamId: 1, aggregateId: 1, aggregate: 1, context: 1 }, | ||
this.snapshots.ensureIndex({ streamId: 1, aggregateId: 1, aggregate: 1, context: 1, commitStamp: 1, revision: 1, version: 1 }, | ||
function (err) { if (err) { debug(err); } }); | ||
@@ -47,0 +47,0 @@ |
{ | ||
"author": "adrai", | ||
"name": "eventstore", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"contributors": [ | ||
@@ -6,0 +6,0 @@ { |
@@ -0,1 +1,7 @@ | ||
#### v1.0.2 | ||
- optimized indexes | ||
#### v1.0.1 | ||
- optimized getSnapshot when using versioning of same revision | ||
#### v1.0.0 | ||
@@ -2,0 +8,0 @@ - refactored whole module |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
76658