Preview for Gene Symbol taking a long time to load

Open
#2,718 4 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
48/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Active
Tech stack
python

Research direction

Start by tracing the GeneSymbol preview implementation mentioned in the issue and compare its request path with the fast single-result search. Reproduce the delay with the “I'm feeling lucky” option disabled, then check the same preview when a search has multiple results. Done means identifying the cause of the roughly six-second load and confirming the preview loads promptly.

Written by the indexing model from the issue text.

Description

Low priority issue (performance in a niche scenario).

Issue also appears to affect prod.

If you search for a Gene Symbol, e.g. "F8" the gene symbol page is loaded very quickly.

https://test.shariant.org.au/variantopedia/search?search=F8
Loads in under half a second.

But if you turn off the "I'm feeling lucky" aka "Automatically open single valid search result (variants only in your preferred genome build)", by enterting an empty search, then unticking the checkbox, then search for F8

It takes six seconds to load the preview of the search result, which just lists how many classifications there are for F8.


I don't think users turn off the automatically open feature, but the same results happen if there's multiple search results for input. Worth investigating to find the cause of slowness in GeneSymbol's Preview implementation.

Dominant language
Python
Stars
31
Forks
4
Avg merge
4h 52m
Merged PRs (30d)
183

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from SACGF/variantgrid

All issues in SACGF/variantgrid

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.