Skip to content

Commit

Permalink
set index
Browse files Browse the repository at this point in the history
  • Loading branch information
deinelieblings committed Jul 11, 2024
1 parent 637aee5 commit 41bf65f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dao/connection.go
Original file line number Diff line number Diff line change
Expand Up @@ -119,9 +119,9 @@ func InitialDatabase() {
OrganizerCollection = Database.Collection(models.OrganizerCollection).CreateIndex("name", true)
EventCollection = Database.Collection(models.EventCollection)
SourceCollection = Database.Collection(models.SourceCollection)
TakingCollection = Database.Collection(models.TakingCollection)
TakingCollection = Database.Collection(models.TakingCollection).CreateIndex("crew_id", false)
DepositCollection = Database.Collection(models.DepositCollection)
DepositUnitCollection = Database.Collection(models.DepositUnitCollection).CreateMultiIndex(bson.D{{Key: "taking_id", Value: 1}, {Key: "deposit_id", Value: 1}}, true)
DepositUnitCollection = Database.Collection(models.DepositUnitCollection).CreateMultiIndex(bson.D{{Key: "taking_id", Value: 1}, {Key: "deposit_id", Value: 1}}, true).CreateIndex("taking_id", false).CreateIndex("deposit_id", false)

FSChunkCollection = Database.Collection(models.FSChunkCollection)
FSFilesCollection = Database.Collection(models.FSFilesCollection)
Expand Down

0 comments on commit 41bf65f

Please sign in to comment.