Closed northwestwitch closed 7 months ago
What type of analysis and how many variants does you case have @Jakob37? I don't think we have seen this error message before 🤔
What type of analysis and How many variants does you case have @Jakob37? I don't think we have seen this error message before 🤔
This is a full wgs sample, with ~132000 SNVs and ~12500 SVs.
It is a bit strange, as this sample has worked fine previously when testing. Not sure what changed.
Does your database have indexes?
Hmm, it is a very default setup, with everything running in containers. I just have the demo cases, and two test cases I reload (I haven't set up data persistence for the mongo db).
Checking the indices, it looks like there is a bunch for instance for the variant db:
> db.variant.getIndices()
[
{
"v" : 2,
"key" : {
"_id" : 1
},
"name" : "_id_"
},
{
"v" : 2,
"key" : {
"case_id" : 1,
"category" : 1,
"variant_type" : 1,
"variant_rank" : 1,
"hgnc_ids" : 1
},
"name" : "caseid_category_varianttype_variantrank_hgncids",
"background" : true
},
{
"v" : 2,
"key" : {
"hgnc_symbols" : 1,
"rank_score" : -1,
"category" : 1,
"variant_type" : 1
},
"name" : "hgncsymbol_rankscore_category_varianttype",
"background" : true,
"partialFilterExpression" : {
"rank_score" : {
"$gt" : 5
},
"category" : "snv"
}
},
{
"v" : 2,
"key" : {
"variant_id" : 1,
"case_id" : 1,
"category" : 1
},
"name" : "variantid_caseid_category",
"background" : true
},
{
"v" : 2,
"key" : {
"case_id" : 1,
"category" : 1,
"variant_type" : 1,
"chromosome" : 1,
"start" : 1,
"end" : 1
},
"name" : "caseid_category_chromosome_start_end",
"background" : true
},
{
"v" : 2,
"key" : {
"variant_id" : 1,
"institute" : 1
},
"name" : "variant_id_institute",
"background" : true
}
]
Do your variants have a ranking?
Sry, wrong old index. This one had the score for sorting scores into rank.
Again, running nicely without on our stage for months, shouldn't be a perf diff, but it is a change in how mongod does the sort (index once, effectively sorting, then use index or sort directly). We'll try some tests with cases with a large number of variants as well. We could also just put the index back; the thing is it is both ofcourse big and should only be used once per load. It also interferes a bit with the query planner, since the first few items are the same as for others.
OK I'll try adding this one then and see if it resolves it!
Nice, looks like it worked loading it now!
Let’s see if we can’t get it reintroduced then, maybe with another key order..
Here @Jakob37:
Aborted!