transactionitem multikey index

This commit is contained in:
Matias Alejo Garcia 2014-01-11 22:57:33 -03:00
parent 518b69a94c
commit 7bf54aadf6
1 changed files with 4 additions and 0 deletions

View File

@ -18,6 +18,10 @@ var TransactionItemSchema = new Schema({
});
// Compound index
TransactionItemSchema.index({txid: 1, index: 1, value: 1}, {unique: true, dropDups: true});
TransactionItemSchema.statics.load = function(id, cb) {
this.findOne({