From 56f43f6ac5e4926a435d63300d4e61440b2f232d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Oriol=20L=C3=B3pez-Doriga?= Date: Fri, 17 May 2024 12:24:47 +0200 Subject: [PATCH] removing unused indexes --- beacon/reindex.py | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/beacon/reindex.py b/beacon/reindex.py index 5e335813..396f5d80 100644 --- a/beacon/reindex.py +++ b/beacon/reindex.py @@ -36,19 +36,19 @@ client.beacon.validate_collection("similarities") except Exception: db=client.beacon.create_collection(name="similarities") -client.beacon.analyses.create_index([("$**", "text")]) -client.beacon.biosamples.create_index([("$**", "text")]) -client.beacon.cohorts.create_index([("$**", "text")]) -client.beacon.datasets.create_index([("$**", "text")]) -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.analyses.create_index([("$**", "text")]) +#client.beacon.biosamples.create_index([("$**", "text")]) +#client.beacon.cohorts.create_index([("$**", "text")]) +#client.beacon.datasets.create_index([("$**", "text")]) +#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([("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.individuals.create_index([("$**", "text")]) -client.beacon.runs.create_index([("$**", "text")]) +#client.beacon.individuals.create_index([("$**", "text")]) +#client.beacon.runs.create_index([("$**", "text")]) #collection_name = client.beacon.analyses #print(collection_name.index_information())