Open stefinfection opened 6 years ago
One good test is to look at the TTN gene. Very big and can often cause problems. I just ran TTN and crashed cohort and hub.
This is happening before the stream even finishes returning, making me believe too many variants are coming back. The solution to this will be filtering the stream. There are a few ways we can tackle this:
Tell the user there are too many variants to display in an unfiltered manner for the locus and
display half of the gene
display high impact variants
Rather than returning half the gene, which seems arbitrary, would it make sense to start with only returning variants within exonic regions?
Or can we send multiple requests to bring in the variants in stages? If d3 is drawing the variants as they are returned, would it even be noticeable if the variants were returned from multiple requests?
This is currently only happening with large genes due to memory overflow on client side. A good solution to this is to cull the variant information being pulled back and optimize the data structures holding what we really need.