Skip to content

Commit

Permalink
lib: add MongoDB indexes for PGS collections, #TASK-5410, #TASK-5387
Browse files Browse the repository at this point in the history
  • Loading branch information
jtarraga committed Jan 3, 2024
1 parent b0aeca4 commit c6c628b
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 4 deletions.
10 changes: 6 additions & 4 deletions cellbase-lib/src/main/resources/mongodb-indexes.json
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,9 @@
{"collection": "pharmacogenomics", "fields": {"variants.confidence": 1}, "options": {"background": true}}
{"collection": "pharmacogenomics", "fields": {"variants.evidences.pubmed": 1}, "options": {"background": true}}

{"collection": "common_polygenic_score", "fields": {"id": 1}, "options": {"background": true}}
{"collection": "variant_polygenic_score", "fields": {"_chunkIds": 1}, "options": {"background": true}}
{"collection": "variant_polygenic_score", "fields": {"chromosome": 1, "position": 1}, "options": {"background": true}}
{"collection": "variant_polygenic_score", "fields": {"polygenicScores.id": 1}, "options": {"background": true}}
{"collection": "common_polygenic_scores", "fields": {"id": 1}, "options": {"background": true}}
{"collection": "common_polygenic_scores", "fields": {"name": 1}, "options": {"background": true}}
{"collection": "common_polygenic_scores", "fields": {"source": 1}, "options": {"background": true}}
{"collection": "variant_polygenic_scores", "fields": {"_chunkIds": 1}, "options": {"background": true}}
{"collection": "variant_polygenic_scores", "fields": {"chromosome": 1, "position": 1}, "options": {"background": true}}
{"collection": "variant_polygenic_scores", "fields": {"polygenicScores.id": 1}, "options": {"background": true}}
7 changes: 7 additions & 0 deletions cellbase-lib/src/test/resources/index/mongodb-indexes.json
Original file line number Diff line number Diff line change
Expand Up @@ -127,3 +127,10 @@

{"collection": "splice_score", "fields": {"_chunkIds": 1}, "options": {"background": true}}
{"collection": "splice_score", "fields": {"chromosome": 1, "position": 1}, "options": {"background": true}}

{"collection": "common_polygenic_scores", "fields": {"id": 1}, "options": {"background": true}}
{"collection": "common_polygenic_scores", "fields": {"name": 1}, "options": {"background": true}}
{"collection": "common_polygenic_scores", "fields": {"source": 1}, "options": {"background": true}}
{"collection": "variant_polygenic_scores", "fields": {"_chunkIds": 1}, "options": {"background": true}}
{"collection": "variant_polygenic_scores", "fields": {"chromosome": 1, "position": 1}, "options": {"background": true}}
{"collection": "variant_polygenic_scores", "fields": {"polygenicScores.id": 1}, "options": {"background": true}}

0 comments on commit c6c628b

Please sign in to comment.