Skip to content

Commit

Permalink
add indexes for analyses collection
Browse files Browse the repository at this point in the history
  • Loading branch information
ambrussimon committed Jun 16, 2017
1 parent caf4acc commit 42256c0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions api/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -229,8 +229,9 @@ def initialize_db():
db.acquisitions.create_index('session')
db.acquisitions.create_index('uid')
db.acquisitions.create_index('collections')
db.jobs.create_index([('inputs.id',1), ('inputs.type', 1)])
db.jobs.create_index([('state', 1),('now', 1), ('modified', 1)])
db.analyses.create_index([('container.level', 1), ('container.id', 1)])
db.jobs.create_index([('inputs.id', 1), ('inputs.type', 1)])
db.jobs.create_index([('state', 1), ('now', 1), ('modified', 1)])
db.gears.create_index('name')
db.batch.create_index('jobs')
db.project_rules.create_index('project_id')
Expand Down

0 comments on commit 42256c0

Please sign in to comment.