From 53d9338375eb1ba55a50045b0edccd61d8691b7f Mon Sep 17 00:00:00 2001 From: costero-e Date: Fri, 15 Nov 2024 16:16:12 +0100 Subject: [PATCH] improved indexes --- beacon/reindex.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/beacon/reindex.py b/beacon/reindex.py index 396f5d80..3659430f 100644 --- a/beacon/reindex.py +++ b/beacon/reindex.py @@ -43,10 +43,12 @@ #client.beacon.genomicVariations.create_index([("$**", "text")]) #client.beacon.genomicVariations.create_index([("caseLevelData.biosampleId", 1)]) #client.beacon.genomicVariations.create_index([("variation.location.interval.end.value", -1), ("variation.location.interval.start.value", 1)]) -client.beacon.genomicVariations.create_index([("variantInternalId", 1), ("caseLevelData.biosampleId", 1)]) -#client.beacon.genomicVariations.create_index([("identifiers.genomicHGVSId", 1), ("variation.location.interval.start.value", 1), ("caseLevelData.biosampleId", 1), ("variation.referenceBases", 1), ("variation.alternateBases", 1)]) -client.beacon.genomicVariations.create_index([("variation.location.interval.end.value", -1), ("variation.location.interval.start.value", 1), ("variation.referenceBases", 1), ("variation.alternateBases", 1)]) -client.beacon.genomicVariations.create_index([("molecularAttributes.geneIds", 1), ("variantInternalId", 1), ("variation.variantType", 1)]) +client.beacon.genomicVariations.create_index([("variantInternalId", 1)]) +client.beacon.genomicVariations.create_index([("variation.location.interval.start.value", 1)]) +#client.beacon.genomicVariations.create_index([("variation.location.interval.start.value", 1), ("variation.location.interval.end.value", -1)]) +client.beacon.genomicVariations.create_index([("identifiers.genomicHGVSId", 1)]) +#client.beacon.genomicVariations.create_index([("datasetId", 1), ("variation.location.interval.start.value", 1), ("variation.referenceBases", 1), ("variation.alternateBases", 1)]) +client.beacon.genomicVariations.create_index([("molecularAttributes.geneIds", 1), ("variation.variantType", 1)]) #client.beacon.individuals.create_index([("$**", "text")]) #client.beacon.runs.create_index([("$**", "text")]) #collection_name = client.beacon.analyses