mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-23 16:18:44 +05:00
RunID,OriginID SMCosts index
This commit is contained in:
@@ -286,6 +286,16 @@ func (ms *MongoStorage) EnsureIndexes() (err error) {
|
||||
if err = db.C(utils.TBLSMCosts).EnsureIndex(idx); err != nil {
|
||||
return
|
||||
}
|
||||
idx = mgo.Index{
|
||||
Key: []string{RunIDLow, OriginIDLow},
|
||||
Unique: false,
|
||||
DropDups: false,
|
||||
Background: false,
|
||||
Sparse: false,
|
||||
}
|
||||
if err = db.C(utils.TBLSMCosts).EnsureIndex(idx); err != nil {
|
||||
return
|
||||
}
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user